I am trying to bypass tls cert verification for a target fetched by querying consul.
- 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
The 'insecure_skip_verify' part only seems to be used for accessing consul. But since grafana is running using a self-signed cert as well, I was hoping that its certificate would also not be verified.
But I keep getting this error suggesting that the final target is still getting its cert verified.
Is there a way to bypass tls cert verification for the final target? Any suitable annotation that I can relabel?
I am using Prometheus 2.43.0.
Thanks,
Sandip