Skip to content

Commit be1b407

Browse files
author
Aman Shah
committed
Updated the prom flag to --agent from --enable-feature=agent based on new prom version
1 parent e5b1c44 commit be1b407

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/enableit/common/manifests/monitor/exporter/node.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
user => 'node_exporter',
162162
group => 'node_exporter',
163163
export_scrape_job => $enable,
164-
extra_options => "--collector.textfile.directory=${textfile_directory} --web.listen-addres=${listen_address}",
164+
extra_options => "--collector.textfile.directory=${textfile_directory} --web.listen-address=${listen_address}",
165165
scrape_host => $::trusted['certname'],
166166
collectors_enable => $default_collectors,
167167
tag => $::trusted['certname'],

modules/enableit/common/manifests/monitor/prometheus/server.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
$scrape_port = Integer($listen_address.split(':')[1])
4141
$scrape_host = $trusted['certname']
42-
$_extra_options = "--web.listen-address=${listen_address} --enable-feature=agent --storage.agent.path=/opt/obmondo/prometheus"
42+
$_extra_options = "--web.listen-address=${listen_address} --agent --storage.agent.path=/opt/obmondo/prometheus"
4343
$_prometheus_url = $::obmondo['customer_id'] ? { # lint:ignore:top_scope_facts
4444
undef => "https://${common::monitor::prometheus::server}/api/v1/write",
4545
default => "https://${common::monitor::prometheus::server}/${::obmondo['customer_id']}/api/v1/write" # lint:ignore:top_scope_facts

0 commit comments

Comments
 (0)