Monitoring Services Configuration

Configuring monitoring services

Configuring Prometheus

Retention of metrics

By default, the prometheus database has a retention of 14 days, which is determined through the setting PROMETHEUS_STORAGE_RETENTION=, for instance

PROMETHEUS_STORAGE_RETENTION=336h

Based on monitoring requirements and provisioning, this can be increased, where the required space would be:

needed_disk_space = retention_time_seconds * ingested_samples_per_second * bytes_per_sample

based on this rule of thumb where an average sample is between 1 and 2 bytes in size