class GrafanaReporter::Asciidoctor::SqlTableIncludeProcessor
Implements the hook
include::grafana_sql_table:<datasource_id>[<options>]
Returns the results of the SQL query as a asciidoctor table.
Used document parameters¶ ↑
grafana_default_instance
- name of grafana instance, 'default' if not specified
from
- 'from' time for the sql query
to
- 'to' time for the sql query
All other variables starting with var-
will be used to replace grafana templating strings in the given SQL query.
Supported options¶ ↑
sql
- sql statement (mandatory)
instance
- name of grafana instance, 'default' if not specified
from
- 'from' time for the sql query
to
- 'to' time for the sql query
format
- see {AbstractQuery#format_columns}
replace_values
- see {AbstractQuery#replace_values}
filter_columns
- see {AbstractQuery#filter_columns}