core-deployments/sb-server-monitor/4-service-monitor.yaml
Tom Neuber 6e33238de4
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
fix(sb-server-monitor): resolve server monitor discovery issues
2024-12-05 22:49:45 +01:00

28 lines
720 B
YAML

---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
app: sb-server-monitor-exporter
app.kubernetes.io/instance: sb-server-monitor
app.kubernetes.io/name: sb-server-monitor-exporter
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:
matchLabels:
app.kubernetes.io/instance: sb-server-monitor
app.kubernetes.io/name: sb-server-monitor-exporter