autoscript/templates/monitoring/prometheus.yml
Paweł Orzech 6130a140b3 refactor: Ustawienie social.ovh jako domeny głównej
1 Przeprowadzono refaktoryzację konfiguracji w celu ustawienia `social.ovh` jako domeny głównej, przeznaczonej dla instancji
     Mastodona.
   2
   3 Kluczowe zmiany:
   4 - Zaktualizowano domyślne wartości w `autoscript.conf.example`, aby używać `social.ovh` jako `PRIMARY_DOMAIN`.
   5 - Zmieniono adresy e-mail i hosty SMTP na subdomeny `social.ovh`.
   6 - Zaktualizowano szablony konfiguracyjne dla usług monitoringu (Prometheus, Grafana, Alertmanager), aby były dostępne pod
     subdomenami `*.social.ovh`.
   7 - W konfiguracji `blackbox-exporter` pozostawiono `forum.yeswas.pl` jako zewnętrzny cel do monitorowania, jednocześnie dodając
     nowe usługi.
   8 - Zaktualizowano `README.md` i `CHANGELOG.md`, aby odzwierciedlały nową strukturę.
2025-08-03 12:50:55 +02:00

34 lines
1.1 KiB
YAML

global:
scrape_interval: 15s
evaluation_interval: 15s
rule_files:
- "/etc/prometheus/rules/*.yml"
alerting:
alertmanagers:
- static_configs: [{ targets: ['alertmanager:9093'] }]
scrape_configs:
- job_name: prometheus
static_configs: [{ targets: ['localhost:9090'] }]
- job_name: node-exporter
static_configs: [{ targets: ['node-exporter:9100'] }]
- job_name: cadvisor
static_configs: [{ targets: ['cadvisor:8080'] }]
- job_name: traefik
static_configs: [{ targets: ['traefik:8080'] }]
- job_name: blackbox
metrics_path: /probe
params: { module: [http_2xx] }
static_configs:
- targets:
- https://forum.yeswas.pl # Domena zewnętrzna
- https://social.ovh # Główna domena Mastodona
- https://grafana.social.ovh
- https://prometheus.social.ovh
- https://alertmanager.social.ovh
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: blackbox-exporter:9115