12 lines
476 B
Bash
12 lines
476 B
Bash
|
|
#!/usr/bin/env bash
|
||
|
|
# D5: Export Prometheus scrape targets (static config from scrape-proxmox.yml)
|
||
|
|
# Use with: include in prometheus.yml or copy to Prometheus config dir
|
||
|
|
|
||
|
|
set -euo pipefail
|
||
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||
|
|
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
|
||
|
|
OUT="$PROJECT_ROOT/smom-dbis-138/monitoring/prometheus/targets-proxmox.yml"
|
||
|
|
|
||
|
|
cp "$PROJECT_ROOT/smom-dbis-138/monitoring/prometheus/scrape-proxmox.yml" "$OUT"
|
||
|
|
echo "Exported: $OUT"
|