Skip to content

Instantly share code, notes, and snippets.

@alok87
Created February 29, 2020 10:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alok87/e46a7f9a79ef6d1da6964a035be2cfb9 to your computer and use it in GitHub Desktop.
Save alok87/e46a7f9a79ef6d1da6964a035be2cfb9 to your computer and use it in GitHub Desktop.
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