Add uptime kuma to prometheus

This commit is contained in:
dvirlabs 2025-08-01 02:52:10 +03:00
commit 25a41142e9
8 changed files with 106 additions and 13 deletions

View File

@ -0,0 +1,15 @@
enabled: true
app: alertmanager
uptime_kuma:
enabled: true
url: https://alertmanager.dvirlabs.com
tag: observability-stack
external_check:
url: https://alertmanager.dvirlabs.com
expected_codes:
'502': critical
'404': warning
'1033': critical
# targets:
# - <exporter-host>:<port>
# scheme: http

View File

@ -0,0 +1,15 @@
enabled: true
app: grafana
uptime_kuma:
enabled: true
url: https://grafana.dvirlabs.com
tag: observability-stack
external_check:
url: https://grafana.dvirlabs.com
expected_codes:
'502': critical
'404': warning
'1033': critical
# targets:
# - <exporter-host>:<port>
# scheme: http

View File

@ -0,0 +1,15 @@
enabled: true
app: kibana-int
uptime_kuma:
enabled: true
url: https://kibana-int.dvirlabs.com
tag: observability-stack
external_check:
url: https://kibana-int.dvirlabs.com
expected_codes:
'502': critical
'404': warning
'1033': critical
# targets:
# - <exporter-host>:<port>
# scheme: http

View File

@ -0,0 +1,15 @@
enabled: true
app: kibana
uptime_kuma:
enabled: true
url: https://kibana.dvirlabs.com
tag: observability-stack
external_check:
url: https://kibana.dvirlabs.com
expected_codes:
'502': critical
'404': warning
'1033': critical
# targets:
# - <exporter-host>:<port>
# scheme: http

View File

@ -0,0 +1,15 @@
enabled: true
app: kuma
uptime_kuma:
enabled: true
url: https://kuma.dvirlabs.com
tag: observability-stack
external_check:
url: https://kuma.dvirlabs.com
expected_codes:
'502': critical
'404': warning
'1033': critical
# targets:
# - <exporter-host>:<port>
# scheme: http

View File

@ -0,0 +1,15 @@
enabled: true
app: prometheus-int
uptime_kuma:
enabled: true
url: https://prometheus-int.dvirlabs.com
tag: observability-stack
external_check:
url: https://prometheus-int.dvirlabs.com
expected_codes:
'502': critical
'404': warning
'1033': critical
# targets:
# - <exporter-host>:<port>
# scheme: http

View File

@ -7,25 +7,13 @@ metadata:
app.kubernetes.io/name: prometheus app.kubernetes.io/name: prometheus
type: Opaque type: Opaque
stringData: stringData:
additional-scrape-configs.yaml: | additional-scrape-configs.yaml: |+
# This content will be auto-updated by the pipeline # This content will be auto-updated by the pipeline
- job_name: harbor - job_name: harbor
static_configs: static_configs:
- targets: - targets:
- harbor-core.dev-tools.svc.cluster.local:8001 - harbor-core.dev-tools.svc.cluster.local:8001
- job_name: vault
static_configs:
- targets:
- vault.dev-tools.svc.cluster.local:8200
metrics_path: /v1/sys/metrics
scheme: http
- job_name: woodpecker
static_configs:
- targets:
- woodpecker.dev-tools.svc.cluster.local:9000
bearer_token: prometheusmetricstoken
scheme: https
- job_name: gitea - job_name: gitea
static_configs: static_configs:
- targets: - targets:

View File

@ -0,0 +1,15 @@
enabled: true
app: prometheus
uptime_kuma:
enabled: true
url: https://prometheus.dvirlabs.com
tag: observability-stack
external_check:
url: https://prometheus.dvirlabs.com
expected_codes:
'502': critical
'404': warning
'1033': critical
# targets:
# - <exporter-host>:<port>
# scheme: http