On Fri, Sep 17, 2021, at 06:42, kazakaze wrote:
> My prometheus is deployed via helm-charts 
> <https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack#kube-prometheus-stack>
>  
> 
> [...]
> 
> 2. How to automatically modify scrape_configs

Since I just pieced this together myself last week, I'll share. :) If you're 
using kube-prometheus-stack (which you should be):

helm show values prometheus-community/kube-prometheus-stack

Will give you a list of all configuration values for the helm chart. The one 
you're looking for is prometheus.prometheusSpec.additionalScrapeConfigs.

-- 
Harald

-- 
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/6dd178b2-e393-4e73-a7a5-c0e63c49b43a%40www.fastmail.com.

Reply via email to