endpints missing when try to monitor custom node #1204
Unanswered
tianjiaolaozu
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hey, if you see no targets on the Prometheus's target page, I'd say that your ServiceMonitor object is not configured correctly. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello guys,
I am using kube-prometheus version 2.11.0 and try to monitor nodes running centos7 that not the worker nodes of the k8s cluster with service monitor. I have installed and run node_exporter on each node and configured: endpoints, service and service monitoring.
Below is my endpoints configure:
`apiVersion: v1
kind: Endpoints
metadata:
labels:
run: node-exporter-test
name: node-exporter-test
namespace: monitoring
subsets:
ports:
port: 9100
protocol: TCP
`
However, It happened to me that, after few hours I will see 0/0 up from the "targets" tab and if I check the endpoints information using kubectl get endpoints node-exporter-test -o yaml -n monitoring command, I will see configure information below "subset"
will be missing from the yaml print, any advice?
Beta Was this translation helpful? Give feedback.
All reactions