By omitting the 'nick' we exclude a whole group of metrics from the
daemonperf results.
Signed-off-by: Sage Weil <sage@redhat.com>
f->dump_string("description", "");
}
- if (d->nick != NULL) {
+ if (d->nick != NULL && !suppress_nicks) {
f->dump_string("nick", d->nick);
} else {
f->dump_string("nick", "");
m_name = s;
}
+ void set_suppress_nicks(bool b) {
+ suppress_nicks = b;
+ }
+
private:
PerfCounters(CephContext *cct, const std::string &name,
int lower_bound, int upper_bound);
std::string m_name;
const std::string m_lock_name;
+ bool suppress_nicks = false;
+
/** Protects m_data */
mutable Mutex m_lock;