diff options
author | Giacomo Pozzoni <giacomopoz@gmail.com> | 2020-06-19 22:04:01 +0000 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-01-06 23:15:07 +0100 |
commit | 07f42907c65e63d21a00f4af3eb20efe3491acbe (patch) | |
tree | 0ff40bfb53a6d0bbdf149de1d4fc6f9f62b9383e /src/common/Metric/Metric.cpp | |
parent | fc43a95729109286d8ce0e0ecf3a2c3dcdbe2d5b (diff) |
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
(cherry picked from commit 4e1dbd1cf808c9cf1f310b6d498f7e304dfb4147)
Diffstat (limited to 'src/common/Metric/Metric.cpp')
-rw-r--r-- | src/common/Metric/Metric.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/Metric/Metric.cpp b/src/common/Metric/Metric.cpp index f4d0661dcaf..b1302aacb5a 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) |