Prometheus Plugin
This documentation is providing the definition of the different plugin related to Prometheus
Datasource#
Plugin Specification#
Prometheus as a datasource is basically an HTTP server. So we need to define an HTTP config.
<http_proxy_spec>
#
<allowedEndpoints_spec>
#
Example#
A simple Prometheus datasource would be
A more complex one:
Query#
We are only supporting one kind of query for Prometheus: PrometheusTimeSeriesQuery
. Others will come in the future.
<timeseries_query_spec>
#
Example#
A simple one:
Variable#
PrometheusLabelNamesVariable#
<prometheus_label_names_spec>
#
Example#
A simple Prometheus LabelNames variable would be
A more complex one
PrometheusLabelValuesVariable#
<prometheus_label_values_spec>
#
Example#
A simple Prometheus LabelValues variable would be
A more complex one
PrometheusPromQLVariable#
<prometheus_promql_spec>
#
<datasource_selector>
#