newrelic / infrastructure-agent

New Relic Infrastructure Agent
https://docs.newrelic.com/docs/infrastructure/install-configure-manage-infrastructure
Apache License 2.0
130 stars 124 forks source link

_count is missing from Prometheus histograms #1890

Open jackwilsdon opened 3 weeks ago

jackwilsdon commented 3 weeks ago

Description

The _count counter is not included in data pushed to New Relic for Prometheus histograms.

Expected Behavior

The _count counter should be included.

Steps to Reproduce

Scrape a Prometheus histogram with the infrastructure agent and nri-prometheus. Note that the _count counter is not exported to New Relic.

Additional context

The summary type already has support for _count: https://github.com/newrelic/infrastructure-agent/blob/dc896c41ebea1cf7b15effb3cd05048e09a6bf70/pkg/integrations/v4/dm/telemetry.go#L270-L277

But it looks like the histogram type doesn't: https://github.com/newrelic/infrastructure-agent/blob/dc896c41ebea1cf7b15effb3cd05048e09a6bf70/pkg/integrations/v4/dm/telemetry.go#L201-L234

For Maintainers Only or Hero Triaging this bug

Suggested Priority (P1,P2,P3,P4,P5): Suggested T-Shirt size (S, M, L, XL, Unknown):

workato-integration[bot] commented 3 weeks ago

https://new-relic.atlassian.net/browse/NR-288815