diff --git a/doc/file.README.html b/doc/file.README.html index 7bf71c0..6ab6a8b 100644 --- a/doc/file.README.html +++ b/doc/file.README.html @@ -90,12 +90,16 @@
manage service
-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 - –storage.tsdb.min-block-duration via ps_min_block_dur - –storage.tsdb.max-block-duration via ps_max_block_dur - authentication user via $ps_auth_user - authentication password via $ps_auth_pass - web authentication password via $ps_web_pass ( different format required) - external remote write ( writing to a remote instance like pg-adapter): - ps_write_external true enables it - ps_external_url must be a valid full url - ps_auth_ext_usermust be a valid user - ps_auth_ext_passmust be a valid password
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 - –storage.tsdb.min-block-duration via ps_min_block_dur - –storage.tsdb.max-block-duration via ps_max_block_dur - authentication user via $ps_auth_user - authentication password via $ps_auth_pass - web authentication password via $ps_web_pass ( different format required) - external remote write ( writing to a remote instance like pg-adapter): - ps_write_external true enables it - ps_external_url must be a valid full url - ps_auth_ext_usermust be a valid user - ps_auth_ext_passmust be a valid password - pruning local blocks - ps_enable_pruning true enables it - ps_pruning_dir the directory where the pruning script should live
See the full Puppet documentation including parameters in docs/index.html
All dependencies must be included in the catalogue.
diff --git a/doc/index.html b/doc/index.html index b8a1c94..7d6633e 100644 --- a/doc/index.html +++ b/doc/index.html @@ -90,12 +90,16 @@manage service
-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 - –storage.tsdb.min-block-duration via ps_min_block_dur - –storage.tsdb.max-block-duration via ps_max_block_dur - authentication user via $ps_auth_user - authentication password via $ps_auth_pass - web authentication password via $ps_web_pass ( different format required) - external remote write ( writing to a remote instance like pg-adapter): - ps_write_external true enables it - ps_external_url must be a valid full url - ps_auth_ext_usermust be a valid user - ps_auth_ext_passmust be a valid password
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 - –storage.tsdb.min-block-duration via ps_min_block_dur - –storage.tsdb.max-block-duration via ps_max_block_dur - authentication user via $ps_auth_user - authentication password via $ps_auth_pass - web authentication password via $ps_web_pass ( different format required) - external remote write ( writing to a remote instance like pg-adapter): - ps_write_external true enables it - ps_external_url must be a valid full url - ps_auth_ext_usermust be a valid user - ps_auth_ext_passmust be a valid password - pruning local blocks - ps_enable_pruning true enables it - ps_pruning_dir the directory where the pruning script should live
See the full Puppet documentation including parameters in docs/index.html
All dependencies must be included in the catalogue.
diff --git a/doc/puppet_classes/prometheus_cd_3A_3Amain_3A_3Afiles.html b/doc/puppet_classes/prometheus_cd_3A_3Amain_3A_3Afiles.html index 0cee90a..021364e 100644 --- a/doc/puppet_classes/prometheus_cd_3A_3Amain_3A_3Afiles.html +++ b/doc/puppet_classes/prometheus_cd_3A_3Amain_3A_3Afiles.html @@ -142,7 +142,26 @@ 44 45 46 -47 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +60 +61 +62 +63 +64 +65 +66# File 'manifests/main/files.pp', line 6
@@ -187,6 +206,25 @@ class prometheus_cd::main::files (
content => template('prometheus_cd/web.yml.erb'),
notify => Service[$ps_prom_service],
}
+ if $ps_enable_pruning == true {
+ file { $ps_pruning_file:
+ ensure => file,
+ owner => 'prometheus',
+ group => 'prometheus',
+ mode => '0750',
+ selrange => s0,
+ selrole => object_r,
+ seltype => usr_,
+ seluser => unconfined_u,
+ content => template('prometheus_cd/prune_blocks.erb'),
+ # notify Service ToDo,
+ }
+ }
+ if $ps_enable_pruning == false {
+ file { $ps_pruning_fir:
+ ensure => absent,
+ }
+ }
}
}
# File 'manifests/params.pp', line 34
@@ -747,6 +761,7 @@ class prometheus_cd::params (
# pruning script
Boolean $ps_enable_pruning = false,
String $ps_pruning_dir = '/opt/prometheus-prune',
+ String $ps_pruning_file = "${ps_pruning_dir}/prune_prometheus_pg.sh",
) {
# defaults