Skip to content

Commit 05ed758

Browse files
committed
fix: prometheus_url, due to typo in figuring out the customer id from the enc script
1 parent f7dea39 commit 05ed758

File tree

1 file changed

+2
-2
lines changed
  • modules/enableit/common/manifests/monitor/prometheus

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@
4040
$scrape_port = Integer($listen_address.split(':')[1])
4141
$scrape_host = $trusted['certname']
4242
$_extra_options = "--web.listen-address=${listen_address} --enable-feature=agent --storage.agent.path=/opt/obmondo/prometheus"
43-
$_prometheus_url = $::obmondo['customerid'] ? { # lint:ignore:top_scope_facts
43+
$_prometheus_url = $::obmondo['customer_id'] ? { # lint:ignore:top_scope_facts
4444
undef => "https://${common::monitor::prometheus::server}/api/v1/write",
45-
default => "https://${common::monitor::prometheus::server}/${::obmondo['customerid']}/api/v1/write" # lint:ignore:top_scope_facts
45+
default => "https://${common::monitor::prometheus::server}/${::obmondo['customer_id']}/api/v1/write" # lint:ignore:top_scope_facts
4646
}
4747

4848
class { 'prometheus::server':

0 commit comments

Comments
 (0)