diff options
| author | Giacomo Pozzoni <giacomopoz@gmail.com> | 2020-06-19 22:04:01 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-20 00:04:01 +0200 |
| commit | 4e1dbd1cf808c9cf1f310b6d498f7e304dfb4147 (patch) | |
| tree | 17b33b97a5c9b40abd1b045b5171958102f17b81 /src/common/Metric/Metric.cpp | |
| parent | 56d60ee00c094464082e3ed2a70d669d415ca49c (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
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 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) |
