-
Notifications
You must be signed in to change notification settings - Fork 0
/
response.j2
33 lines (27 loc) · 940 Bytes
/
response.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# HELP srcds_up is the gameserver reachable
# TYPE srcds_up gauge
srcds_up{server="{{target}}"} 1
# HELP srcds_players the number of players currently on the server
# TYPE srcds_players gauge
srcds_players{server="{{target}}"} {{players}}
# HELP srcds_maxplayers the maximum number of players on the server
# TYPE srcds_maxplayers gauge
srcds_maxplayers{server="{{target}}"} {{max_players}}
# HELP srcds_bots the number of bots on the server
# TYPE srcds_bots gauge
srcds_bots{server="{{target}}"} {{bots}}
{%if cpu is defined%}
# HELP srcds_cpu currently unknown
# TYPE srcds_cpu gauge
srcds_cpu{server="{{target}}"} {{cpu}}
{% endif %}
{%if memory is defined%}
# HELP srcds_memory currently unknown
# TYPE srcds_memory gauge
srcds_memory{server="{{target}}"} {{memory}}
{% endif %}
{%if storage is defined%}
# HELP srcds_storage currently unknown
# TYPE srcds_storage gauge
srcds_storage{server="{{target}}"} {{storage}}
{% endif %}