diff --git a/site-modules/profile/manifests/ceph/mgr.pp b/site-modules/profile/manifests/ceph/mgr.pp index 1393fc95..22a138d3 100644 --- a/site-modules/profile/manifests/ceph/mgr.pp +++ b/site-modules/profile/manifests/ceph/mgr.pp @@ -1,15 +1,15 @@ # ceph manager node # The exporter must be activated first with `ceph mgr module enable prometheus`) class profile::ceph::mgr { # default port from the ceph exporter $service_port = 9283 - profile::prometheus::export_scrape_config {"ceph-mgr_${::fqdn}": + profile::prometheus::export_scrape_config {'ceph-mgr': job => 'ceph-mgr', - target => "${::fqdn}:${service_port}", + target => "${swh_hostname['internal_fqdn']}:${service_port}", scheme => 'http', metrics_path => '/metrics', } }