I am using Prometheus for our monitoring and I have a lot of configs (our prometheus.yml main config file is 8000+ lines long).
I would like to divide this out into logical groupings so that it becomes much readable. I came to know that Prometheus doesn't support this and we can use configuration management systems like Ansible.
Has anyone done this with their Prometheus config file? If so, how did you do it?
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/3fb33998-9ebf-4a14-9437-ea788f0400b7o%40googlegroups.com.
There are other advantages to moving targets from static_configs to file_sd_configs.With targets in file_sd_configs, Prometheus knows how to reload these files without reloading all targets. This improves the scheduling of scrapes,
as when you reload Prometheus, all in-flight scrapes are canceled.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CABbyFmph5C%3DTYfCwGqZ34fbozPYk5Uzwhvfej6LGWxu0qWj%2BrQ%40mail.gmail.com.