How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Prometheus Metrics API

Endpoints for pushing, replacing, and deleting metric groups. Metrics are grouped by job and optional additional labels.

Prometheus Metrics API is one of 14 APIs that Prometheus publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

This API exposes 1 JSON Schema definition.

Tagged areas include Metrics. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a GitHub repository, a changelog, an AsyncAPI specification, and 1 JSON Schema.

This API exposes 7 operations across 3 paths, and defines 4 schemas. It is described by OpenAPI 3.2.0, at version v0.28.0.

Requests are made against a single base URL, http://{host}:{port}.

7 operations 3 paths 4 schemas 2 DELETE1 GET2 POST2 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
v0.28.0
Server
http://{host}:{port}
License
Resource Areas
1

Paths & Operations 7

Across 3 paths, the API surfaces 7 operations — 2 DELETE, 1 GET, 2 POST, 2 PUT. Each is listed below with its method, path, parameters, and response codes.

Metrics 7

Endpoints for pushing, replacing, and deleting metric groups. Metrics are grouped by job and optional additional labels.

PUT
/metrics/job/{job}
Prometheus Replace all metrics for a job
replaceJobMetrics 1 param body → 200400
POST
/metrics/job/{job}
Prometheus Add or update metrics for a job
pushJobMetrics 1 param body → 200400
DELETE
/metrics/job/{job}
Prometheus Delete all metrics for a job
deleteJobMetrics 1 param → 202400
PUT
/metrics/job/{job}/{labels}
Prometheus Replace metrics for a job with grouping labels
replaceGroupedMetrics 2 params body → 200400
POST
/metrics/job/{job}/{labels}
Prometheus Add or update metrics for a job with grouping labels
pushGroupedMetrics 2 params body → 200400
DELETE
/metrics/job/{job}/{labels}
Prometheus Delete metrics for a job with grouping labels
deleteGroupedMetrics 2 params → 202400
GET
/api/v1/metrics
Prometheus List all pushed metrics
listAllMetrics → 200

Schemas 4

The contract defines 4 schemas that model the data the API accepts and returns. The most detailed are MetricFamily (4 properties), Metric (4 properties), MetricGroup (3 properties), MetricsResponse (2 properties). Each schema is shown below with its type and property counts.

MetricsResponse
object
All currently stored metric groups in the Pushgateway.
2 properties
Metric
object
An individual metric with labels and value.
4 properties
MetricGroup
object
A group of metrics sharing the same job and grouping labels.
3 properties
MetricFamily
object
A family of metrics with the same name.
4 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

prometheus-metrics-api-openapi.yml Raw ↑

Other APIs Prometheus publishes across the network.

Prometheus Remote Write API
Prometheus Client Libraries
Prometheus Admin API
Prometheus Alerts API
Prometheus Lifecycle API
Prometheus Metadata API
Prometheus Query API
Prometheus Receivers API
Prometheus Rules API
Prometheus Silences API
Prometheus Status API
Prometheus Targets API
Where this information came from

This is an independent, third-party profile of Prometheus Metrics API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.