Re: [prometheus-users] Does Prometheus automatically scrape metrics by default from all Namespaces?

2020-06-23 Thread vikram yerneni
Here it is: scrape_configs: - job_name: prometheus static_configs: - targets: - localhost:9090 - job_name: 'kubernetes-apiservers' kubernetes_sd_configs: - role: endpoints scheme: https tls_config: ca_file:

Re: [prometheus-users] Does Prometheus automatically scrape metrics by default from all Namespaces?

2020-06-23 Thread Stuart Clark
On 23/06/2020 16:40, vikram yerneni wrote: Thanks Staurt for the reply here. And nope, I didn't added the scrape_config for the metrics for this new application that we deployed recently. Before I add the scrape configuration, I want to make sure that Prometheus doesn't scrape all metrics by

Re: [prometheus-users] Does Prometheus automatically scrape metrics by default from all Namespaces?

2020-06-23 Thread vikram yerneni
Thanks Staurt for the reply here. And nope, I didn't added the scrape_config for the metrics for this new application that we deployed recently. Before I add the scrape configuration, I want to make sure that Prometheus doesn't scrape all metrics by default (unless its been told). Now you

Re: [prometheus-users] Does Prometheus automatically scrape metrics by default from all Namespaces?

2020-06-23 Thread Stuart Clark
There is usually some sort of annotation needed to indicate that something should be scraped. Check you scrape config to see what you currently have configured. On 23 June 2020 15:50:56 BST, vikram yerneni wrote: >Fellas, >Quick question here: > >Does Prometheus automatically scrape metrics

[prometheus-users] Does Prometheus automatically scrape metrics by default from all Namespaces?

2020-06-23 Thread vikram yerneni
Fellas, Quick question here: Does Prometheus automatically scrape metrics by default from all Namespaces or do we have to specifically add it to the Prometheus configuration for the metrics to get scraped? I have default scrape_configs from the stable helm setups and they are running fine,