🏗️」 wip: prom added :D

This commit is contained in:
2025-07-22 14:57:54 +02:00
parent e523c1710c
commit 12445e22e4
13 changed files with 115 additions and 3 deletions

View File

@ -0,0 +1,17 @@
global:
scrape_interval: 30s
# alerting:
# alertmanagers:
# - static_configs:
# - targets:
# - alertmanager:9093
scrape_configs:
- job_name: 'prometheus'
metrics_path: '/prometheus/metrics'
basic_auth:
username: admin
password: PROM_ADMIN_PASSWD
static_configs:
- targets: ['localhost:9090']

View File

@ -0,0 +1,12 @@
groups:
- name: AllInstances
rules:
- alert: InstanceDown
# Condition for alerting
expr: up == 0
for: 20s
annotations:
title: 'Instance {{ $labels.instance }} down'
description: '{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 20 seconds.'
labels:
severity: 'critical'

View File

@ -0,0 +1,2 @@
basic_auth_users:
admin: PROM_ADMIN_PASSWD_HASH