Metric labels
Labels are metadata or attributes, and there are a few sources of metric labels. In the following tables, see the sources of labels and when they are added:
Important
To comply with the Prometheus DataModel, Kubernetes label names are sanitized after scraped to replace any unsupported character to _
. For example, the Kubernetes label k8s.io/app
is added as k8s_io_app
. Label values aren't modified.
Generated metrics
Tip
These metrics contain all the metric labels.
The following metrics are generated for each scraped target:
Metric | Description |
---|---|
| The value will be |
| Duration of the scrape. |
| The number of samples the target exposed. |
| The number of samples remaining after metric relabeling was applied. |
| The approximate number of new series in this scrape. |