Skip to content

Instantly share code, notes, and snippets.

@flouthoc
Created October 6, 2020 08:52
Show Gist options
  • Save flouthoc/eb3b8c963af0633102ce42c82062816a to your computer and use it in GitHub Desktop.
Save flouthoc/eb3b8c963af0633102ce42c82062816a to your computer and use it in GitHub Desktop.
SamplePodMonitor.yaml
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: SamplePodMonitor
labels:
team: infra
release: prom-op
spec:
selector:
matchLabels:
app: <your-selector-label>
podMetricsEndpoints:
- targetPort: <exposed-port>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment