Mailcow-CheckMK/local/share/check_mk/web/plugins/perfometer/mailcow_perfometers.py

55 lines
1.1 KiB
Python
Raw Normal View History

#!/usr/bin/env python3
from cmk.gui.plugins.metrics import perfometer_info
perfometer_info.append({
"type": "stacked",
"perfometers": [
{
"type": "linear",
"segments": ["mc_num_domains","mc_num_mailboxes","mc_num_global_messages"],
},
],
})
2023-08-26 15:02:28 +02:00
perfometer_info.append({
"type": "stacked",
"perfometers": [
{
"type": "linear",
"segments": ["mailcow_domains_used_quota"],
"total": 100.0,
},
],
})
perfometer_info.append({
"type": "stacked",
"perfometers": [
{
"type": "linear",
"segments": ["mailcow_mailboxes_used_quota"],
"total": 100.0,
},
],
})
#perfometer_info.append({
# "type": "stacked",
# "perfometers": [
# {
# "type": "linear",
# "segments": ["mc_num_mailboxes"],
# },
# ],
#})
#perfometer_info.append({
# "type": "stacked",
# "perfometers": [
# {
# "type": "linear",
# "segments": ["mc_num_global_messages"],
# },
# ],
#})