core-deployments/sb-server-monitor/4-service-monitor.yaml

29 lines
720 B
YAML
Raw Permalink Normal View History

---
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