Skip to content

Instantly share code, notes, and snippets.

@alok87
Created February 29, 2020 10:31
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
weave-servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: weave-net
labels:
k8s-app: weave-net
namespace: monitoring
spec:
jobLabel: k8s-app
selector:
matchLabels:
k8s-app: weave-net
namespaceSelector:
matchNames:
- kube-system
endpoints:
- port: weave-metrics
path: /metrics
interval: 15s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment