Initial commit
This commit is contained in:
37
graphing/graph_minecraft.py
Normal file
37
graphing/graph_minecraft.py
Normal file
@@ -0,0 +1,37 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# ~/local/lib/python3/cmk_addons/plugins/minecraft/graphing/graph_minecraft.py
|
||||
|
||||
from cmk.gui.plugins.metrics import graph_info
|
||||
|
||||
|
||||
graph_info['minecraft_tps'] = {
|
||||
'title': 'TPS',
|
||||
'metrics': [ ('tps', 'line') ],
|
||||
'render_levels': True,
|
||||
}
|
||||
|
||||
graph_info['minecraft_ticktime'] = {
|
||||
'title': 'Tick Time',
|
||||
'metrics': [ ('tick_time', 'line') ],
|
||||
'unit': 'ms',
|
||||
}
|
||||
|
||||
graph_info["minecraft_players"] = {
|
||||
"title": "Player",
|
||||
"metrics": [
|
||||
("player_online", "line", "Online"),
|
||||
("player_max", "line", "Max"),
|
||||
],
|
||||
}
|
||||
|
||||
graph_info["minecraft_ping_ms"] = {
|
||||
"title": "Ping",
|
||||
"metrics": [ ("ping_ms", "line") ],
|
||||
'unit': 'ms',
|
||||
}
|
||||
|
||||
graph_info["minecraft_protocol_version"] = {
|
||||
"title": "Protocol Version",
|
||||
"metrics": [ ("protocol_version", "line") ],
|
||||
}
|
||||
Reference in New Issue
Block a user