OP#179 add more tsdb options
This commit is contained in:
@@ -17,6 +17,8 @@
|
||||
# @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
|
||||
# @param [String] ps_min_block_dur tsdb minimum block duration
|
||||
# @param [String] ps_max_block_dur tsdb maximum block duration
|
||||
# @param [String] ps_max_mem hard memory ceiling
|
||||
# @param [String] ps_high_mem soft limit to make kernel reclaim earlier
|
||||
# @param [String] ps_swap_mem allow swap, but limit it
|
||||
@@ -49,6 +51,8 @@ class prometheus_cd::params (
|
||||
String $ps_retention_time = '15d',
|
||||
String $ps_retention_size = '20GB',
|
||||
String $ps_wal_seg_size = '50MB',
|
||||
String $ps_min_block_dur = '2h',
|
||||
String $ps_max_block_dur = '2h',
|
||||
|
||||
# service
|
||||
String $ps_max_mem = '6G',
|
||||
|
||||
@@ -18,4 +18,6 @@ ExecStart=/usr/bin/prometheus \
|
||||
--storage.tsdb.wal-segment-size=<%= @ps_wal_seg_size %> \
|
||||
--web.enable-remote-write-receiver \
|
||||
--web.enable-lifecycle \
|
||||
--storage.tsdb.wal-compression
|
||||
--storage.tsdb.wal-compression \
|
||||
--storage.tsdb.min-block-duration=<%= @ps_min_block_dur %> \
|
||||
--storage.tsdb.max-block-duration=<%= @ps_max_block_dur %>
|
||||
Reference in New Issue
Block a user