ydb-platform / ydb

YDB is an open source Distributed SQL Database that combines high availability and scalability with strong consistency and ACID transactions
https://ydb.tech
Apache License 2.0
4k stars 567 forks source link

add separate mon sensors for every storage type #3275

Open antonkovalenko opened 7 months ago

antonkovalenko commented 7 months ago

According to https://ydb.tech/docs/en/troubleshooting/monitoring#resources currently YDB provides public sensors for quota and usage that are combined for all storage types:

resources.storage.used_bytes resources.storage.limit_bytes

There's an idea to add label to current sensor to distinguish storage type. Migration and numerous dashboards and alerts must be addressed. (Label might be bad idea)

In order to make separated storage consumtion and quota info available in embedded ui, let's extend DiskSpaceUsage section with consumtion by type and DatabaseQuotas section with quotas by type.

Old quotas and consumption must be kept for migration purposes.

Image

besides, we decided to sum consumtion on poolkinds nvme as ssd report it to resources.storage.used_bytes.ssd metric.

PoolKinds with names rot are equivalent to hdd

jepett0 commented 6 months ago

PR: https://github.com/ydb-platform/ydb/pull/4727