fix(sb-server-monitor): resolve server monitor discovery issues
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
This commit is contained in:
parent
4524fffe38
commit
6e33238de4
2 changed files with 8 additions and 1 deletions
|
@ -13,7 +13,7 @@ spec:
|
||||||
- name: http-metrics
|
- name: http-metrics
|
||||||
port: 9192
|
port: 9192
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
targetPort: http-metrics
|
targetPort: 9192
|
||||||
selector:
|
selector:
|
||||||
app: sb-server-monitor-exporter
|
app: sb-server-monitor-exporter
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
|
|
|
@ -9,10 +9,17 @@ metadata:
|
||||||
name: sb-server-monitor-exporter-servicemonitor
|
name: sb-server-monitor-exporter-servicemonitor
|
||||||
namespace: sb-server-monitor
|
namespace: sb-server-monitor
|
||||||
spec:
|
spec:
|
||||||
|
attachMetadata:
|
||||||
|
node: false
|
||||||
endpoints:
|
endpoints:
|
||||||
- interval: 5m
|
- interval: 5m
|
||||||
path: /metrics
|
path: /metrics
|
||||||
port: http-metrics
|
port: http-metrics
|
||||||
|
relabelings:
|
||||||
|
- action: replace
|
||||||
|
sourceLabels:
|
||||||
|
- __meta_kubernetes_endpoint_node_name
|
||||||
|
targetLabel: node
|
||||||
scheme: http
|
scheme: http
|
||||||
jobLabel: jobLabel
|
jobLabel: jobLabel
|
||||||
selector:
|
selector:
|
||||||
|
|
Loading…
Reference in a new issue