Re:Monitoring Elixir Apps on Fly.io with Prometheus and PromEx
by akoutmos on Thursday July 01, 2021 @03:29PM
(#27703453)
Thanks for the kind words :)
That standalone HTTP server in PromEx can also be used to expose metrics in non-Phoenix applications. In the coming weeks you'll also be able to run GrafanaAgent in the PromEx supervision tree so you can push Prometheus metrics via remote_write. Stay tuned ;)!
Re:Monitoring Elixir Apps on Fly.io with Prometheus and PromEx
by blutack on Thursday July 01, 2021 @03:40PM
(#27703607)
Excellent, looking forward to it! Right now I run GrafanaAgent separately which isn't too much headache and it works great feeding grafana cloud (especially paired with the Loki docker log driver).
One slightly useful trick that the docs don't highlight is that you can run the /metrics endpoint on a different port to the rest of the application. If you have that firewalled off, a local grafana agent or prom shipper of your choice can happily run against your application without making metrics public.