Kubernetes自定义指标在服务级别不可用

问题描述

我已经在Kubernetes集群上安装了Prometheus服务器和适配器,以从Kubernetes对象收集指标。

Prometheus服务器和适配器使用Helm图表安装,并且运行良好。现在已部署了Spring boot应用程序,该应用程序在端点/ actuator / prometheus上提供指标。

在部署文件中的注释下方添加

annotations:
        prometheus.io/scrape: "true"
        prometheus.io/port: "8080"
        prometheus.io/path: "/actuator/prometheus"    

现在,我可以在广告连播级别上看到自定义指标:

enter image description here

当我尝试查看服务级别的指标时,会抛出错误

服务器错误(NotFound):服务器找不到指标 用于服务的redis_queue_Box_provider_size

收集到prometheus服务器的

度量样本:

enter image description here

我需要做一些配置来收集服务级别的指标吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)