Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (25 sloc) 567 Bytes
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: sync-gateway
namespace: couchbase
labels:
app: sync-gateway
spec:
jobLabel: sync-gateway
selector:
matchLabels:
app: sync-gateway
namespaceSelector:
matchNames:
- couchbase
endpoints:
- port: http
# comment following lines to use the pod IP instead of its name as instance:
relabelings:
- sourceLabels: [__meta_kubernetes_pod_name]
separator: ;
regex: (.*)
targetLabel: instance
replacement: $1
action: replace
You can’t perform that action at this time.