简体   繁体   English

Prometheus 目标错误

[英]Prometheus Targets Errors

I am trying to retrieve information from Prometheus to the rest of the nodes of my cluster of Kubernetes.我正在尝试从 Prometheus 检索信息到我的 Kubernetes 集群的其余节点。

在此处输入图片说明

I suspect the error is here and I don't know how to fix it.我怀疑错误在这里,我不知道如何修复它。

Thanks in advance提前致谢

The solution is simple, my problem was related to SSL, all I have done is skip the ssl and it works only with http.解决方案很简单,我的问题与 SSL 有关,我所做的只是跳过 ssl,它仅适用于 http。

To me putting the tsl_config section with this, the jobs that failed already work correctly for me:对我来说,将 tsl_config 部分放在一起,失败的作业对我来说已经正常工作了:

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.重要的是: insecure_skip_verify: true和必须与上面一样的缩进。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM