++mon
This commit is contained in:
parent
da73f95841
commit
3a20fcdc7e
1 changed files with 16 additions and 0 deletions
16
prometheus-monitoring/servicemonitor1.yaml
Normal file
16
prometheus-monitoring/servicemonitor1.yaml
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: ServiceMonitor
|
||||||
|
metadata:
|
||||||
|
name: gitlab-metrics-servicemonitor
|
||||||
|
# Change this to the namespace the Prometheus instance is running in
|
||||||
|
# namespace: default
|
||||||
|
labels:
|
||||||
|
app: gitlab-runner-gitlab-runner
|
||||||
|
release: prometheus
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: gitlab-runner-gitlab-runner # target gitlab service
|
||||||
|
endpoints:
|
||||||
|
- port: metrics
|
||||||
|
interval: 15s
|
Loading…
Reference in a new issue