3
0
Arne Teuke
2025-10-18 15:47:20 +02:00
parent 04177496ab
commit dc68bd9766
2 changed files with 10 additions and 1 deletions

View File

@@ -13,6 +13,8 @@
# @param [String] ps_main_port the firewall main port for prometheus
# @param [String] ps_auth_user the username for authentication
# @param [String] ps_auth_pass the password for authentication
# @param [String] ps_retention_time tsdb retention time
# @param [String] ps_retention_size tsdb retention size
##############################################################################
class prometheus_cd::params (
@@ -35,6 +37,10 @@ class prometheus_cd::params (
String $ps_auth_user = 'changeme',
String $ps_auth_pass = 'changeme',
# storage
String $ps_retention_time = '15d',
String $ps_retention_size = '20GB',
) {
# defaults
$fqdn = $facts['networking']['fqdn']

View File

@@ -8,3 +8,6 @@ ExecStart=/usr/bin/prometheus \
--storage.tsdb.path=/var/lib/prometheus \
--web.enable-remote-write-receiver \
--web.enable-lifecycle
--storage.tsdb.wal-compression
--storage.tsdb.retention.time=<%= @ps_retention_time %>
--storage.tsdb.retention.size=<%= @ps_retention_size %>