Skip to content

Instantly share code, notes, and snippets.

@0sc
Created July 14, 2019 22:54
Show Gist options
  • Save 0sc/054b0f71c641ed2313e134b211f4b6eb to your computer and use it in GitHub Desktop.
Save 0sc/054b0f71c641ed2313e134b211f4b6eb to your computer and use it in GitHub Desktop.
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: pinger-monitor
labels:
app: pinger
prometheus: prom-op
spec:
selector:
matchLabels:
app: pinger
jobLabel: pinger
namespaceSelector:
matchNames:
- "default"
targetLabels:
- app
endpoints:
- port: web
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment