Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update how histogram&summary metrics are reported #54

Merged
merged 1 commit into from
Jun 23, 2020

Conversation

areina
Copy link
Contributor

@areina areina commented Jun 19, 2020

As New Relic is improving its support for Prometheus native format, we
could change the way how we report Summary and Histogram metric types
and do it in less disruptive way, meaning that we send them as they come
from Prometheus, without adding custom suffixes or calculating
percentiles from the integration side.

These are the details of the current implementation:

  • xxx_bucket is ingested as a Counter (converted to a delta rather than
    accumulative). Metrics containing dimension "le" == '+Inf' are also
    sent, we don't omit them.
  • xxx_count is passed through as a Counter (converted to a delta rather than accumulative).
  • xxx_total passed through as a Counter (converted to a delta rather than accumulative).
  • xxx_sum is passed through as a NR Summary converted to a delta rather
    than accumulative, Min and Max here should be NaN. Its value can be negative.
    The count field of the summary should be 1.
  • For Prometheus summary metrics, we report the quantile as a dimension
    and we don't add a "percentile" dimension.

This is an important breaking change so we would need to manage carefully the new release of the integration. It should be a new major version, and I think we would need to have a beta version before releasing a 2.0.0 version.

As New Relic is improving its support for Prometheus native format, we
could change the way how we report Summary and Histogram metric types
and do it in less disruptive way, meaning that we send them as they come
from Prometheus, without adding custom suffixes or calculating
percentiles from the integration side.

These are the details of the current implementation:

- xxx_bucket is ingested as a Counter (converted to a delta rather than
accumulative). Metrics containing dimension "le" == '+Inf' are also
sent, we don't omit them.
- xxx_count is passed through as a Counter (converted to a delta rather than accumulative).
- xxx_total passed through as a Counter (converted to a delta rather than accumulative).
- xxx_sum is passed through as a NR Summary converted to a delta rather
than accumulative, Min and Max here should be NaN. Its value can be negative.
The count field of the summary should be 1.
- For Prometheus summary metrics, we report the quantile as a dimension
and we don't add a "percentile" dimension.
@areina areina force-pushed the new-summary-and-histograms branch from 6ea02b8 to 0250ae2 Compare June 19, 2020 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants