Prometheus Targets Errors

1/30/2020

I am trying to retrieve information from Prometheus to the rest of the nodes of my cluster of Kubernetes.

enter image description here

I suspect the error is here and I don't know how to fix it.

Thanks in advance

-- Alejandro López
kubernetes
prometheus

1 Answer

2/3/2020

The solution is simple, my problem was related to SSL, all I have done is skip the ssl and it works only with http.

To me putting the tsl_config section with this, the jobs that failed already work correctly for me:

tls_config:
      ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
      insecure_skip_verify: true
    bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token

The important thing is this: insecure_skip_verify: true and the indentation that has to be as it is above.

-- Alejandro López
Source: StackOverflow