Compare commits
4 Commits
4f73562b60
...
6d01996da5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6d01996da5 | ||
|
|
8ab12f6cf7 | ||
| 96211f2eb5 | |||
|
|
68080a6054 |
@@ -37,7 +37,6 @@ Then you can use Grafana itself to visualize those logs and metrics and built an
|
|||||||
INSTALLATION
|
INSTALLATION
|
||||||
|
|
||||||
- installs alloy binaries
|
- installs alloy binaries
|
||||||
- installs node exporter (optional, set `ay_manage_ne`to `true`)
|
|
||||||
|
|
||||||
CONFIGURATION
|
CONFIGURATION
|
||||||
|
|
||||||
|
|||||||
@@ -108,8 +108,6 @@
|
|||||||
<p>INSTALLATION</p>
|
<p>INSTALLATION</p>
|
||||||
<ul><li>
|
<ul><li>
|
||||||
<p>installs alloy binaries</p>
|
<p>installs alloy binaries</p>
|
||||||
</li><li>
|
|
||||||
<p>installs node exporter (optional, set <code>ay_manage_ne</code>to <code>true</code>)</p>
|
|
||||||
</li></ul>
|
</li></ul>
|
||||||
|
|
||||||
<p>CONFIGURATION</p>
|
<p>CONFIGURATION</p>
|
||||||
|
|||||||
@@ -108,8 +108,6 @@
|
|||||||
<p>INSTALLATION</p>
|
<p>INSTALLATION</p>
|
||||||
<ul><li>
|
<ul><li>
|
||||||
<p>installs alloy binaries</p>
|
<p>installs alloy binaries</p>
|
||||||
</li><li>
|
|
||||||
<p>installs node exporter (optional, set <code>ay_manage_ne</code>to <code>true</code>)</p>
|
|
||||||
</li></ul>
|
</li></ul>
|
||||||
|
|
||||||
<p>CONFIGURATION</p>
|
<p>CONFIGURATION</p>
|
||||||
|
|||||||
@@ -234,24 +234,6 @@
|
|||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>
|
|
||||||
|
|
||||||
<span class='name'>ay_manage_ne</span>
|
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>Boolean</tt>)</span>
|
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>false</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<div class='inline'>
|
|
||||||
<p>whether to manage metric forwarding for the node exporter (external)</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
|
|
||||||
<span class='name'>ay_prom_url</span>
|
<span class='name'>ay_prom_url</span>
|
||||||
@@ -284,6 +266,42 @@
|
|||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
<p>the logging targets</p>
|
<p>the logging targets</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>ay_prom_honor_timestamps</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>Boolean</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>true</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
—
|
||||||
|
<div class='inline'>
|
||||||
|
<p>whether to honor timestamps in prometheus metrics</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>ay_prom_track_timestamps_staleness</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>Boolean</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>true</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
—
|
||||||
|
<div class='inline'>
|
||||||
|
<p>whether to track timestamps staleness in prometheus metrics</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
@@ -299,8 +317,6 @@
|
|||||||
<pre class="lines">
|
<pre class="lines">
|
||||||
|
|
||||||
|
|
||||||
17
|
|
||||||
18
|
|
||||||
19
|
19
|
||||||
20
|
20
|
||||||
21
|
21
|
||||||
@@ -330,10 +346,11 @@
|
|||||||
45
|
45
|
||||||
46
|
46
|
||||||
47
|
47
|
||||||
48</pre>
|
48
|
||||||
|
49</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 confdroid_alloy::params (
|
class confdroid_alloy::params (
|
||||||
|
|
||||||
@@ -350,9 +367,8 @@ class confdroid_alloy::params (
|
|||||||
# prometheus
|
# prometheus
|
||||||
Boolean $ay_manage_prom = true,
|
Boolean $ay_manage_prom = true,
|
||||||
String $ay_prom_url = 'https://prometheus.example.net/api/v1/write',
|
String $ay_prom_url = 'https://prometheus.example.net/api/v1/write',
|
||||||
|
Boolean $ay_prom_honor_timestamps = true,
|
||||||
# node exporter (external)
|
Boolean $ay_prom_track_timestamps_staleness = true,
|
||||||
Boolean $ay_manage_ne = false,
|
|
||||||
|
|
||||||
) {
|
) {
|
||||||
# service
|
# service
|
||||||
|
|||||||
@@ -8,10 +8,12 @@
|
|||||||
# @param [String] ay_loki_userpass the password to logon to loki
|
# @param [String] ay_loki_userpass the password to logon to loki
|
||||||
# @param [Boolean] ay_manage_loki whether to manage log forwarding to loki
|
# @param [Boolean] ay_manage_loki whether to manage log forwarding to loki
|
||||||
# @param [Boolean] ay_manage_prom whether to manage metric forwarding
|
# @param [Boolean] ay_manage_prom whether to manage metric forwarding
|
||||||
# @param [Boolean] ay_manage_ne whether to manage metric forwarding for
|
|
||||||
# the node exporter (external)
|
|
||||||
# @param [String] ay_prom_url the url where alloy will send metrics
|
# @param [String] ay_prom_url the url where alloy will send metrics
|
||||||
# @param [Array] ay_log_targets the logging targets
|
# @param [Array] ay_log_targets the logging targets
|
||||||
|
# @param [Boolean] ay_prom_honor_timestamps whether to honor
|
||||||
|
# timestamps in prometheus metrics
|
||||||
|
# @param [Boolean] ay_prom_track_timestamps_staleness whether to track timestamps
|
||||||
|
# staleness in prometheus metrics
|
||||||
# @summary Class contains all parameters for the confdroid_alloy module.
|
# @summary Class contains all parameters for the confdroid_alloy module.
|
||||||
##############################################################################
|
##############################################################################
|
||||||
class confdroid_alloy::params (
|
class confdroid_alloy::params (
|
||||||
@@ -29,9 +31,8 @@ class confdroid_alloy::params (
|
|||||||
# prometheus
|
# prometheus
|
||||||
Boolean $ay_manage_prom = true,
|
Boolean $ay_manage_prom = true,
|
||||||
String $ay_prom_url = 'https://prometheus.example.net/api/v1/write',
|
String $ay_prom_url = 'https://prometheus.example.net/api/v1/write',
|
||||||
|
Boolean $ay_prom_honor_timestamps = true,
|
||||||
# node exporter (external)
|
Boolean $ay_prom_track_timestamps_staleness = true,
|
||||||
Boolean $ay_manage_ne = false,
|
|
||||||
|
|
||||||
) {
|
) {
|
||||||
# service
|
# service
|
||||||
|
|||||||
@@ -79,8 +79,8 @@ prometheus.scrape "node_exporter" {
|
|||||||
targets = discovery.relabel.node_exporter.output
|
targets = discovery.relabel.node_exporter.output
|
||||||
forward_to = [prometheus.remote_write.prometheus.receiver]
|
forward_to = [prometheus.remote_write.prometheus.receiver]
|
||||||
scrape_interval = "15s"
|
scrape_interval = "15s"
|
||||||
honor_timestamps = true
|
honor_timestamps = <%= @ay_prom_honor_timestamps %>
|
||||||
track_timestamps_staleness = true
|
track_timestamps_staleness = <%= @ay_prom_track_timestamps_staleness %>
|
||||||
}
|
}
|
||||||
|
|
||||||
prometheus.remote_write "prometheus" {
|
prometheus.remote_write "prometheus" {
|
||||||
|
|||||||
Reference in New Issue
Block a user