class GrafanaReporter::Asciidoctor::PanelQueryValueInlineMacro
Implements the hook
grafana_panel_query_value:<panel_id>[<options>]
Returns the first value of the resulting SQL query.
Used document parameters¶ ↑
grafana_default_instance
- name of grafana instance, 'default' if not specified
grafana_default_dashboard
- uid of grafana default dashboard to use
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¶ ↑
query
- query letter, which shall be used, e.g. C
(mandatory)
instance
- name of grafana instance, 'default' if not specified
dashboard
- uid of grafana dashboard to use
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}