From 4e1dbd1cf808c9cf1f310b6d498f7e304dfb4147 Mon Sep 17 00:00:00 2001 From: Giacomo Pozzoni Date: Fri, 19 Jun 2020 22:04:01 +0000 Subject: Log number of Creatures and GameObject per map (#24809) * Shared/Metric: Allow to specify tags in metrics * Core/Metric: Log number of Creatures and GameObject per map * Apply feedback * Codestyle changes * Codestyle changes * Remove whitespace * Update Grafana dashboards to v7.0.3 * Fix missing filter on realm * Include Creatures and Gameobjects in Maps dashboard * Show instances with a different color --- src/common/Metric/Metric.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/common/Metric/Metric.cpp') diff --git a/src/common/Metric/Metric.cpp b/src/common/Metric/Metric.cpp index 656a4db80c9..02fa87d8d96 100644 --- a/src/common/Metric/Metric.cpp +++ b/src/common/Metric/Metric.cpp @@ -136,6 +136,9 @@ void Metric::SendBatch() if (!_realmName.empty()) batchedData << ",realm=" << _realmName; + for (MetricTag const& tag : data->Tags) + batchedData << "," << tag.first << "=" << tag.second; + batchedData << " "; switch (data->Type) -- cgit v1.2.3