mirror of
https://github.com/prometheus/prometheus.git
synced 2026-01-30 04:51:43 +01:00
Metrics
This document describes the metrics defined in this semantic convention registry.
| Metric | Type | Unit | Description |
|---|---|---|---|
prometheus_api_notification_active_subscribers |
gauge | {subscriber} | The current number of active notification subscribers. |
prometheus_api_notification_updates_dropped_total |
counter | {update} | Total number of API notification updates that were dropped. |
prometheus_api_notification_updates_sent_total |
counter | {update} | Total number of API notification updates sent. |
prometheus_http_request_duration_seconds |
histogram | s | Histogram of latencies for HTTP requests. |
prometheus_http_requests_total |
counter | {request} | Counter of HTTP requests. |
prometheus_http_response_size_bytes |
histogram | By | Histogram of response size for HTTP requests. |
prometheus_ready |
gauge | 1 | Whether Prometheus startup was fully completed and the server is ready for normal operation. |
prometheus_web_federation_errors_total |
counter | {error} | Total number of errors that occurred while sending federation responses. |
prometheus_web_federation_warnings_total |
counter | {warning} | Total number of warnings that occurred while sending federation responses. |
Metric Details
prometheus_api_notification_active_subscribers
The current number of active notification subscribers.
- Type: gauge
- Unit: {subscriber}
- Stability: development
prometheus_api_notification_updates_dropped_total
Total number of API notification updates that were dropped.
- Type: counter
- Unit: {update}
- Stability: development
prometheus_api_notification_updates_sent_total
Total number of API notification updates sent.
- Type: counter
- Unit: {update}
- Stability: development
prometheus_http_request_duration_seconds
Histogram of latencies for HTTP requests.
- Type: histogram
- Unit: s
- Stability: development
Attributes
| Attribute | Type | Description | Examples |
|---|---|---|---|
handler |
string | The HTTP handler. | /, /-/healthy, /-/ready, /api/v1/query |
prometheus_http_requests_total
Counter of HTTP requests.
- Type: counter
- Unit: {request}
- Stability: development
Attributes
| Attribute | Type | Description | Examples |
|---|---|---|---|
code |
string | The HTTP response status code. | 200, 400, 404, 500 |
handler |
string | The HTTP handler. | /, /-/healthy, /-/ready, /api/v1/query |
prometheus_http_response_size_bytes
Histogram of response size for HTTP requests.
- Type: histogram
- Unit: By
- Stability: development
Attributes
| Attribute | Type | Description | Examples |
|---|---|---|---|
handler |
string | The HTTP handler. | /, /-/healthy, /-/ready, /api/v1/query |
prometheus_ready
Whether Prometheus startup was fully completed and the server is ready for normal operation.
- Type: gauge
- Unit: 1
- Stability: development
prometheus_web_federation_errors_total
Total number of errors that occurred while sending federation responses.
- Type: counter
- Unit: {error}
- Stability: development
prometheus_web_federation_warnings_total
Total number of warnings that occurred while sending federation responses.
- Type: counter
- Unit: {warning}
- Stability: development