Skip to main content

Import metrics for a job in Prometheus text format

POST 

/api/v1/import/prometheus/metrics/job/:job

Write metrics in the Prometheus text exposition format, with grouping labels in the path.

This is the Pushgateway form of /api/v1/import/prometheus, and it takes the same body and the same query arguments. Every label pair in the path is added to every series in the body.

Append further pairs to add further labels, as in /api/v1/import/prometheus/metrics/job/{job}/instance/host-1. To send a label value that holds a /, suffix the label name with @base64 and encode the value as base64url, as in /metrics/job@base64/bXlqb2I.

A label given by extra_label replaces a path label of the same name.

Required role: Admin or Data Ingestion

Request

Responses

Metrics accepted


Support

If you need assistance or have any questions, please reach out to us through: