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
- 204
- 400
- 401
- 403
- 429
- 500
- default
Metrics accepted
Missing instance header, or malformed body, query argument, or Content-Encoding
Missing or invalid API key
The API key does not carry an ingestion role
Ingestion rate limit exceeded
Internal server error
Support
If you need assistance or have any questions, please reach out to us through:
- Email at [email protected]