NewRelic Prometheus Configurator Not Assigning Correct Metadata Type By Reading The Metrics File #235
Labels
bug
Categorizes issue or PR as related to a bug.
triage/in-progress
Issue or PR is in the process of being triaged.
NewRelic Prometheus Configurator Not Assigning Correct Metadata Type By Reading The Metrics File
Description
According to https://docs.newrelic.com/docs/infrastructure/prometheus-integrations/install-configure-prometheus-agent/migration-guide/#metric-types , any metrics name that doesn't have the suffix total, count, sum, or bucket, it will default to Gauge. We have over 300+ metrics from various application that should be tag as counter instead of gauge.
Expected Behavior
The NewRelic Prometheus Configurator scrapes all of the pods that have the prometheus.io/scrape: "true" and gets the metrics. It should read the metrics file to figure out the correct metedata type "# TYPE <metric_type>" so that it assign the correct tag. This is what nri-prometheus does! However, NewRelic Prometheus Configurator by default that if the metrics suffix is not total, count, sum, or bucket, it will be converted as Gauge.
Please see https://docs.newrelic.com/docs/infrastructure/prometheus-integrations/install-configure-prometheus-agent/migration-guide/#metric-types for more info.
We have many metrics that doesn't have the suffix name total, count, sum, and buckets in them and they are being marked as Gauge instead of counter. It is causing the data to be incorrect when doing it goes to NewRelic.
We have to manually look thru all the metrics and verify if it the tag is correct or not. If not, we will need to override the metrics type mapping. Instruction on how to update the mapping:
https://docs.newrelic.com/docs/infrastructure/prometheus-integrations/install-configure-remote-write/set-your-prometheus-remote-write-integration/#mapping
Issue with the provided solution are:
The text was updated successfully, but these errors were encountered: