mirror of
https://github.com/KeyZox71/knl_meowscendence.git
synced 2025-08-14 20:42:53 +02:00
「🏗️」 wip: prom added :D
This commit is contained in:
17
docker/monitoring/prometheus/config/prometheus.yml
Normal file
17
docker/monitoring/prometheus/config/prometheus.yml
Normal 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']
|
12
docker/monitoring/prometheus/config/rules.yml
Normal file
12
docker/monitoring/prometheus/config/rules.yml
Normal 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'
|
2
docker/monitoring/prometheus/config/web-config.yml
Normal file
2
docker/monitoring/prometheus/config/web-config.yml
Normal file
@ -0,0 +1,2 @@
|
||||
basic_auth_users:
|
||||
admin: PROM_ADMIN_PASSWD_HASH
|
Reference in New Issue
Block a user