[erlang-questions] Send VM metrics to Grafana

Andre Graf <>
Thu Feb 9 20:26:28 CET 2017


Hi Frank,

VerneMQ, the project I am working at these days has chosen the
Prometheus path too. However, we currently don't use the mentioned
library as most of our metrics (including vm stats) are either gauges or
counters it was very simple to expose them directly using a Cowboy HTTP
handler returning the metrics in text/plain.

The HTTP handler code is available here:
https://github.com/erlio/vernemq/blob/master/apps/vmq_server/src/vmq_metrics_http.erl#L47-L61

The code that sets up the metrics is here:
https://github.com/erlio/vernemq/blob/master/apps/vmq_server/src/vmq_metrics.erl

Hope this helps.

Cheers,
Andre


On 02/09/2017 06:48 PM, Frank Muller wrote:
> Thanks Illya, found it already this morning.
> 
> Does someone already used this library? Maybe she/he can share their
> experience?
> 
> /Frank
> 
>     Then you might want to try
>     https://github.com/deadtrickster/prometheus.erl____
> 
>     __ __
> 
>     Regards,____
> 
>     Ilya
> 
>     __ __
> 
>     *From: *Frank Muller <mailto:>
>     *Sent: *Thursday, February 9, 2017 12:37 PM
>     *To: *Alexander Petrovsky <mailto:>;
>     Erlang-Questions Questions <mailto:>;
>      <mailto:>
>     *Subject: *Re: [erlang-questions] Send VM metrics to Grafana
> 
>     __ __
> 
>     Thanks for all the pointers guys.
> 
>     I've also heard about Prometheus (https://prometheus.io/).
> 
>     I like it because it's a single Go binary, very easy to deploy.
> 
>     Anyone has any experience with it and Grafana?
> 
>     /Frank
> 
>     < <mailto:>>
> 
>         Hello!
> 
>         There are bunch of projects for this, by example exometer, my
>         metronome (https://github.com/juise/metronome), and so on.
> 
>         Just install influxdb and grafana
> 
>         чт, 9 февр. 2017 г. в 12:06, Frank Muller
>         < <mailto:>>:
> 
>             Hi everyone,
> 
>             Does anyone succeeded to push VM metrics to Grafana
>             (http://grafana.org/).
> 
>             Here I'm looking for a simple integration with minimal
>             dependencies if possible.
> 
>             Thank you.
>             /Frank
> 
>             _______________________________________________
>             erlang-questions mailing list
>              <mailto:>
>             http://erlang.org/mailman/listinfo/erlang-questions
> 
>         -- 
>         Петровский Александр / Alexander Petrovsky,
> 
>         Skype: askjuise
>         Phone: +7 914 8 820 815
> 
> 
> 
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
> 



More information about the erlang-questions mailing list