File tree Expand file tree Collapse file tree
modules/enableit/common/manifests/monitor/prometheus Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
44+ $_prometheus_url = $common::monitor::prometheus::server =~ / obmondo\.com/ ? {
45+ false => " https://${common::monitor::prometheus::server} /api/v1/write" ,
46+ true => " https://${common::monitor::prometheus::server} /${::obmondo['customer_id']}/api/v1/write" # lint:ignore:top_scope_facts
4747 }
4848
4949 class { 'prometheus::server' :
You can’t perform that action at this time.
0 commit comments