Skip to content

Instantly share code, notes, and snippets.

@tsh-code
Created November 9, 2020 16:26
Show Gist options
  • Save tsh-code/0d402b34d4a3e3c925464874e5b8aa48 to your computer and use it in GitHub Desktop.
Save tsh-code/0d402b34d4a3e3c925464874e5b8aa48 to your computer and use it in GitHub Desktop.
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
generation: 1
labels:
app: web
release: prometheus-operator
name: web-app-sm
spec:
endpoints:
- path: /metrics
port: http
namespaceSelector:
matchNames:
- default
selector:
matchLabels:
app: web
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment