Merge branch 'jenkins-build-35' into 'master'

Auto-merge for build 35

See merge request puppet/prometheus_cd!34
This commit is contained in:
2025-10-18 15:35:00 +00:00
6 changed files with 29 additions and 5 deletions

View File

@@ -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)

View File

@@ -92,7 +92,7 @@
<p>manage service</p> <p>manage service</p>
</li></ul> </li></ul>
<p>Configurable options: - storage.tsdb.retention.time via <code>$ps_retention_time</code> - storage.tsdb.retention.size via <code>$ps_retention_size</code> - authentication user via <code>$ps_auth_user</code> - authentication password via <code>$ps_auth_pass</code> - web authentication password via <code>$ps_web_pass</code> ( different format required)</p> <p>Configurable options: - storage.tsdb.retention.time via <code>$ps_retention_time</code> - storage.tsdb.retention.size via <code>$ps_retention_size</code> - storage.tsdb.wal-segment-size via <code>ps_wal_seg_size</code> - authentication user via <code>$ps_auth_user</code> - authentication password via <code>$ps_auth_pass</code> - web authentication password via <code>$ps_web_pass</code> ( different format required)</p>
<h2 id="label-Repo+Documentation">Repo Documentation</h2> <h2 id="label-Repo+Documentation">Repo Documentation</h2>

View File

@@ -92,7 +92,7 @@
<p>manage service</p> <p>manage service</p>
</li></ul> </li></ul>
<p>Configurable options: - storage.tsdb.retention.time via <code>$ps_retention_time</code> - storage.tsdb.retention.size via <code>$ps_retention_size</code> - authentication user via <code>$ps_auth_user</code> - authentication password via <code>$ps_auth_pass</code> - web authentication password via <code>$ps_web_pass</code> ( different format required)</p> <p>Configurable options: - storage.tsdb.retention.time via <code>$ps_retention_time</code> - storage.tsdb.retention.size via <code>$ps_retention_size</code> - storage.tsdb.wal-segment-size via <code>ps_wal_seg_size</code> - authentication user via <code>$ps_auth_user</code> - authentication password via <code>$ps_auth_pass</code> - web authentication password via <code>$ps_web_pass</code> ( different format required)</p>
<h2 id="label-Repo+Documentation">Repo Documentation</h2> <h2 id="label-Repo+Documentation">Repo Documentation</h2>

View File

@@ -358,6 +358,24 @@
&mdash; &mdash;
<div class='inline'> <div class='inline'>
<p>tsdb retention size</p> <p>tsdb retention size</p>
</div>
</li>
<li>
<span class='name'>ps_wal_seg_size</span>
<span class='type'>(<tt>String</tt>)</span>
<em class="default">(defaults to: <tt>&#39;50MB&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>WAL segment size</p>
</div> </div>
</li> </li>
@@ -373,7 +391,6 @@
<pre class="lines"> <pre class="lines">
20
21 21
22 22
23 23
@@ -421,10 +438,12 @@
65 65
66 66
67 67
68</pre> 68
69
70</pre>
</td> </td>
<td> <td>
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 20</span> <pre class="code"><span class="info file"># File 'manifests/params.pp', line 21</span>
class prometheus_cd::params ( class prometheus_cd::params (
@@ -451,6 +470,7 @@ class prometheus_cd::params (
# storage # storage
String $ps_retention_time = &#39;15d&#39;, String $ps_retention_time = &#39;15d&#39;,
String $ps_retention_size = &#39;20GB&#39;, String $ps_retention_size = &#39;20GB&#39;,
String $ps_wal_seg_size = &#39;50MB&#39;,
) { ) {
# defaults # defaults

View File

@@ -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

View File

@@ -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