Created
June 9, 2019 23:08
-
-
Save alexcheng1982/11f2cd4da52637c5a83f810456355c9d to your computer and use it in GitHub Desktop.
Prometheus Operator ServiceMonitor for Spring Boot apps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: monitoring.coreos.com/v1 | |
kind: ServiceMonitor | |
metadata: | |
name: my-service | |
labels: | |
release: prometheus-operator | |
spec: | |
selector: | |
matchLabels: | |
app: my-service | |
endpoints: | |
- port: api | |
path: '/actuator/prometheus' | |
interval: 10s | |
honorLabels: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment