45 lines
929 B
Python
45 lines
929 B
Python
#!/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",
|
|
],
|
|
},
|
|
],
|
|
}
|
|
)
|
|
|
|
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,
|
|
},
|
|
],
|
|
}
|
|
)
|