Metrics API
Metrics API
Diarkis provides a default endpoint to obtain metrics.
It is designed to feed values into Prometheus for visualization with Grafana, or to obtain JSON format data for a quick check of current indicators locally.
The metrics are updated every 2 seconds.
In addition to the default metrics, you can also define and output custom metrics.
Endpoint
$HTTP_ENDPOINT/metrics/prometheus/v/3: Provides a scraping endpoint for Prometheus (https://prometheus.io/).
curl $HTTP_ENDPOINT/metrics/prometheus/v/3
$HTTP_ENDPOINT/metrics/json: Returns the same content in JSON format.
curl $HTTP_ENDPOINT/metrics/json
Metrics Defined by Default in Diarkis
Users_UDP_node
Number of users connected to the UDP server
Users_TCP_node
Number of users connected to the TCP server
UDP_Packets_In_UDP_node
Number of UDP packets received by the UDP server
TCP_Packets_In_TCP_node
Number of TCP packets received by the TCP server
TCP_Packets_Out_TCP_node
Number of TCP packets sent by the TCP server
UDP_Packets_Out_UDP_node
Number of UDP packets sent by the UDP server
UDP_Packets_In_UDP_node
Number of UDP packets received by the UDP server
Commands_In_UDP_node
Number of commands received by the UDP server (A single packet can contain multiple commands.)
Commands_In_TCP_node
Number of commands received by the TCP server (A single packet can contain multiple commands.)
Commands_Out_UDP_node
Number of commands sent by the UDP server to clients (A single packet can contain multiple commands.)
Commands_Out_TCP_node
Number of commands sent by the TCP server to clients (A single packet can contain multiple commands.)
RUDP_Retries_UDP_node
Number of RUDP retries on the UDP server
RUDP_Split_In_UDP_node
Number of packets received by the UDP server that exceed MTU
RUDP_Split_Out_UDP_node
Number of packets sent by the UDP server that exceed MTU
Mesh_Packets_In_HTTP_node
Number of packets received in the internal network by the HTTP server
Mesh_Packets_In_UDP_node
Number of packets received in the internal network by the UDP server
Mesh_Packets_In_TCP_node
Number of packets received in the internal network by the TCP server
Mesh_Packets_Out_HTTP_node
Number of packets sent in the internal network by the HTTP server
Mesh_Packets_Out_UDP_node
Number of packets sent in the internal network by the UDP server
Mesh_Packets_Out_TCP_node
Number of packets sent in the internal network by the TCP server
Mesh_Retry_UDP_node
Number of retries in the internal network by the UDP server
Mesh_Retry_TCP_node
Number of retries in the internal network by the TCP server
Rooms_UDP_node
Number of rooms in the UDP server
Rooms_TCP_node
Number of rooms in the TCP server
Groups_UDP_node
Number of groups in the UDP server
Groups_TCP_node
Number of groups in the TCP server
MatchMaker_Search_HTTP_node
Number of MatchMaker searches performed by the HTTP server
MatchMaker_Empty_HTTP_node
Number of empty MatchMaker searches performed by the HTTP server
MatchMaker_Ticket_UDP_node
Number of MatchMaker tickets in the UDP server
MatchMaker_Ticket_TCP_node
Number of MatchMaker tickets in the TCP server
MatchMaker_Ticket_Search_UDP_node
Number of MatchMaker searches issued by the UDP server
MatchMaker_Ticket_Search_TCP_node
Number of MatchMaker searches issued by the TCP server
MatchMaker_Ticket_Add_UDP_node
Number of searches originating from MatchMaker tickets issued by the UDP server
MatchMaker_Ticket_Add_TCP_node
Number of searches originating from MatchMaker tickets issued by the TCP server
MatchMaker_Complete_UDP_node
Number of MatchMaker tickets completed by the UDP server
MatchMaker_Complete_TCP_node
Number of MatchMaker tickets completed by the TCP server
MatchMaker_Ticket_Complete_Time_Avg_UDP_node
Average time taken to complete MatchMaker tickets in the UDP server
MatchMaker_Ticket_Complete_Time_Avg_TCP_node
Average time taken to complete MatchMaker in the TCP server
MatchMaker_Ticket_Complete_Time_Min_UDP_node
Minimum time taken to complete MatchMaker tickets in the UDP server
MatchMaker_Ticket_Complete_Time_Min_TCP_node
Minimum time taken to complete MatchMaker tickets in the TCP server
MatchMaker_Ticket_Complete_Time_Max_UDP_node
Maximum time taken to complete MatchMaker tickets in the UDP server
MatchMaker_Ticket_Complete_Time_Max_TCP_node
Maximum time taken to complete MatchMaker tickets in the TCP server
P2P_Success_UDP_node
Number of successful P2P attempts
P2P_Attempt_UDP_node
Number of P2P attempts
Field_Grids_UDP_node
Number of Field grids held by the UDP server
Field_Grids_TCP_node
Number of Field grids held by the TCP server
Prometheus Setup Instructions
#TODO
Custom Metrics Setup Instructions
Last updated
Was this helpful?