Introduce more sensors to Nextcloud (#99155)

This commit is contained in:
Michael 2023-08-27 20:50:27 +02:00 committed by GitHub
parent 0ce9d21bea
commit 1bd37612af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 538 additions and 97 deletions

View File

@ -17,6 +17,18 @@ from .coordinator import NextcloudDataUpdateCoordinator
from .entity import NextcloudEntity from .entity import NextcloudEntity
BINARY_SENSORS: Final[list[BinarySensorEntityDescription]] = [ BINARY_SENSORS: Final[list[BinarySensorEntityDescription]] = [
BinarySensorEntityDescription(
key="jit_enabled",
translation_key="nextcloud_jit_enabled",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
BinarySensorEntityDescription(
key="jit_on",
translation_key="nextcloud_jit_on",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
BinarySensorEntityDescription( BinarySensorEntityDescription(
key="system_debug", key="system_debug",
translation_key="nextcloud_system_debug", translation_key="nextcloud_system_debug",

View File

@ -10,7 +10,12 @@ from homeassistant.components.sensor import (
SensorEntityDescription, SensorEntityDescription,
) )
from homeassistant.config_entries import ConfigEntry from homeassistant.config_entries import ConfigEntry
from homeassistant.const import EntityCategory, UnitOfInformation, UnitOfTime from homeassistant.const import (
PERCENTAGE,
EntityCategory,
UnitOfInformation,
UnitOfTime,
)
from homeassistant.core import HomeAssistant from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity_platform import AddEntitiesCallback from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.typing import StateType from homeassistant.helpers.typing import StateType
@ -40,6 +45,79 @@ SENSORS: Final[list[SensorEntityDescription]] = [
entity_category=EntityCategory.DIAGNOSTIC, entity_category=EntityCategory.DIAGNOSTIC,
icon="mdi:account-multiple", icon="mdi:account-multiple",
), ),
SensorEntityDescription(
key="cache_expunges",
translation_key="nextcloud_cache_expunges",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
SensorEntityDescription(
key="cache_mem_size",
translation_key="nextcloud_cache_mem_size",
device_class=SensorDeviceClass.DATA_SIZE,
entity_category=EntityCategory.DIAGNOSTIC,
native_unit_of_measurement=UnitOfInformation.BYTES,
suggested_display_precision=1,
suggested_unit_of_measurement=UnitOfInformation.MEGABYTES,
),
SensorEntityDescription(
key="cache_memory_type",
translation_key="nextcloud_cache_memory_type",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
SensorEntityDescription(
key="cache_num_entries",
translation_key="nextcloud_cache_num_entries",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
SensorEntityDescription(
key="cache_num_hits",
translation_key="nextcloud_cache_num_hits",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
SensorEntityDescription(
key="cache_num_inserts",
translation_key="nextcloud_cache_num_inserts",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
SensorEntityDescription(
key="cache_num_misses",
translation_key="nextcloud_cache_num_misses",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
SensorEntityDescription(
key="cache_num_slots",
translation_key="nextcloud_cache_num_slots",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
SensorEntityDescription(
key="cache_start_time",
translation_key="nextcloud_cache_start_time",
device_class=SensorDeviceClass.TIMESTAMP,
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
SensorEntityDescription(
key="cache_ttl",
translation_key="nextcloud_cache_ttl",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
SensorEntityDescription(
key="database_size",
translation_key="nextcloud_database_size",
device_class=SensorDeviceClass.DATA_SIZE,
icon="mdi:database",
native_unit_of_measurement=UnitOfInformation.BYTES,
suggested_display_precision=1,
suggested_unit_of_measurement=UnitOfInformation.MEGABYTES,
),
SensorEntityDescription( SensorEntityDescription(
key="database_type", key="database_type",
translation_key="nextcloud_database_type", translation_key="nextcloud_database_type",
@ -52,6 +130,205 @@ SENSORS: Final[list[SensorEntityDescription]] = [
entity_category=EntityCategory.DIAGNOSTIC, entity_category=EntityCategory.DIAGNOSTIC,
icon="mdi:database", icon="mdi:database",
), ),
SensorEntityDescription(
key="interned_strings_usage_buffer_size",
translation_key="nextcloud_interned_strings_usage_buffer_size",
device_class=SensorDeviceClass.DATA_SIZE,
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
native_unit_of_measurement=UnitOfInformation.BYTES,
suggested_display_precision=1,
suggested_unit_of_measurement=UnitOfInformation.MEGABYTES,
),
SensorEntityDescription(
key="interned_strings_usage_free_memory",
translation_key="nextcloud_interned_strings_usage_free_memory",
device_class=SensorDeviceClass.DATA_SIZE,
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
native_unit_of_measurement=UnitOfInformation.BYTES,
suggested_display_precision=1,
suggested_unit_of_measurement=UnitOfInformation.MEGABYTES,
),
SensorEntityDescription(
key="interned_strings_usage_number_of_strings",
translation_key="nextcloud_interned_strings_usage_number_of_strings",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
SensorEntityDescription(
key="interned_strings_usage_used_memory",
translation_key="nextcloud_interned_strings_usage_used_memory",
device_class=SensorDeviceClass.DATA_SIZE,
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
native_unit_of_measurement=UnitOfInformation.BYTES,
suggested_display_precision=1,
suggested_unit_of_measurement=UnitOfInformation.MEGABYTES,
),
SensorEntityDescription(
key="jit_buffer_free",
translation_key="nextcloud_jit_buffer_free",
device_class=SensorDeviceClass.DATA_SIZE,
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
native_unit_of_measurement=UnitOfInformation.BYTES,
suggested_display_precision=1,
suggested_unit_of_measurement=UnitOfInformation.MEGABYTES,
),
SensorEntityDescription(
key="jit_buffer_size",
translation_key="nextcloud_jit_buffer_size",
device_class=SensorDeviceClass.DATA_SIZE,
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
native_unit_of_measurement=UnitOfInformation.BYTES,
suggested_display_precision=1,
suggested_unit_of_measurement=UnitOfInformation.MEGABYTES,
),
SensorEntityDescription(
key="jit_kind",
translation_key="nextcloud_jit_kind",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
SensorEntityDescription(
key="jit_opt_flags",
translation_key="nextcloud_jit_opt_flags",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
SensorEntityDescription(
key="jit_opt_level",
translation_key="nextcloud_jit_opt_level",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
SensorEntityDescription(
key="opcache_statistics_blacklist_miss_ratio",
translation_key="nextcloud_opcache_statistics_blacklist_miss_ratio",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
native_unit_of_measurement=PERCENTAGE,
),
SensorEntityDescription(
key="opcache_statistics_blacklist_misses",
translation_key="nextcloud_opcache_statistics_blacklist_misses",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
SensorEntityDescription(
key="opcache_statistics_hash_restarts",
translation_key="nextcloud_opcache_statistics_hash_restarts",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
SensorEntityDescription(
key="opcache_statistics_hits",
translation_key="nextcloud_opcache_statistics_hits",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
SensorEntityDescription(
key="opcache_statistics_last_restart_time",
translation_key="nextcloud_opcache_statistics_last_restart_time",
device_class=SensorDeviceClass.TIMESTAMP,
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
SensorEntityDescription(
key="opcache_statistics_manual_restarts",
translation_key="nextcloud_opcache_statistics_manual_restarts",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
SensorEntityDescription(
key="opcache_statistics_max_cached_keys",
translation_key="nextcloud_opcache_statistics_max_cached_keys",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
SensorEntityDescription(
key="opcache_statistics_misses",
translation_key="nextcloud_opcache_statistics_misses",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
SensorEntityDescription(
key="opcache_statistics_num_cached_keys",
translation_key="nextcloud_opcache_statistics_num_cached_keys",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
SensorEntityDescription(
key="opcache_statistics_num_cached_scripts",
translation_key="nextcloud_opcache_statistics_num_cached_scripts",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
SensorEntityDescription(
key="opcache_statistics_oom_restarts",
translation_key="nextcloud_opcache_statistics_oom_restarts",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
SensorEntityDescription(
key="opcache_statistics_opcache_hit_rate",
translation_key="nextcloud_opcache_statistics_opcache_hit_rate",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
native_unit_of_measurement=PERCENTAGE,
suggested_display_precision=1,
),
SensorEntityDescription(
key="opcache_statistics_start_time",
translation_key="nextcloud_opcache_statistics_start_time",
device_class=SensorDeviceClass.TIMESTAMP,
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
SensorEntityDescription(
key="server_php_opcache_memory_usage_current_wasted_percentage",
translation_key="nextcloud_server_php_opcache_memory_usage_current_wasted_percentage",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
icon="mdi:language-php",
native_unit_of_measurement=PERCENTAGE,
suggested_display_precision=1,
),
SensorEntityDescription(
key="server_php_opcache_memory_usage_free_memory",
translation_key="nextcloud_server_php_opcache_memory_usage_free_memory",
device_class=SensorDeviceClass.DATA_SIZE,
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
icon="mdi:language-php",
native_unit_of_measurement=UnitOfInformation.BYTES,
suggested_display_precision=1,
suggested_unit_of_measurement=UnitOfInformation.MEGABYTES,
),
SensorEntityDescription(
key="server_php_opcache_memory_usage_used_memory",
translation_key="nextcloud_server_php_opcache_memory_usage_used_memory",
device_class=SensorDeviceClass.DATA_SIZE,
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
icon="mdi:language-php",
native_unit_of_measurement=UnitOfInformation.BYTES,
suggested_display_precision=1,
suggested_unit_of_measurement=UnitOfInformation.MEGABYTES,
),
SensorEntityDescription(
key="server_php_opcache_memory_usage_wasted_memory",
translation_key="nextcloud_server_php_opcache_memory_usage_wasted_memory",
device_class=SensorDeviceClass.DATA_SIZE,
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
icon="mdi:language-php",
native_unit_of_measurement=UnitOfInformation.BYTES,
suggested_display_precision=1,
suggested_unit_of_measurement=UnitOfInformation.MEGABYTES,
),
SensorEntityDescription( SensorEntityDescription(
key="server_php_max_execution_time", key="server_php_max_execution_time",
translation_key="nextcloud_server_php_max_execution_time", translation_key="nextcloud_server_php_max_execution_time",
@ -135,6 +412,32 @@ SENSORS: Final[list[SensorEntityDescription]] = [
translation_key="nextcloud_shares_num_shares_user", translation_key="nextcloud_shares_num_shares_user",
entity_category=EntityCategory.DIAGNOSTIC, entity_category=EntityCategory.DIAGNOSTIC,
), ),
SensorEntityDescription(
key="sma_avail_mem",
translation_key="nextcloud_sma_avail_mem",
device_class=SensorDeviceClass.DATA_SIZE,
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
native_unit_of_measurement=UnitOfInformation.BYTES,
suggested_display_precision=1,
suggested_unit_of_measurement=UnitOfInformation.MEGABYTES,
),
SensorEntityDescription(
key="sma_num_seg",
translation_key="nextcloud_sma_num_seg",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
SensorEntityDescription(
key="sma_seg_size",
translation_key="nextcloud_sma_seg_size",
device_class=SensorDeviceClass.DATA_SIZE,
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
native_unit_of_measurement=UnitOfInformation.BYTES,
suggested_display_precision=1,
suggested_unit_of_measurement=UnitOfInformation.MEGABYTES,
),
SensorEntityDescription( SensorEntityDescription(
key="storage_num_files", key="storage_num_files",
translation_key="nextcloud_storage_num_files", translation_key="nextcloud_storage_num_files",

View File

@ -31,6 +31,15 @@
}, },
"entity": { "entity": {
"binary_sensor": { "binary_sensor": {
"nextcloud_jit_enabled": {
"name": "JIT enabled"
},
"nextcloud_jit_on": {
"name": "JIT active"
},
"nextcloud_system_debug": {
"name": "Debug enabled"
},
"nextcloud_system_enable_avatars": { "nextcloud_system_enable_avatars": {
"name": "Avatars enabled" "name": "Avatars enabled"
}, },
@ -39,56 +48,206 @@
}, },
"nextcloud_system_filelocking_enabled": { "nextcloud_system_filelocking_enabled": {
"name": "Filelocking enabled" "name": "Filelocking enabled"
},
"nextcloud_system_debug": {
"name": "Debug enabled"
} }
}, },
"sensor": { "sensor": {
"nextcloud_system_version": { "nextcloud_activeusers_last1hour": {
"name": "System version" "name": "Amount of active users last hour"
}, },
"nextcloud_system_theme": { "nextcloud_activeusers_last24hours": {
"name": "System theme" "name": "Amount of active users last day"
}, },
"nextcloud_system_memcache_local": { "nextcloud_activeusers_last5minutes": {
"name": "System memcache local" "name": "Amount of active users last 5 minutes"
}, },
"nextcloud_system_memcache_distributed": { "nextcloud_cache_expunges": {
"name": "System memcache distributed" "name": "Cache expunges"
}, },
"nextcloud_system_memcache_locking": { "nextcloud_cache_mem_size": {
"name": "System memcache locking" "name": "Cache memory size"
}, },
"nextcloud_system_freespace": { "nextcloud_cache_memory_type": {
"name": "Free space" "name": "Cache memory"
}, },
"nextcloud_system_cpuload_1": { "nextcloud_cache_num_entries": {
"name": "CPU Load last minute" "name": "Cache number of entires"
}, },
"nextcloud_system_cpuload_15": { "nextcloud_cache_num_hits": {
"name": "CPU Load last 15 minutes" "name": "Cache number of hits"
}, },
"nextcloud_system_cpuload_5": { "nextcloud_cache_num_inserts": {
"name": "CPU Load last 5 minutes" "name": "Cache number of inserts"
}, },
"nextcloud_system_mem_total": { "nextcloud_cache_num_misses": {
"name": "Total memory" "name": "Cache number of misses"
}, },
"nextcloud_system_mem_free": { "nextcloud_cache_num_slots": {
"name": "Free memory" "name": "Cache number of slots"
}, },
"nextcloud_system_swap_total": { "nextcloud_cache_start_time": {
"name": "Total swap memory" "name": "Cache start time"
}, },
"nextcloud_system_swap_free": { "nextcloud_cache_ttl": {
"name": "Free swap memory" "name": "Cache ttl"
}, },
"nextcloud_system_apps_num_installed": { "nextcloud_database_size": {
"name": "Apps installed" "name": "Databse size"
}, },
"nextcloud_system_apps_num_updates_available": { "nextcloud_database_type": {
"name": "Updates available" "name": "Database type"
},
"nextcloud_database_version": {
"name": "Database version"
},
"nextcloud_interned_strings_usage_buffer_size": {
"name": "Interned buffer size"
},
"nextcloud_interned_strings_usage_free_memory": {
"name": "Interned free memory"
},
"nextcloud_interned_strings_usage_number_of_strings": {
"name": "Interned number of strings"
},
"nextcloud_interned_strings_usage_used_memory": {
"name": "Interned used memory"
},
"nextcloud_jit_buffer_free": {
"name": "JIT buffer free"
},
"nextcloud_jit_buffer_size": {
"name": "JIT buffer size"
},
"nextcloud_jit_kind": {
"name": "JIT kind"
},
"nextcloud_jit_opt_flags": {
"name": "JIT opt flags"
},
"nextcloud_jit_opt_level": {
"name": "JIT opt level"
},
"nextcloud_opcache_statistics_blacklist_miss_ratio": {
"name": "Opcache blacklist miss ratio"
},
"nextcloud_opcache_statistics_blacklist_misses": {
"name": "Opcache blacklist misses"
},
"nextcloud_opcache_statistics_hash_restarts": {
"name": "Opcache hash restarts"
},
"nextcloud_opcache_statistics_hits": {
"name": "Opcache hits"
},
"nextcloud_opcache_statistics_last_restart_time": {
"name": "Opcache last restart time"
},
"nextcloud_opcache_statistics_manual_restarts": {
"name": "Opcache manual restarts"
},
"nextcloud_opcache_statistics_max_cached_keys": {
"name": "Opcache max cached keys"
},
"nextcloud_opcache_statistics_misses": {
"name": "Opcache misses"
},
"nextcloud_opcache_statistics_num_cached_keys": {
"name": "Opcache cached keys"
},
"nextcloud_opcache_statistics_num_cached_scripts": {
"name": "Opcache cached scripts"
},
"nextcloud_opcache_statistics_oom_restarts": {
"name": "Opcache out of memory restarts"
},
"nextcloud_opcache_statistics_opcache_hit_rate": {
"name": "Opcache hit rate"
},
"nextcloud_opcache_statistics_start_time": {
"name": "Opcache start time"
},
"nextcloud_server_php_max_execution_time": {
"name": "PHP max execution time"
},
"nextcloud_server_php_memory_limit": {
"name": "PHP memory limit"
},
"nextcloud_server_php_opcache_memory_usage_current_wasted_percentage": {
"name": "Opcache current wasted percentage"
},
"nextcloud_server_php_opcache_memory_usage_free_memory": {
"name": "Opcache free memory"
},
"nextcloud_server_php_opcache_memory_usage_used_memory": {
"name": "Opcache used memory"
},
"nextcloud_server_php_opcache_memory_usage_wasted_memory": {
"name": "Opcache wasted memory"
},
"nextcloud_server_php_upload_max_filesize": {
"name": "PHP upload maximum filesize"
},
"nextcloud_server_php_version": {
"name": "PHP version"
},
"nextcloud_server_webserver": {
"name": "Webserver"
},
"nextcloud_shares_num_fed_shares_received": {
"name": "Amount of shares received"
},
"nextcloud_shares_num_fed_shares_sent": {
"name": "Amount of shares sent"
},
"nextcloud_shares_num_shares": {
"name": "Amount of shares"
},
"nextcloud_shares_num_shares_groups": {
"name": "Amount of group shares"
},
"nextcloud_shares_num_shares_link": {
"name": "Amount of link shares"
},
"nextcloud_shares_num_shares_link_no_password": {
"name": "Amount of passwordless link shares"
},
"nextcloud_shares_num_shares_mail": {
"name": "Amount of mail shares"
},
"nextcloud_shares_num_shares_room": {
"name": "Amount of room shares"
},
"nextcloud_shares_num_shares_user": {
"name": "Amount of user shares"
},
"nextcloud_shares_permissions_3_1": {
"name": "Permissions 3.1"
},
"nextcloud_sma_avail_mem": {
"name": "SMA available memory"
},
"nextcloud_sma_num_seg": {
"name": "SMA number of segments"
},
"nextcloud_sma_seg_size": {
"name": "SMA segment size"
},
"nextcloud_storage_num_files": {
"name": "Amount of files"
},
"nextcloud_storage_num_storages": {
"name": "Amount of storages"
},
"nextcloud_storage_num_storages_home": {
"name": "Amount of storages at home"
},
"nextcloud_storage_num_storages_local": {
"name": "Amount of local storages"
},
"nextcloud_storage_num_storages_other": {
"name": "Amount of other storages"
},
"nextcloud_storage_num_users": {
"name": "Amount of user"
}, },
"nextcloud_system_apps_app_updates_calendar": { "nextcloud_system_apps_app_updates_calendar": {
"name": "Calendar updates" "name": "Calendar updates"
@ -102,83 +261,50 @@
"nextcloud_system_apps_app_updates_twofactor_totp": { "nextcloud_system_apps_app_updates_twofactor_totp": {
"name": "Two factor authentication updates" "name": "Two factor authentication updates"
}, },
"nextcloud_storage_num_users": { "nextcloud_system_apps_num_installed": {
"name": "Amount of user" "name": "Apps installed"
}, },
"nextcloud_storage_num_files": { "nextcloud_system_apps_num_updates_available": {
"name": "Amount of files" "name": "Updates available"
}, },
"nextcloud_storage_num_storages": { "nextcloud_system_cpuload_1": {
"name": "Amount of storages" "name": "CPU Load last 1 minute"
}, },
"nextcloud_storage_num_storages_local": { "nextcloud_system_cpuload_15": {
"name": "Amount of local storages" "name": "CPU Load last 15 minutes"
}, },
"nextcloud_storage_num_storages_home": { "nextcloud_system_cpuload_5": {
"name": "Amount of storages at home" "name": "CPU Load last 5 minutes"
}, },
"nextcloud_storage_num_storages_other": { "nextcloud_system_freespace": {
"name": "Amount of other storages" "name": "Free space"
}, },
"nextcloud_shares_num_shares": { "nextcloud_system_mem_free": {
"name": "Amount of shares" "name": "Free memory"
}, },
"nextcloud_shares_num_shares_user": { "nextcloud_system_mem_total": {
"name": "Amount of user shares" "name": "Total memory"
}, },
"nextcloud_shares_num_shares_groups": { "nextcloud_system_memcache_distributed": {
"name": "Amount of group shares" "name": "System memcache distributed"
}, },
"nextcloud_shares_num_shares_link": { "nextcloud_system_memcache_local": {
"name": "Amount of link shares" "name": "System memcache local"
}, },
"nextcloud_shares_num_shares_mail": { "nextcloud_system_memcache_locking": {
"name": "Amount of mail shares" "name": "System memcache locking"
}, },
"nextcloud_shares_num_shares_room": { "nextcloud_system_swap_free": {
"name": "Amount of room shares" "name": "Free swap memory"
}, },
"nextcloud_shares_num_shares_link_no_password": { "nextcloud_system_swap_total": {
"name": "Amount of passwordless link shares" "name": "Total swap memory"
}, },
"nextcloud_shares_num_fed_shares_sent": { "nextcloud_system_theme": {
"name": "Amount of shares sent" "name": "System theme"
}, },
"nextcloud_shares_num_fed_shares_received": { "nextcloud_system_version": {
"name": "Amount of shares received" "name": "System version"
},
"nextcloud_shares_permissions_3_1": {
"name": "Permissions 3.1"
},
"nextcloud_server_webserver": {
"name": "Webserver"
},
"nextcloud_server_php_version": {
"name": "PHP version"
},
"nextcloud_server_php_memory_limit": {
"name": "PHP memory limit"
},
"nextcloud_server_php_max_execution_time": {
"name": "PHP max execution time"
},
"nextcloud_server_php_upload_max_filesize": {
"name": "PHP upload maximum filesize"
},
"nextcloud_database_type": {
"name": "Database type"
},
"nextcloud_database_version": {
"name": "Database version"
},
"nextcloud_activeusers_last5minutes": {
"name": "Amount of active users last 5 minutes"
},
"nextcloud_activeusers_last1hour": {
"name": "Amount of active users last hour"
},
"nextcloud_activeusers_last24hours": {
"name": "Amount of active users last day"
} }
} }
} }