-
Notifications
You must be signed in to change notification settings - Fork 69
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
Microseconds getting automatically converted to milliseconds? #29
Comments
Basically, when it sees suffix like _microseconds it expects values to be native_time_unit. Please read here: https://hexdocs.pm/prometheus_ex/time.html#content |
Hey @deadtrickster . In the documentation, this is what we can see:
I had a metric that contained Thanks 😄 |
Cool question! According to current code - yes that's expected. Does it disturb you? What is your metrics? |
The metric was created to measure the time that certain queries take to run. Since they are pretty fast, I want the metric value to be in milliseconds as an Integer.
No, it's no problem. Can you just update the docs? |
Is this expected behavior ?
I declare a metric with a microseconds suffix :
And I then feed it a microseconds value (20481):
It is then silently converted to milliseconds - but the metric name still indicates microseconds.
The code in it's entirity can be seen here
The text was updated successfully, but these errors were encountered: