• /
  • EnglishEspañol日本語한국어Português
  • Inicia sesiónComenzar ahora

Default metric labels and metric attributes

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:

Importante

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

Sugerencia

These metrics contain all the metric labels.

The following metrics are generated for each scraped target:

Metric

Description

up

The value will be 0 if the scrape has failed otherwise will be 1.

scrape_duration_seconds

Duration of the scrape.

scrape_samples_scraped

The number of samples the target exposed.

scrape_samples_post_metric_relabeling

The number of samples remaining after metric relabeling was applied.

scrape_series_added

The approximate number of new series in this scrape.

Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.