-
Notifications
You must be signed in to change notification settings - Fork 469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
operator: can't get prometheus metrics on nacos-server v2.1.1 #344
Comments
我也遇到这个问题,有解决方案吗 |
感觉比较简单的方法是修改nacos-docker的脚本,自己编译一个镜像,或者用2.1.0的镜像 |
可以直接通过ConfigMap挂载application.properties文件来解决这个问题 |
那spec.config存在的意义是什么 |
@rnyrnyrny 请问你的Operator版本是多少?能在Operator里加参数吗?我这边加参数报错,是不是格式不对? |
把key换成name试试呢 |
@rnyrnyrny 换成name就好了,谢谢 |
@rnyrnyrny 请问你怎么解决这个问题的?我也碰到了同样的问题 |
看下这个提交nacos-group/nacos-docker@4f16131 或者你用configmap挂载application.properties, 这是作者要求的使用方式 |
使用operator部署nacos集群,镜像版本v2.1.1,按照Nacos 监控手册的指南,在config里配置了
management.endpoints.web.exposure.include=*
,然而访问/nacos/actuator/prometheus
得到的是一个404的Whitelabel Error Page.看了下nacos-server的启动脚本,v2.1.1版本镜像已经不会读取init.d里面的配置了:
nacos-group/nacos-docker@4f16131
尝试在env里面加上两个环境变量:
结果还是一样
The text was updated successfully, but these errors were encountered: