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 specification#
Allowed Endpoints specification#
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 specification#
Example#
A simple one:
Variable#
PrometheusLabelNamesVariable#
Prometheus Label Names specification#
Example#
A simple Prometheus LabelNames variable would be
A more complex one
PrometheusLabelValuesVariable#
Prometheus Label Values specification#
Example#
A simple Prometheus LabelValues variable would be
A more complex one
PrometheusPromQLVariable#
Prometheus PromQL specification#
Datasource selector#