Skip to content

Instantly share code, notes, and snippets.

@cvicens
Last active June 16, 2020 12:06
Show Gist options
  • Save cvicens/f31fdf50b848d558c0f827b21f5a8c7b to your computer and use it in GitHub Desktop.
Save cvicens/f31fdf50b848d558c0f827b21f5a8c7b to your computer and use it in GitHub Desktop.
Prometheus Operator sample ServiceMonitor for Spring Boot
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