Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,18 @@ PGAI_TAG=0.14.0
REPLICATOR_PASSWORD=
VM_AUTH_USERNAME=vmauth
VM_AUTH_PASSWORD=

# VictoriaMetrics retention period — set per plan.
# Accepts VictoriaMetrics duration formats (e.g. 168h, 30d, 6, 12).
# Suggested values:
# Starter (7-day history): 168h
# Scale (6-month history): 6
# Default below preserves the previous hardcoded value.
# VM_RETENTION_PERIOD=336h

# Postgres queryid mapping retention (hours) — set per plan.
# Suggested values:
# Starter (7-day history): 168
# Scale (6-month history): 4380
# Default below preserves the previous in-code default.
# QUERYID_RETENTION_HOURS=720
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ services:
if [ -n "$$VM_AUTH_USERNAME" ] && [ -n "$$VM_AUTH_PASSWORD" ]; then
AUTH_ARGS="-httpAuth.username=$$VM_AUTH_USERNAME -httpAuth.password=$$VM_AUTH_PASSWORD"
fi
exec /victoria-metrics-prod -storageDataPath=/victoria-metrics-data -retentionPeriod=336h -httpListenAddr=:9090 -promscrape.config=/postgres_ai_configs/prometheus/prometheus.yml -promscrape.config.strictParse=false -promscrape.maxScrapeSize=128000000 -search.maxQueryDuration=30s -search.maxConcurrentRequests=16 $$AUTH_ARGS
exec /victoria-metrics-prod -storageDataPath=/victoria-metrics-data -retentionPeriod=${VM_RETENTION_PERIOD:-336h} -httpListenAddr=:9090 -promscrape.config=/postgres_ai_configs/prometheus/prometheus.yml -promscrape.config.strictParse=false -promscrape.maxScrapeSize=128000000 -search.maxQueryDuration=30s -search.maxConcurrentRequests=16 $$AUTH_ARGS
depends_on:
config-init:
condition: service_completed_successfully
Expand Down Expand Up @@ -260,6 +260,7 @@ services:
- POSTGRES_SINK_URL=postgresql://pgwatch@sink-postgres:5432/measurements
- VM_AUTH_USERNAME=${VM_AUTH_USERNAME:-}
- VM_AUTH_PASSWORD=${VM_AUTH_PASSWORD:-}
- QUERYID_RETENTION_HOURS=${QUERYID_RETENTION_HOURS:-720}
# Optional overrides:
# - ENABLE_AMP=true (enable Amazon Managed Prometheus support)
# - AWS_REGION=us-east-1 (AWS region for Amazon Managed Prometheus)
Expand Down
Loading