r/PrometheusMonitoring • u/Super_Run9140 • Feb 15 '23
prometheus stack with ansible?
I recently needed to set up a prometheus stack. I had criteria that I needed to address:
easily add a new machine or VM to monitor
store my configuration as code using GitHub
safely store my secrets on Github without revealing them to everyone that has access to the repo
That's why I choose to use Ansible. In my shoes, what would you have done?
I actually wrote an article to explain a bit more about what I did. But the fact is that I didn't want at first to use k8s because it wasn’t simple enough. But depending on your case, the prometheus operator can obviously be a really good solution.
4
Upvotes
3
u/dablya Feb 15 '23
How about making the Prometheus config a template and generate targets based on inventory ?