...
Statistic and metric logging in TrinityCore is implemented using two projects, InfluxDB, a time-series data storage and Grafana, graph and a dashboard builder for visualizing time series metrics.
...
- Edit the worldserver.conf file
- Set
Metric.Enable = 1
- Edit
Metric.ConnectionInfo
with connection details (e.g"127.0.0.1;8086;worldserver"
) - Start worldserver, the dashboard should now start receiving values
Implemented and planned metrics
Technical oriented
- I/O networking traffic:
- Packets sent
- Packets received
- Average ping
- Traffic in
- Traffic out
- World session update time
- Map update time
- Map loads/unloads
- MMap queries
- Database async queries queued count
- Server uptime (through world initialize and world shutdown events)
- Active connections
- Queued connections
- CPU usage
- RAM usage
Game oriented
- Players online
- Logins per hour, per day, day of week, etc
- Mails sent
- Auction house usage
- Character levels
- Gold earn/spend
- LFG queues
Info |
---|
We'd like help implementing these and other metrics, feel free to pull request the implementation of these metrics or any other. |
Adding new metrics
There are two kinds of metrics that can be logged: values and events.
...