feat: add Pi monitoring stack with deployment scripts and architecture documentation
This commit is contained in:
24
setup/pi-monitoring/prometheus/prometheus.yml
Normal file
24
setup/pi-monitoring/prometheus/prometheus.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
global:
|
||||
scrape_interval: 15s
|
||||
evaluation_interval: 15s
|
||||
|
||||
scrape_configs:
|
||||
- job_name: prometheus
|
||||
static_configs:
|
||||
- targets: ["prometheus:9090"]
|
||||
|
||||
- job_name: pi-node
|
||||
static_configs:
|
||||
- targets: ["node-exporter:9100"]
|
||||
|
||||
- job_name: pi-cadvisor
|
||||
static_configs:
|
||||
- targets: ["cadvisor:8080"]
|
||||
|
||||
# Add Fedora/Unraid (or any remote host) targets in:
|
||||
# /srv/ops/prometheus/targets/external.yml
|
||||
# A template is generated from external.yml.example by deploy_stack.sh.
|
||||
- job_name: external-node-exporters
|
||||
file_sd_configs:
|
||||
- files:
|
||||
- /etc/prometheus/targets/*.yml
|
||||
15
setup/pi-monitoring/prometheus/targets/external.yml.example
Normal file
15
setup/pi-monitoring/prometheus/targets/external.yml.example
Normal file
@@ -0,0 +1,15 @@
|
||||
# Example scrape targets for external hosts.
|
||||
# Copy to /srv/ops/prometheus/targets/external.yml and edit real IPs.
|
||||
|
||||
- labels:
|
||||
job: unraid-node
|
||||
targets:
|
||||
- 192.168.1.82:9100
|
||||
|
||||
- labels:
|
||||
job: fedora-node
|
||||
targets:
|
||||
- 192.168.1.90:9100
|
||||
|
||||
# If you expose cAdvisor on remote hosts, add additional targets here.
|
||||
# Keep this file in YAML list format.
|
||||
Reference in New Issue
Block a user