infinityworks / Guide_Rancher_Monitoring

Easy to follow guide on how to deploy and make the best use of the Rancher community catalog template for Prometheus.
112 stars 9 forks source link

Monitoring my own metrics #2

Closed utrack closed 8 years ago

utrack commented 8 years ago

Hi! Not sure where to ask that but: Is it possible to add my own services to Prometheus\Grafana bundle dynamically?

Rucknar commented 8 years ago

It sure is!

If it's just monitoring additional stacks/services you've got deployed in Rancher, then this can be done easily. If you duplicate the existing dashboard setup for Prometheus monitoring then you can update those cells to monitor the services you're interested in. If you wish to monitor more things....

Prometheus

The configuration in-place out of the box, is there to get you started but by all means you could fork the prom-conf repo and add in your own configuration, if you view the file that's there you will see how it's been done with DNS. More info on how to configure Prometheus can be found here.

Grafana

For this template, i've mapped in the grafana sqllite DB through the 'graf-db' container. You can copy this out of the container, or export the dashboards you want, all you need to do then is to import them on a re-fresh. Or alternatively you could bin off the graf-db container altogether and mount a volume in from the host.

utrack commented 8 years ago

Thanks! It'd be awesome if the stack included push gateway from the box, but the fork would work too. Thank you :+1: