On 31 Mar 16:54, Stuart Clark wrote:
> The general suggestion is to use a configuration management system such as 
> Ansible to create the configuration file. Equally you can use the different 
> service discovery mechanisms to simplify your configuration too, including 
> the file_sd to pull targets into separate files (which themselves might be 
> build via configuration management tools or scripts that interact with 
> database of record type systems). 


file_sd id probably the way to go. When you add new files, you do not
need to reload the config. When you add a new scrape static config, you
have to.


> 
> On 31 March 2020 15:59:52 BST, Ishvar B <ishu....@gmail.com> wrote:
> >Hi,
> >
> >I have a prometheus set up which has too many (roughly 50 static
> >configs) 
> >and this number would increase as we have lot of vms still be scraped
> >for 
> >prometheus. The file is becoming huge , especially when some
> >applications 
> >require basic auth. is there any best practice to maintain the config
> >file 
> >as with such huge file some times changes would cause accidental
> >errors.
> >
> >Thanks
> >Eswar
> >
> >-- 
> >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-users+unsubscr...@googlegroups.com.
> >To view this discussion on the web visit
> >https://groups.google.com/d/msgid/prometheus-users/65a0249c-c27a-479d-9df0-b68e5102b883%40googlegroups.com.
> 
> -- 
> Sent from my Android device with K-9 Mail. Please excuse my brevity.
> 
> -- 
> 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-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/prometheus-users/80F29B6C-5736-4155-8B2A-5988AA2DF855%40Jahingo.com.

-- 
 (o-    Julien Pivotto
 //\    Open-Source Consultant
 V_/_   Inuits - https://www.inuits.eu

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/20200331155958.GA29351%40oxygen.

Attachment: signature.asc
Description: PGP signature

Reply via email to