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