Simple Prometheus Stack Config for exposing Rancher API via Prometheus.
docker build -t rancher-prometheus .
docker push REPO/rancher-prometheus
Update docker-compose.yml
to include your Docker Hub images, otherwise this will pull images that aren't your own.
rancher up --pull -d
- Prometheus - 9090
- prometheus-rancher-exporter - 9173