k8s 部署 prometheus 采集监控
安装
|
|
由于kube-prometheus 有 networkpolicy,所以不能访问 monitoring 命名空间的 pod,需要把 networkpolicy 删除掉
|
|
问题排查
如果配置了 servicemonitor还是不能访问,检查servicemonitor配置,给 prometheus 增加权限
|
|
|
|
由于kube-prometheus 有 networkpolicy,所以不能访问 monitoring 命名空间的 pod,需要把 networkpolicy 删除掉
|
|
如果配置了 servicemonitor还是不能访问,检查servicemonitor配置,给 prometheus 增加权限
|
|