yaml / yaml (push) Successful in 2m53s
Co-authored-by: panxiao81 <[email protected]>
26 lines
575 B
YAML
26 lines
575 B
YAML
apiVersion: monitoring.coreos.com/v1
|
|
kind: ServiceMonitor
|
|
metadata:
|
|
name: seaweedfs
|
|
namespace: monitoring
|
|
spec:
|
|
namespaceSelector:
|
|
matchNames:
|
|
- seaweedfs
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: seaweedfs
|
|
app.kubernetes.io/instance: seaweedfs
|
|
endpoints:
|
|
- port: metrics
|
|
interval: 30s
|
|
honorLabels: true
|
|
relabelings:
|
|
- sourceLabels:
|
|
- __meta_kubernetes_service_name
|
|
regex: seaweedfs-(master|volume|filer)
|
|
action: keep
|
|
- sourceLabels:
|
|
- __meta_kubernetes_service_name
|
|
targetLabel: job
|