Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I monitor Heroku multi-dynos app with Prometheus?

I need monitor apps deployed to Heroku by Prometheus monitoring system.

Problem is that if you have more dynos app, you need to know all IP address of your dynost to be able to pull metrics from all dynos.

For K8s or AWS we are able to get full list of PODs/instances, So you are able to do this.

So question is, do you know, how to get IPs of all dynos from Heroku?

like image 986
Zdeněk Hásek Avatar asked Nov 18 '22 19:11

Zdeněk Hásek


1 Answers

I'm considering exposing the $DYNO environment variable as a label to all metrics so Prometheus can have a consistent view on which dyno it's scraping. Given a short enough scraping interval, all dynos should be able to scraped within reasonable time.

Pushgateway is not a recommended way of monitoring long-standing services.

like image 88
Merlin Ran Avatar answered Dec 19 '22 14:12

Merlin Ran