Using osd=0 or similar tags was problematic because
daemons of different types have some same-named
counters (e.g. MDS and OSD both have objecter
perf counters).
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit
eb524c272c89f8f99f22969b78caa016db7c671e)
self.log.debug('ignoring %s, type %s' % (path, stattype))
continue
- daemon_type, daemon_id = daemon.split('.')
-
if path not in self.metrics:
self.metrics[path] = Metric(
stattype,
path,
counter_info['description'],
- (daemon_type,),
+ ("ceph_daemon",),
)
- self.log.debug("set {0}".format(path))
self.metrics[path].set(
counter_info['value'],
- (daemon_id,)
+ (daemon,)
)
return self.metrics