4 ms·
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
by blutack 5y ago
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.
- akoutmos 5y agoThanks 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 ;)!
- blutack 5y agoExcellent, 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).