Skip to content

Commit 68a926f

Browse files
author
deepakt7340
committed
Fix: Switch Prometheus remote_write URL based on obmondo.com server
1 parent 110e4a4 commit 68a926f

File tree

1 file changed

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

1 file changed

+2
-4
lines changed

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

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

4947
class { 'prometheus::server':
5048
version => $version,

0 commit comments

Comments
 (0)