mirror of
https://github.com/elAgala/server-initializer.git
synced 2026-02-14 05:06:18 +00:00
refactor: rethink monitoring structure | add Loki && Promtail | new Grafana conf
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
global:
|
||||
scrape_interval: 15s
|
||||
evaluation_interval: 15s
|
||||
|
||||
rule_files:
|
||||
# - "first_rules.yml"
|
||||
# - "second_rules.yml"
|
||||
|
||||
scrape_configs:
|
||||
|
||||
- job_name: 'prometheus'
|
||||
static_configs:
|
||||
- targets: ['prometheus:9090']
|
||||
@@ -10,15 +14,29 @@ scrape_configs:
|
||||
- job_name: 'node'
|
||||
static_configs:
|
||||
- targets: ['node-exporter:9100']
|
||||
|
||||
- job_name: 'crowdsec'
|
||||
static_configs:
|
||||
- targets: ['crowdsec:6060']
|
||||
|
||||
- job_name: 'caddy'
|
||||
static_configs:
|
||||
- targets: ['caddy:2019']
|
||||
scrape_interval: 5s
|
||||
metrics_path: /metrics
|
||||
|
||||
- job_name: 'cadvisor'
|
||||
static_configs:
|
||||
- targets: ['cadvisor:8080']
|
||||
scrape_interval: 5s
|
||||
metrics_path: /metrics
|
||||
|
||||
- job_name: 'caddy'
|
||||
static_configs:
|
||||
- targets: ['caddy:2019']
|
||||
scrape_interval: 5s
|
||||
metrics_path: /metrics
|
||||
|
||||
- job_name: 'crowdsec'
|
||||
static_configs:
|
||||
- targets: ['crowdsec:6060']
|
||||
scrape_interval: 30s
|
||||
metrics_path: /metrics
|
||||
|
||||
- job_name: 'loki'
|
||||
static_configs:
|
||||
- targets: ['loki:3100']
|
||||
scrape_interval: 15s
|
||||
metrics_path: /metrics
|
||||
Reference in New Issue
Block a user