Skip to main content

GameServer Monitor

Metrics available​

OKG by default exposes game server related Prometheus metrics, including:

NameDescriptionType
GameServersStateCountNumber of game servers in different statesgauge
GameServersOpsStateCountNumber of game servers in different ops statesgauge
GameServersTotalTotal number of game servers that have existedcounter
GameServerSetsReplicasCountNumber of replicas for each GameServerSetgauge
GameServerDeletionPriorityDeletion priority for game serversgauge
GameServerUpdatePriorityUpdate priority for game serversgauge

Monitoring Dashboard​

Dashboard Import​

  1. Import grafana.json to Grafana
  2. Choose data source
  3. Replace UID and complete the import

Dashboard Introduction​

The imported dashboard is shown below:

From top to bottom, it includes:

  • First row: number of GameServers in each current state, and a pie chart showing the proportion of GameServers in each current state
  • Second row: line chart showing the number of GameServers in each state over time
  • Third row: line chart showing the changes in deletion and update priorities for GameServers (can be filtered by namespace and gsName in the top-left corner)
  • Fourth and fifth rows: line charts showing the number of GameServers in different states for each GameServerSet (can be filtered by namespace and gssName in the top-left corner)