Last active
June 16, 2020 12:06
-
-
Save cvicens/f31fdf50b848d558c0f827b21f5a8c7b to your computer and use it in GitHub Desktop.
Prometheus Operator sample ServiceMonitor for Spring Boot
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: | |
labels: | |
k8s-app: spring-boot-actuator-monitor | |
name: spring-boot-actuator-monitor | |
namespace: monitoring | |
spec: | |
endpoints: | |
- interval: 30s | |
path: /actuator/prometheus | |
port: 8080-tcp | |
namespaceSelector: | |
any: true | |
selector: | |
matchLabels: | |
team: spring-boot-actuator |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment