n9e-helm
n9e-helm copied to clipboard
prometheus targets mistake
问题:
我使用 Helm 部署服务后发现, 监控目标 n9e 准备失败报错如下
错误排查:
- 排查 kubernetes svc 后发现, svc内并没有创造名称为 n9e 的 svc 导致连接失败
- 并且 prometheus 在报错格式错误
修改后格式和 svc 名称后恢复
已修复
修改文件:templates/prometheus/configmap.yaml
PR地址:https://github.com/flashcatcloud/n9e-helm/pull/107
n9e对应的service 应该是nightingale-center吧
https://github.com/flashcatcloud/n9e-helm/blob/master/templates/n9e/service.yaml#L21
https://github.com/flashcatcloud/n9e-helm/blob/master/templates/_helpers.tpl#L256
是的您说的没错,我发现有两个 service:nightingale-center和nightingale 都可以使用所以搞错了哈哈。我会去修改一下我的提交
感谢反馈