apps(prometheus): Add service montior

main
trivernis 12 months ago
parent f37b1545c4
commit 197095d499
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -8,3 +8,4 @@ resources:
- app/metrics-sealedsecret.yaml
- app/release.yaml
- app/route.yaml
- app/monitor.yaml

@ -0,0 +1,20 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
name: prometheus
name: prometheus
namespace: metrics
spec:
endpoints:
- interval: 30s
targetPort: 9090
path: /metrics
- interval: 30s
targetPort: 8080
path: /metrics
namespaceSelector:
any: true
selector:
matchLabels:
prometheus.io/scrape: "true"
Loading…
Cancel
Save