2023-08-20 18:01:52 +02:00
|
|
|
#!/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,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
})
|
|
|
|
|
2023-08-27 11:03:51 +02:00
|
|
|
perfometer_info.append({
|
|
|
|
"type": "stacked",
|
|
|
|
"perfometers": [
|
|
|
|
{
|
|
|
|
"type": "linear",
|
|
|
|
"segments": ["mailcow_mailboxes_used_quota"],
|
|
|
|
"total": 100.0,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
})
|
|
|
|
|
2023-08-20 18:01:52 +02:00
|
|
|
#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"],
|
|
|
|
# },
|
|
|
|
# ],
|
|
|
|
#})
|