News for hackers. Stuff that matters.
Re:Monitoring Elixir Apps on Fly.io with Prometheus and PromEx by blutack on Thursday July 01, 2021 @02:39PM (#27702759)
Promex is a fantastic and well thought out library which I've deployed into production.

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.

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).