On 19 Feb 14:00, Gajendra Ambi wrote:
> Everyone gives the same link 
> https://prometheus.io/docs/prometheus/latest/configuration/configuration when 
> asked about auto discovery of physical nodes but the entire page has only 2 
> occurences of the word auto-discovery. 
> We have 700+ physical servers and Prometheus is running on k8s (targets are 
> not part of k8s). Can someone please point to a blog or the actual part of 
> the documentation which has auto discovery of physical nodes, not the same 
> link please. I could not find anything there. It says, you can do it using 
> 1 of the auto discovery methods but the link does not have a single method 
> of auto discovery listed there.

Hello,

Prometheus does not do *auto* discovery. We do *service* discovery. You
will need a source of truth where your register your nodes.


> 
> On Monday, September 3, 2018 at 7:44:49 PM UTC+5:30 HARSH AGARWAL wrote:
> 
> > You can use Prometheus-service-discovery(SD) to automatically discover the 
> > targets.
> > https://prometheus.io/docs/prometheus/latest/configuration/configuration
> >
> > Using relabel-configs 
> > <https://prometheus.io/docs/prometheus/latest/configuration/configuration/#%3Crelabel_config%3E>,
> >  
> > you can specify which targets you want to keep/discard/change-labels, etc.
> >
> > Prometheus supports SD for many providers. You can also use your 
> > own custom-service-discovery mechanisms using file_sd 
> > <https://prometheus.io/docs/prometheus/latest/configuration/configuration/#%3Cfile_sd_config%3E>
> > .
> >
> >
> > On Monday, September 3, 2018 at 7:36:28 PM UTC+5:30, HJS wrote:
> >>
> >> For a particular job in Prometheus, it seems like the typical config is 
> >> something like this:
> >>
> >> static_configs:
> >> - targets: ['localhost:9090']
> >>
> >> But in the case where I want a dynamic list of hosts((auto discover of 
> >> targets)), this option is available in prometheus and if available how can 
> >> config??
> >>
> >>
> >> Thank you in advance!
> >>
> >>
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Prometheus Developers" 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-developers/cfc35736-9321-438e-8692-c3591ef2e550n%40googlegroups.com.


-- 
Julien Pivotto
@roidelapluie

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Developers" 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-developers/20210219220315.GA364881%40oxygen.

Reply via email to