+ Working prometheus setup for host metrics

This commit is contained in:
2022-04-27 21:24:06 -07:00
parent 99a84d454c
commit e8524e950c
4 changed files with 107 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
global:
scrape_interval: 15s
scrape_timeout: 10s
evaluation_interval: 15s
alerting:
alertmanagers:
- follow_redirects: true
enable_http2: true
scheme: http
timeout: 10s
api_version: v2
static_configs:
- targets: []
scrape_configs:
- job_name: prometheus-scraper
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
follow_redirects: true
enable_http2: true
static_configs:
- targets:
- localhost:9090
- "{{PRIVATE_IP}}":9100