Nextcloud-CheckMK/local/share/check_mk/web/plugins/perfometer/nextcloud_perfometers.py

34 lines
676 B
Python
Raw Normal View History

2023-03-11 14:29:54 +01:00
#!/usr/bin/env python3
from cmk.gui.plugins.metrics import perfometer_info
perfometer_info.append({
"type": "stacked",
"perfometers": [
{
"type": "linear",
"segments": ["nc_database_opcache_hit_rate"],
"total": 100.0,
},
],
})
perfometer_info.append({
"type": "stacked",
"perfometers": [
{
"type": "linear",
"segments": ["nc_database_size"],
},
],
})
perfometer_info.append({
"type": "stacked",
"perfometers": [
{
"type": "linear",
"segments": ["nc_users_quota_used"],
"total": 100.0,
},
],
})