3
0
Files
confdroid_prometheus/templates/prune.env.erb
2025-12-07 17:49:14 +01:00

21 lines
590 B
Plaintext

# /opt/prometheus-prune/prune.env
# PostgreSQL connection
PGHOST=<%= @ps_pg_host %>
PGPORT=<%= @ps_pg_port %>
PGDATABASE=<%= @ps_pg_db %>
PGUSER=<%= @ps_pg_user %>
PGPASSWORD=<%= @ps_pg_pass %>
# Dry-run mode (true = just log, false = actually delete)
DRY_RUN=<%= @ps_dry_run %>
# Minimum block age in hours before pruning
MIN_AGE_HOURS=<%= @ps_min_age_hours %>
# Grace period in hours to be extra safe
GRACE_HOURS=<%= @ps_grace_hours %>
# SQL template to check if block exists in PostgreSQL
# @param [String] ps_sql_template the SQL template to use for checks.
<%= @ps_sql_template %>