From ea7d76466404f933bbc389128c814904f0e47a24 Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Sat, 18 Oct 2025 17:33:33 +0200 Subject: [PATCH 1/2] add setting for WAL segment size - https://gitlab.confdroid.com/internal/confdroid_management/-/issues/260 --- README.md | 1 + manifests/params.pp | 2 ++ templates/override.conf.erb | 1 + 3 files changed, 4 insertions(+) diff --git a/README.md b/README.md index e6c997e..1da2ce9 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/manifests/params.pp b/manifests/params.pp index e655d6e..bfcd81e 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -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 diff --git a/templates/override.conf.erb b/templates/override.conf.erb index be35f1a..0766512 100644 --- a/templates/override.conf.erb +++ b/templates/override.conf.erb @@ -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 \ No newline at end of file From dab5ad068178390337a5541563830cc690160577 Mon Sep 17 00:00:00 2001 From: Jenkins Server Date: Sat, 18 Oct 2025 17:34:45 +0200 Subject: [PATCH 2/2] Recommit for updates in build 35 --- doc/file.README.html | 2 +- doc/index.html | 2 +- .../prometheus_cd_3A_3Aparams.html | 26 ++++++++++++++++--- 3 files changed, 25 insertions(+), 5 deletions(-) diff --git a/doc/file.README.html b/doc/file.README.html index b0d318a..79d8ab3 100644 --- a/doc/file.README.html +++ b/doc/file.README.html @@ -92,7 +92,7 @@

manage service

-

Configurable options: - –storage.tsdb.retention.time via $ps_retention_time - –storage.tsdb.retention.size via $ps_retention_size - authentication user via $ps_auth_user - authentication password via $ps_auth_pass - web authentication password via $ps_web_pass ( different format required)

+

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)

Repo Documentation

diff --git a/doc/index.html b/doc/index.html index f094e77..923bcc0 100644 --- a/doc/index.html +++ b/doc/index.html @@ -92,7 +92,7 @@

manage service

-

Configurable options: - –storage.tsdb.retention.time via $ps_retention_time - –storage.tsdb.retention.size via $ps_retention_size - authentication user via $ps_auth_user - authentication password via $ps_auth_pass - web authentication password via $ps_web_pass ( different format required)

+

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)

Repo Documentation

diff --git a/doc/puppet_classes/prometheus_cd_3A_3Aparams.html b/doc/puppet_classes/prometheus_cd_3A_3Aparams.html index 3ab5fc0..28973b8 100644 --- a/doc/puppet_classes/prometheus_cd_3A_3Aparams.html +++ b/doc/puppet_classes/prometheus_cd_3A_3Aparams.html @@ -358,6 +358,24 @@ —

tsdb retention size

+
+ + + +
  • + + ps_wal_seg_size + + + (String) + + + (defaults to: '50MB') + + + — +
    +

    WAL segment size

  • @@ -373,7 +391,6 @@
     
     
    -20
     21
     22
     23
    @@ -421,10 +438,12 @@
     65
     66
     67
    -68
    +68 +69 +70 -
    # File 'manifests/params.pp', line 20
    +        
    # File 'manifests/params.pp', line 21
     
     class prometheus_cd::params (
     
    @@ -451,6 +470,7 @@ class prometheus_cd::params (
       # storage
       String $ps_retention_time     = '15d',
       String $ps_retention_size     = '20GB',
    +  String $ps_wal_seg_size       = '50MB',
     
     ) {
       # defaults