Browse Source

Use short hostname for all Pacemaker metrics

Change-Id: I5221997d0bfd4064fd6b6aea12b50933ca9561b7
Closes-Bug: #1644225
changes/89/418389/2
Simon Pasquier 3 years ago
parent
commit
96b698bb00
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      deployment_scripts/puppet/modules/lma_collector/files/collectd/collectd_pacemaker.py

+ 2
- 2
deployment_scripts/puppet/modules/lma_collector/files/collectd/collectd_pacemaker.py View File

@@ -102,7 +102,7 @@ class CrmMonitorPlugin(base.Base):
'type_instance': 'local_resource_active',
'values': same_hostname(node),
'meta': {'resource': self.notify_resource,
'host': self.hostname}
'host': shorten_hostname(self.hostname)}
}

summary = root.find('summary')
@@ -112,7 +112,7 @@ class CrmMonitorPlugin(base.Base):
yield {
'type_instance': 'local_dc_active',
'values': same_hostname(current_dc),
'meta': {'host': self.hostname}
'meta': {'host': shorten_hostname(self.hostname)}
}

if current_dc.get('name') != self.hostname:

Loading…
Cancel
Save