Thank you! I totally missed that tls_config section at the job level!

On Tuesday, May 2, 2023 at 2:51:20 AM UTC-4 Brian Candler wrote:

> You can add a separate tls_config key at the top level of the scrape job,. 
> This controls TLS used for https scrapes (as opposed to service discovery). 
> See:
>
>
> https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config
>
> https://prometheus.io/docs/prometheus/latest/configuration/configuration/#tls_config
>
> Hence:
>
> - job_name: "grafana"
> consul_sd_configs:
> - server: "consul.service.consul:8500"
> services:
> - grafana
> scheme: https
> tls_config:
> insecure_skip_verify: true
> relabel_configs:
> - source_labels: [__meta_consul_node]
> target_label: hostname
> - target_label: __scheme__
> replacement: https
> * tls_config:*
> * insecure_skip_verify: true*
>
>

-- 
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/33e50218-8461-48c7-b672-56995baaa87an%40googlegroups.com.

Reply via email to