...
Download and install InfluxDB from https://influxdata.com/downloads/#influxdb for your platform
Create a user and a database for TC in InfluxDB using the Influx CLI and executing the commands below
Bloque de código language sql theme Confluence CREATE DATABASE worldserver CREATE USER grafana WITH PASSWORD 'grafana' GRANT READ ON worldserver TO grafana
...
Bloque de código | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
// Registering player logins: in WorldSession::HandlePlayerLogin(LoginQueryHolder* holder) TC_METRIC_EVENT("player_events", "Login", pCurrChar->GetName()); // Logging the update diff time: in World::Update(uint32 diff) TC_METRIC_VALUE("update_time_diff", diff); |
...
Additional visualizations and metrics collection
...