3
0
This commit is contained in:
Arne Teuke
2025-10-18 17:33:33 +02:00
parent 7ee8c17e91
commit ea7d764664
3 changed files with 4 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ CONFIGURATION
Configurable options:
- --storage.tsdb.retention.time via `$ps_retention_time`
- --storage.tsdb.retention.size via `$ps_retention_size`
- --storage.tsdb.wal-segment-size via `ps_wal_seg_size`
- authentication user via `$ps_auth_user`
- authentication password via `$ps_auth_pass`
- web authentication password via `$ps_web_pass` ( different format required)

View File

@@ -16,6 +16,7 @@
# @param [String] ps_web_pass the password for web authentication
# @param [String] ps_retention_time tsdb retention time
# @param [String] ps_retention_size tsdb retention size
# @param [String] ps_wal_seg_size WAL segment size
##############################################################################
class prometheus_cd::params (
@@ -42,6 +43,7 @@ class prometheus_cd::params (
# storage
String $ps_retention_time = '15d',
String $ps_retention_size = '20GB',
String $ps_wal_seg_size = '50MB',
) {
# defaults

View File

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