Versiones comparadas

Clave

  • Se ha añadido esta línea.
  • Se ha eliminado esta línea.
  • El formato se ha cambiado.

...

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.

...

  1. Edit the worldserver.conf file
  2. Set Metric.Enable = 1
  3. Edit Metric.ConnectionInfo with connection details (e.g "127.0.0.1;8086;worldserver")
  4. Start worldserver, the dashboard should now start receiving values

Implemented (tic) and planned (error) metrics

Technical oriented

  • I/O networking traffic:
    • Packets sent (error)
    • Packets received (tic)
    • Average ping (error)
    • Traffic in (error)
    • Traffic out (error)
  • World session update time (tic)
  • Map update time (error)
  • Map loads/unloads (tic)
  • MMap queries (tic)
  • Database async queries queued count (error)
  • Server uptime (tic) (through world initialize and world shutdown events)
  • Active connections (error)
  • Queued connections (error)
  • CPU usage (error)
  • RAM usage (error)

Game oriented

  • Players online (tic)
  • Logins per hour, per day, day of week, etc (tic)
  • Mails sent (error)
  • Auction house usage (error)
  • Character levels (error)
  • Gold earn/spend (error)
  • LFG queues (error)

 

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.

...