add setting for WAL segment size - https://gitlab.confdroid.com/internal/confdroid_management/-/issues/260
This commit is contained in:
@@ -31,6 +31,7 @@ CONFIGURATION
|
|||||||
Configurable options:
|
Configurable options:
|
||||||
- --storage.tsdb.retention.time via `$ps_retention_time`
|
- --storage.tsdb.retention.time via `$ps_retention_time`
|
||||||
- --storage.tsdb.retention.size via `$ps_retention_size`
|
- --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 user via `$ps_auth_user`
|
||||||
- authentication password via `$ps_auth_pass`
|
- authentication password via `$ps_auth_pass`
|
||||||
- web authentication password via `$ps_web_pass` ( different format required)
|
- web authentication password via `$ps_web_pass` ( different format required)
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
# @param [String] ps_web_pass the password for web authentication
|
# @param [String] ps_web_pass the password for web authentication
|
||||||
# @param [String] ps_retention_time tsdb retention time
|
# @param [String] ps_retention_time tsdb retention time
|
||||||
# @param [String] ps_retention_size tsdb retention size
|
# @param [String] ps_retention_size tsdb retention size
|
||||||
|
# @param [String] ps_wal_seg_size WAL segment size
|
||||||
##############################################################################
|
##############################################################################
|
||||||
class prometheus_cd::params (
|
class prometheus_cd::params (
|
||||||
|
|
||||||
@@ -42,6 +43,7 @@ class prometheus_cd::params (
|
|||||||
# storage
|
# storage
|
||||||
String $ps_retention_time = '15d',
|
String $ps_retention_time = '15d',
|
||||||
String $ps_retention_size = '20GB',
|
String $ps_retention_size = '20GB',
|
||||||
|
String $ps_wal_seg_size = '50MB',
|
||||||
|
|
||||||
) {
|
) {
|
||||||
# defaults
|
# defaults
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ ExecStart=/usr/bin/prometheus \
|
|||||||
--storage.tsdb.path=/var/lib/prometheus \
|
--storage.tsdb.path=/var/lib/prometheus \
|
||||||
--storage.tsdb.retention.time=<%= @ps_retention_time %> \
|
--storage.tsdb.retention.time=<%= @ps_retention_time %> \
|
||||||
--storage.tsdb.retention.size=<%= @ps_retention_size %> \
|
--storage.tsdb.retention.size=<%= @ps_retention_size %> \
|
||||||
|
--storage.tsdb.wal-segment-size=<%= @psps_wal_seg_size %> \
|
||||||
--web.enable-remote-write-receiver \
|
--web.enable-remote-write-receiver \
|
||||||
--web.enable-lifecycle \
|
--web.enable-lifecycle \
|
||||||
--storage.tsdb.wal-compression
|
--storage.tsdb.wal-compression
|
||||||
Reference in New Issue
Block a user