Prometheus-related plugins
This documentation provides the definition of the different plugins 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#
Perses currently supports only 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#