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

Prometheus.erl support. #5

Open
deadtrickster opened this issue Nov 23, 2016 · 13 comments
Open

Prometheus.erl support. #5

deadtrickster opened this issue Nov 23, 2016 · 13 comments

Comments

@deadtrickster
Copy link

Hello!

I want to add prometheus.erl support.

Metrics:

  • counter - non-negative number. Always can only go up (or reset);
  • gauge - number. Can be incremented/decremented or set to arbitrary value;
  • summary - right now just samples count and sum;
  • histogram - samples count/sum + per bucket count.

How this could be mapped to erlang-metrics metrics?

Thank you

@deadtrickster
Copy link
Author

ping

@benoitc
Copy link
Owner

benoitc commented Dec 27, 2016

@deadtrickster go ahead, pr will be welcome :)

@benoitc
Copy link
Owner

benoitc commented Dec 27, 2016

@deadtrickster sorry was short on my answer :)

IMO you can do like what i did in grapherl:

https://github.com/benoitc/erlang-metrics/blob/master/src/metrics_grapherl.erl#L32-L34

doing what you do on counter , gauge and histogram is ok. then it's about the application to handle the logic. Tjoughts?

@deadtrickster
Copy link
Author

Now when you use prometheus, what you think is be best way to approach it? What I want personally is something enough to get hackney metrics.

@benoitc
Copy link
Owner

benoitc commented May 19, 2017

What I want personally is something enough to get hackney metrics.

@deadtrickster how do you mean? Having metrics calculated initially ?

@tsloughter
Copy link

@deadtrickster any movement on this? I can take a look.

@deadtrickster
Copy link
Author

@tsloughter Hi,
I just don't know for which version prometheus adatapter should be written. Hackney uses 1.x, current is 2.x. ¯_(ツ)_/¯

@benoitc
Copy link
Owner

benoitc commented Oct 8, 2017

@deadtrickster why do you care about the version used by hackney? Erlang-metrics is using a feature not available in Erlang < 17 , so until the support of Erlang 16 is removed this could likely happen unfortunately.

@deadtrickster
Copy link
Author

because I have some hackney code I want to get metrics from:-). Do you have an estimation for hackney 2? I assume this will use metric2?

@benoitc
Copy link
Owner

benoitc commented Sep 12, 2018

@deadtrickster are you still up to provide a PR for it? Would be interrested to included it in next release.

@deadtrickster
Copy link
Author

yes, for version 2?

@benoitc
Copy link
Owner

benoitc commented Sep 12, 2018

we can bump the next erlang-metrics and make it compatible for current hackney version as well :)

@entone
Copy link

entone commented Oct 17, 2018

@deadtrickster I was actually going to ping you about this, but now i see you've already opened an issue. Any update on this?

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

4 participants