Open harrisonliu5 opened 3 years ago
This feature adds reource metering service and its target resources cover following different level scopes:
cluster scope: meter_cluster_cpu_usage : cluster CPU usage(unit: Core) meter_cluster_memory_usage: cluster memory usage (unit: Byte) meter_cluster_disk_size_usage: cluster total block device usage (unit: Byte) meter_cluster_net_bytes_transmitted: cluser network transmitted bytes (unit: Byte) meter_cluster_net_bytes_received: cluster network received bytes (unit: Byte)
node scope
workspace scope
namespace scope
application scope
workload scope
service scope
pod scope
Metering service support querying for both specified time and time range. Metering serivice fetches raw data from prometheus and caculates the minimum, maximum, average and sum within the specified time range automically.
It is worth noting that for CPU and memory usage, each sample point take maximum from resource application usage which comes from pods request value and actual usage. For most of the time, resource actual usage is below resoource application usage, and both of them should be below resource limit value. And this is expected. If resurce application usage not found, then the sample value should be equal to resource acutal usage.
About storage, metering service doesn't cover PVC usage becasue of the known issue kubesphere/kubesphere#2921. Instead, metering service provides cluster level and node level block device usage.
What would you like to be added:
Support to view the measurement statistics of resource consumption statistics
Why is this needed:
This function allows users to view the measurement statistics of resource consumption statistics.
Documents:
Document:
/assign @yunkunrao