Hi,

On 6/16/20 9:35 AM, pratyush ranjan wrote:
> 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?

Yes, our Prometheus configs are auto-generated via Puppet, based on
templates. I'm afraid I can't share the code and it wouldn't make that
much sense anyway, as this part is highly customized for our environment.

What parts of the config make your file that long? Is it some
static_config part for service discovery?
If this is the case, you could easily switch to file_sd to move the
target lists to their own files.

Kind regards,
Christian

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/d716b543-311d-fdd3-bb7f-5545f6d4cdc4%40hoffmann-christian.info.

Reply via email to