Come on IT/DevOps
Prometheus exporter 에서 수집이 안되는 경우 (feat. grafana)
JONGSKY
2025. 2. 26. 17:06
728x90
SMALL
1. 글을 쓰게 된 계기
현재는 해결되어서 위와 같은 상황이지만,
이전에는 1개의 노드에 대해서 안되는 이슈가 있었습니다.
serviceMonitor/monitoring/prometheus-prometheus-node-exporter/0 (3/3 up)
그래서 이를 해결하는 방법을 정리해놓고자 합니다.
2. 해결 방법
calicoctl get node super -o yaml
spec:
addresses:
- address: 192.168.0.8/24
type: CalicoNodeIP
- address: 192.168.0.50
type: InternalIP
bgp:
ipv4Address: 192.168.0.8/24
ipv4IPIPTunnelAddr: 192.168.78.192
다음과 같이 나왔는데
연결이 되지 않았던 이유가 주소가 잘못되었기 때문에 나왔던 이슈였습니다.
따라서
노드에서 calico 설정을 올바르게 변경할 수 있도록 수정해주었습니다.
(+ 현재 실행중인 Pod들도 있었기 때문에 멈추지 않고 수정될 수 있도록 설정했습니다.)
calicoctl patch node super --patch='{
"spec": {
"addresses": [
{
"address": "192.168.0.50/24",
"type": "CalicoNodeIP"
}
],
"bgp": {
"ipv4Address": "192.168.0.50/24"
}
}
}' --type=merge
변경 적용 후 확인
calicoctl get node -o wide
calicoctl node status
728x90
LIST