Guide_Rancher_Monitoring
Guide_Rancher_Monitoring copied to clipboard
Host affinity for Prometheus and Grafana
How would one go about setting host affinity for Prometheus and Grafana?
Say I have 8 hosts. I want Prometheus and Grafana to run on one specific host, while the agents run on all.
Currently, it seems random which host Prometheus and Grafana runs on.
Guess I could create my own catalog and customize the template, but I would rather avoid doing that.
I'm kind of new to this but I was having the same issue.
I finaly created the service using the catalog but without checking "Start services after creation". Then I upgrade the service manually and played with the scheduling tab to deal with my host affinity.
Not sure if it's the best solution, but it did the trick for me.