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

Change http_request_<duration> for PlugPipelineInstrumenter #32

Open
PhillippOhlandt opened this issue May 28, 2019 · 1 comment
Open

Comments

@PhillippOhlandt
Copy link

PhillippOhlandt commented May 28, 2019

Hey,

I tried switching from :microseconds to :seconds since Prometheus suggests to use second as base unit. The problem is, the config setting only changes the metric name but not the buckets and value. While defining custom buckets is not a big deal, the reported value is still in microseconds.

Or do I miss something here?

@sorliem
Copy link

sorliem commented Mar 23, 2022

I see the same thing... shouldn't the diff take into account the duration_unit?

Looking at

stop = :erlang.monotonic_time()
diff = stop - start

Shouldn't that instead be

diff = :erlang.convert_time_unit(stop - start, :native, duration_unit)

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

No branches or pull requests

2 participants