Compare commits
4 Commits
6d01996da5
...
a6fa3c098b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a6fa3c098b | ||
|
|
8f394b726b | ||
| eab95a5b54 | |||
|
|
677b311a64 |
@@ -302,6 +302,60 @@
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>whether to track timestamps staleness in prometheus metrics</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ay_prom_max_shards</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'10'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>the maximum number of shards to use for prometheus metrics</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ay_prom_max_samples_per_send</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'2000'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>the maximum number of samples to send</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ay_prom_batch_send_deadline</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'5s'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>the maximum time to wait before sending</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
@@ -317,9 +371,6 @@
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
@@ -347,10 +398,16 @@
|
||||
46
|
||||
47
|
||||
48
|
||||
49</pre>
|
||||
49
|
||||
50
|
||||
51
|
||||
52
|
||||
53
|
||||
54
|
||||
55</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 19</span>
|
||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 22</span>
|
||||
|
||||
class confdroid_alloy::params (
|
||||
|
||||
@@ -369,6 +426,9 @@ class confdroid_alloy::params (
|
||||
String $ay_prom_url = 'https://prometheus.example.net/api/v1/write',
|
||||
Boolean $ay_prom_honor_timestamps = true,
|
||||
Boolean $ay_prom_track_timestamps_staleness = true,
|
||||
String $ay_prom_max_shards = '10',
|
||||
String $ay_prom_max_samples_per_send = '2000',
|
||||
String $ay_prom_batch_send_deadline = '5s',
|
||||
|
||||
) {
|
||||
# service
|
||||
|
||||
@@ -14,6 +14,9 @@
|
||||
# timestamps in prometheus metrics
|
||||
# @param [Boolean] ay_prom_track_timestamps_staleness whether to track timestamps
|
||||
# staleness in prometheus metrics
|
||||
# @param [String] ay_prom_max_shards the maximum number of shards to use for prometheus metrics
|
||||
# @param [String] ay_prom_max_samples_per_send the maximum number of samples to send
|
||||
# @param [String] ay_prom_batch_send_deadline the maximum time to wait before sending
|
||||
# @summary Class contains all parameters for the confdroid_alloy module.
|
||||
##############################################################################
|
||||
class confdroid_alloy::params (
|
||||
@@ -33,6 +36,9 @@ class confdroid_alloy::params (
|
||||
String $ay_prom_url = 'https://prometheus.example.net/api/v1/write',
|
||||
Boolean $ay_prom_honor_timestamps = true,
|
||||
Boolean $ay_prom_track_timestamps_staleness = true,
|
||||
String $ay_prom_max_shards = '10',
|
||||
String $ay_prom_max_samples_per_send = '2000',
|
||||
String $ay_prom_batch_send_deadline = '5s',
|
||||
|
||||
) {
|
||||
# service
|
||||
|
||||
@@ -94,6 +94,11 @@ prometheus.remote_write "prometheus" {
|
||||
username = "<%= @ay_loki_username %>"
|
||||
password = "<%= @ay_loki_userpass %>"
|
||||
}
|
||||
queue_config {
|
||||
max_shards = <%= @ay_prom_max_shards %>
|
||||
max_samples_per_send = <%= @ay_prom_max_samples_per_send %>
|
||||
batch_send_deadline = <%= @ay_prom_batch_send_deadline %>
|
||||
}
|
||||
}
|
||||
}
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user