Merge branch 'jenkins-build-28' into 'master'
Auto-merge for build 28 See merge request puppet/prometheus_cd!27
This commit is contained in:
@@ -304,6 +304,42 @@
|
|||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
<p>the password for authentication</p>
|
<p>the password for authentication</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>ps_retention_time</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>'15d'</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
—
|
||||||
|
<div class='inline'>
|
||||||
|
<p>tsdb retention time</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>ps_retention_size</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>'20GB'</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
—
|
||||||
|
<div class='inline'>
|
||||||
|
<p>tsdb retention size</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
@@ -319,8 +355,6 @@
|
|||||||
<pre class="lines">
|
<pre class="lines">
|
||||||
|
|
||||||
|
|
||||||
17
|
|
||||||
18
|
|
||||||
19
|
19
|
||||||
20
|
20
|
||||||
21
|
21
|
||||||
@@ -361,10 +395,16 @@
|
|||||||
56
|
56
|
||||||
57
|
57
|
||||||
58
|
58
|
||||||
59</pre>
|
59
|
||||||
|
60
|
||||||
|
61
|
||||||
|
62
|
||||||
|
63
|
||||||
|
64
|
||||||
|
65</pre>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 17</span>
|
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 19</span>
|
||||||
|
|
||||||
class prometheus_cd::params (
|
class prometheus_cd::params (
|
||||||
|
|
||||||
@@ -387,6 +427,10 @@ class prometheus_cd::params (
|
|||||||
String $ps_auth_user = 'changeme',
|
String $ps_auth_user = 'changeme',
|
||||||
String $ps_auth_pass = 'changeme',
|
String $ps_auth_pass = 'changeme',
|
||||||
|
|
||||||
|
# storage
|
||||||
|
String $ps_retention_time = '15d',
|
||||||
|
String $ps_retention_size = '20GB',
|
||||||
|
|
||||||
) {
|
) {
|
||||||
# defaults
|
# defaults
|
||||||
$fqdn = $facts['networking']['fqdn']
|
$fqdn = $facts['networking']['fqdn']
|
||||||
|
|||||||
@@ -13,6 +13,8 @@
|
|||||||
# @param [String] ps_main_port the firewall main port for prometheus
|
# @param [String] ps_main_port the firewall main port for prometheus
|
||||||
# @param [String] ps_auth_user the username for authentication
|
# @param [String] ps_auth_user the username for authentication
|
||||||
# @param [String] ps_auth_pass the password for authentication
|
# @param [String] ps_auth_pass the password for authentication
|
||||||
|
# @param [String] ps_retention_time tsdb retention time
|
||||||
|
# @param [String] ps_retention_size tsdb retention size
|
||||||
##############################################################################
|
##############################################################################
|
||||||
class prometheus_cd::params (
|
class prometheus_cd::params (
|
||||||
|
|
||||||
@@ -35,6 +37,10 @@ class prometheus_cd::params (
|
|||||||
String $ps_auth_user = 'changeme',
|
String $ps_auth_user = 'changeme',
|
||||||
String $ps_auth_pass = 'changeme',
|
String $ps_auth_pass = 'changeme',
|
||||||
|
|
||||||
|
# storage
|
||||||
|
String $ps_retention_time = '15d',
|
||||||
|
String $ps_retention_size = '20GB',
|
||||||
|
|
||||||
) {
|
) {
|
||||||
# defaults
|
# defaults
|
||||||
$fqdn = $facts['networking']['fqdn']
|
$fqdn = $facts['networking']['fqdn']
|
||||||
|
|||||||
@@ -8,3 +8,6 @@ ExecStart=/usr/bin/prometheus \
|
|||||||
--storage.tsdb.path=/var/lib/prometheus \
|
--storage.tsdb.path=/var/lib/prometheus \
|
||||||
--web.enable-remote-write-receiver \
|
--web.enable-remote-write-receiver \
|
||||||
--web.enable-lifecycle
|
--web.enable-lifecycle
|
||||||
|
--storage.tsdb.wal-compression
|
||||||
|
--storage.tsdb.retention.time=<%= @ps_retention_time %>
|
||||||
|
--storage.tsdb.retention.size=<%= @ps_retention_size %>
|
||||||
Reference in New Issue
Block a user