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

Fix NR's count metric by using float rather than int #94

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

taonic
Copy link
Collaborator

@taonic taonic commented Nov 4, 2024

What was changed

  1. Submit float value to NewRelic's count metrics.

https://docs.newrelic.com/docs/data-apis/understand-data/metric-data/metric-data-type/
image

  1. Remove the unwanted server close callback.

Why?

Prometheus's rate function calculates the per-second average rate of increase of the time series in the range vector, which is returned as a decimal number in json. For example, with low RPS, e.g. 8 requests in 1 minute, the rate query returns 8/60 ~= 0.133. Therefore, we should submit the number to NewRelic as float rather than int.

Checklist

  1. Closes
    N/A

  2. How was this tested:
    Manual

  3. Any docs updates needed?
    No

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.

1 participant