Import metrics from Prometheus
Last updated
Last updated
(c) 2011 - 2024 ilert GmbH
Go to Incident comms --> Metric data sources and click on Create metric data source.
Give the metrics data source a name (e.g. Prometheus).
Select Prometheus in Type dropdown list.
Type in your Prometheus URL. For ex.: https://prometheus.example.org.
Choose your Authentication method.
Warning: We recommend that you secure your Prometheus instance by using an authentication method.
Basic auth:
Enter your login credentials for Prometheus, e.g. username and password and click on Create metric data source.
Custom header:
Enter a custom header name, for ex. "Cookie", if you wish to authenticate via cookie header.
Paste your custom header value for the header name. In case of "Cookie" enter the cookie's value here and click on Create metric data source.
Go to Graph --> Type in a query --> Test your result with Execute.
Select a query from which you want to import the data into ilert. Copy the query, you will need it later.
In ilert
Go to Status pages (or Incident comms) --> Metrics and click on Create metric.
Select the Prometheus metrics data source that you have created above and click on Next.
On the next screen, enter a metric name, a display unit and paste the metric query from step 2 "In Prometheus" above. Click Save to preview your metric data.
Preview your metric. You can make changes to your query and reload the data from Prometheus. Note that once you have created your metric, you will no longer be able to change the metric query.