Co-authored-by: panxiao81 <[email protected]>
This commit was merged in pull request #160.
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
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
|
||||
Reference in New Issue
Block a user