|
@@ -40,10 +40,10 @@ const (
|
|
|
QueryLBPricePerHr = "QueryLBPricePerHr"
|
|
QueryLBPricePerHr = "QueryLBPricePerHr"
|
|
|
|
|
|
|
|
// Cluster Management
|
|
// Cluster Management
|
|
|
- QueryClusterInfo = "QueryClusterInfo"
|
|
|
|
|
- QueryClusterUptime = "QueryClusterUptime"
|
|
|
|
|
- QueryClusterManagementDuration = "QueryClusterManagementDuration"
|
|
|
|
|
- QueryClusterManagementPricePerHr = "QueryClusterManagementPricePerHr"
|
|
|
|
|
|
|
+ QueryClusterInfo = "QueryClusterInfo"
|
|
|
|
|
+ QueryClusterUptime = "QueryClusterUptime"
|
|
|
|
|
+ QueryClusterManagementDuration = "QueryClusterManagementDuration"
|
|
|
|
|
+ QueryClusterManagementPricePerHr = "QueryClusterManagementPricePerHr"
|
|
|
|
|
|
|
|
// Pods
|
|
// Pods
|
|
|
QueryPods = "QueryPods"
|
|
QueryPods = "QueryPods"
|
|
@@ -56,16 +56,16 @@ const (
|
|
|
QueryPodNetworkIngressBytes = "QueryPodNetworkIngressBytes"
|
|
QueryPodNetworkIngressBytes = "QueryPodNetworkIngressBytes"
|
|
|
|
|
|
|
|
// Container
|
|
// Container
|
|
|
- QueryContainerUptime = "QueryContainerUptime"
|
|
|
|
|
- QueryContainerResourceRequests = "QueryContainerResourceRequests"
|
|
|
|
|
- QueryContainerResourceLimits = "QueryContainerResourceLimits"
|
|
|
|
|
|
|
+ QueryContainerUptime = "QueryContainerUptime"
|
|
|
|
|
+ QueryContainerResourceRequests = "QueryContainerResourceRequests"
|
|
|
|
|
+ QueryContainerResourceLimits = "QueryContainerResourceLimits"
|
|
|
|
|
|
|
|
// RAM
|
|
// RAM
|
|
|
- QueryRAMBytesAllocated = "QueryRAMBytesAllocated"
|
|
|
|
|
- QueryRAMRequests = "QueryRAMRequests"
|
|
|
|
|
- QueryRAMLimits = "QueryRAMLimits"
|
|
|
|
|
- QueryRAMUsageAvg = "QueryRAMUsageAvg"
|
|
|
|
|
- QueryRAMUsageMax = "QueryRAMUsageMax"
|
|
|
|
|
|
|
+ QueryRAMBytesAllocated = "QueryRAMBytesAllocated"
|
|
|
|
|
+ QueryRAMRequests = "QueryRAMRequests"
|
|
|
|
|
+ QueryRAMLimits = "QueryRAMLimits"
|
|
|
|
|
+ QueryRAMUsageAvg = "QueryRAMUsageAvg"
|
|
|
|
|
+ QueryRAMUsageMax = "QueryRAMUsageMax"
|
|
|
QueryNodeRAMPricePerGiBHr = "QueryNodeRAMPricePerGiBHr"
|
|
QueryNodeRAMPricePerGiBHr = "QueryNodeRAMPricePerGiBHr"
|
|
|
|
|
|
|
|
// CPU
|
|
// CPU
|
|
@@ -77,13 +77,13 @@ const (
|
|
|
QueryNodeCPUPricePerHr = "QueryNodeCPUPricePerHr"
|
|
QueryNodeCPUPricePerHr = "QueryNodeCPUPricePerHr"
|
|
|
|
|
|
|
|
// GPU
|
|
// GPU
|
|
|
- QueryGPUsAllocated = "QueryGPUsAllocated"
|
|
|
|
|
- QueryGPUsRequested = "QueryGPUsRequested"
|
|
|
|
|
- QueryGPUsUsageAvg = "QueryGPUsUsageAvg"
|
|
|
|
|
- QueryGPUsUsageMax = "QueryGPUsUsageMax"
|
|
|
|
|
|
|
+ QueryGPUsAllocated = "QueryGPUsAllocated"
|
|
|
|
|
+ QueryGPUsRequested = "QueryGPUsRequested"
|
|
|
|
|
+ QueryGPUsUsageAvg = "QueryGPUsUsageAvg"
|
|
|
|
|
+ QueryGPUsUsageMax = "QueryGPUsUsageMax"
|
|
|
QueryNodeGPUPricePerHr = "QueryNodeGPUPricePerHr"
|
|
QueryNodeGPUPricePerHr = "QueryNodeGPUPricePerHr"
|
|
|
- QueryGPUInfo = "QueryGPUInfo"
|
|
|
|
|
- QueryIsGPUShared = "QueryIsGPUShared"
|
|
|
|
|
|
|
+ QueryGPUInfo = "QueryGPUInfo"
|
|
|
|
|
+ QueryIsGPUShared = "QueryIsGPUShared"
|
|
|
|
|
|
|
|
// Device
|
|
// Device
|
|
|
QueryDCGMDeviceInfo = "QueryDCGMDeviceInfo"
|
|
QueryDCGMDeviceInfo = "QueryDCGMDeviceInfo"
|
|
@@ -92,23 +92,23 @@ const (
|
|
|
QueryDCGMContainerUsageMax = "QueryDCGMContainerUsageMax"
|
|
QueryDCGMContainerUsageMax = "QueryDCGMContainerUsageMax"
|
|
|
|
|
|
|
|
// PVC
|
|
// PVC
|
|
|
- QueryPodPVCAllocation = "QueryPodPVCAllocation"
|
|
|
|
|
- QueryPVCBytesRequested = "QueryPVCBytesRequested"
|
|
|
|
|
- QueryPVCInfo = "QueryPVCInfo"
|
|
|
|
|
- QueryKMPVCInfo = "QueryKMPVCInfo"
|
|
|
|
|
- QueryPVCUptime = "QueryPVCUptime"
|
|
|
|
|
|
|
+ QueryPodPVCAllocation = "QueryPodPVCAllocation"
|
|
|
|
|
+ QueryPVCBytesRequested = "QueryPVCBytesRequested"
|
|
|
|
|
+ QueryPVCInfo = "QueryPVCInfo"
|
|
|
|
|
+ QueryKMPVCInfo = "QueryKMPVCInfo"
|
|
|
|
|
+ QueryPVCUptime = "QueryPVCUptime"
|
|
|
QueryPVCBytesUsedAverage = "QueryPVCBytesUsedAverage"
|
|
QueryPVCBytesUsedAverage = "QueryPVCBytesUsedAverage"
|
|
|
- QueryPVCBytesUsedMax = "QueryPVCBytesUsedMax"
|
|
|
|
|
|
|
+ QueryPVCBytesUsedMax = "QueryPVCBytesUsedMax"
|
|
|
|
|
|
|
|
// PV
|
|
// PV
|
|
|
- QueryPVBytes = "QueryPVBytes"
|
|
|
|
|
|
|
+ QueryPVBytes = "QueryPVBytes"
|
|
|
QueryPVPricePerGiBHour = "QueryPVPricePerGiBHour"
|
|
QueryPVPricePerGiBHour = "QueryPVPricePerGiBHour"
|
|
|
- QueryPVInfo = "QueryPVInfo"
|
|
|
|
|
- QueryPVActiveMinutes = "QueryPVActiveMinutes"
|
|
|
|
|
- QueryPVUsedAverage = "QueryPVUsedAverage"
|
|
|
|
|
- QueryPVUsedMax = "QueryPVUsedMax"
|
|
|
|
|
- QueryKMPVInfo = "QueryKMPVInfo"
|
|
|
|
|
- QueryPVUptime = "QueryPVUptime"
|
|
|
|
|
|
|
+ QueryPVInfo = "QueryPVInfo"
|
|
|
|
|
+ QueryPVActiveMinutes = "QueryPVActiveMinutes"
|
|
|
|
|
+ QueryPVUsedAverage = "QueryPVUsedAverage"
|
|
|
|
|
+ QueryPVUsedMax = "QueryPVUsedMax"
|
|
|
|
|
+ QueryKMPVInfo = "QueryKMPVInfo"
|
|
|
|
|
+ QueryPVUptime = "QueryPVUptime"
|
|
|
|
|
|
|
|
// Deployment
|
|
// Deployment
|
|
|
QueryDeploymentInfo = "QueryDeploymentInfo"
|
|
QueryDeploymentInfo = "QueryDeploymentInfo"
|
|
@@ -143,14 +143,14 @@ const (
|
|
|
QueryCronJobAnnotations = "QueryCronJobAnnotations"
|
|
QueryCronJobAnnotations = "QueryCronJobAnnotations"
|
|
|
|
|
|
|
|
// ReplicaSet
|
|
// ReplicaSet
|
|
|
- QueryReplicaSetInfo = "QueryReplicaSetInfo"
|
|
|
|
|
- QueryReplicaSetUptime = "QueryReplicaSetUptime"
|
|
|
|
|
- QueryReplicaSetLabels = "QueryReplicaSetLabels"
|
|
|
|
|
- QueryReplicaSetAnnotations = "QueryReplicaSetAnnotations"
|
|
|
|
|
- QueryReplicaSetOwners = "QueryReplicaSetOwners"
|
|
|
|
|
- QueryPodsWithReplicaSetOwner = "QueryPodsWithReplicaSetOwner"
|
|
|
|
|
- QueryReplicaSetsWithoutOwners = "QueryReplicaSetsWithoutOwners"
|
|
|
|
|
- QueryReplicaSetsWithRollout = "QueryReplicaSetsWithRollout"
|
|
|
|
|
|
|
+ QueryReplicaSetInfo = "QueryReplicaSetInfo"
|
|
|
|
|
+ QueryReplicaSetUptime = "QueryReplicaSetUptime"
|
|
|
|
|
+ QueryReplicaSetLabels = "QueryReplicaSetLabels"
|
|
|
|
|
+ QueryReplicaSetAnnotations = "QueryReplicaSetAnnotations"
|
|
|
|
|
+ QueryReplicaSetOwners = "QueryReplicaSetOwners"
|
|
|
|
|
+ QueryPodsWithReplicaSetOwner = "QueryPodsWithReplicaSetOwner"
|
|
|
|
|
+ QueryReplicaSetsWithoutOwners = "QueryReplicaSetsWithoutOwners"
|
|
|
|
|
+ QueryReplicaSetsWithRollout = "QueryReplicaSetsWithRollout"
|
|
|
|
|
|
|
|
// Namespace
|
|
// Namespace
|
|
|
QueryNamespaceInfo = "QueryNamespaceInfo"
|
|
QueryNamespaceInfo = "QueryNamespaceInfo"
|
|
@@ -164,25 +164,25 @@ const (
|
|
|
QueryServiceSelectorLabels = "QueryServiceSelectorLabels"
|
|
QueryServiceSelectorLabels = "QueryServiceSelectorLabels"
|
|
|
|
|
|
|
|
// Network Egress
|
|
// Network Egress
|
|
|
- QueryNetZoneGiB = "QueryNetZoneGiB"
|
|
|
|
|
- QueryNetZonePricePerGiB = "QueryNetZonePricePerGiB"
|
|
|
|
|
- QueryNetRegionGiB = "QueryNetRegionGiB"
|
|
|
|
|
- QueryNetRegionPricePerGiB = "QueryNetRegionPricePerGiB"
|
|
|
|
|
- QueryNetInternetGiB = "QueryNetInternetGiB"
|
|
|
|
|
- QueryNetInternetPricePerGiB = "QueryNetInternetPricePerGiB"
|
|
|
|
|
- QueryNetInternetServiceGiB = "QueryNetInternetServiceGiB"
|
|
|
|
|
|
|
+ QueryNetZoneGiB = "QueryNetZoneGiB"
|
|
|
|
|
+ QueryNetZonePricePerGiB = "QueryNetZonePricePerGiB"
|
|
|
|
|
+ QueryNetRegionGiB = "QueryNetRegionGiB"
|
|
|
|
|
+ QueryNetRegionPricePerGiB = "QueryNetRegionPricePerGiB"
|
|
|
|
|
+ QueryNetInternetGiB = "QueryNetInternetGiB"
|
|
|
|
|
+ QueryNetInternetPricePerGiB = "QueryNetInternetPricePerGiB"
|
|
|
|
|
+ QueryNetInternetServiceGiB = "QueryNetInternetServiceGiB"
|
|
|
QueryNetNatGatewayPricePerGiB = "QueryNetNatGatewayPricePerGiB"
|
|
QueryNetNatGatewayPricePerGiB = "QueryNetNatGatewayPricePerGiB"
|
|
|
- QueryNetNatGatewayGiB = "QueryNetNatGatewayGiB"
|
|
|
|
|
- QueryNetTransferBytes = "QueryNetTransferBytes"
|
|
|
|
|
|
|
+ QueryNetNatGatewayGiB = "QueryNetNatGatewayGiB"
|
|
|
|
|
+ QueryNetTransferBytes = "QueryNetTransferBytes"
|
|
|
|
|
|
|
|
// Network Ingress
|
|
// Network Ingress
|
|
|
- QueryNetZoneIngressGiB = "QueryNetZoneIngressGiB"
|
|
|
|
|
- QueryNetRegionIngressGiB = "QueryNetRegionIngressGiB"
|
|
|
|
|
- QueryNetInternetIngressGiB = "QueryNetInternetIngressGiB"
|
|
|
|
|
- QueryNetInternetServiceIngressGiB = "QueryNetInternetServiceIngressGiB"
|
|
|
|
|
|
|
+ QueryNetZoneIngressGiB = "QueryNetZoneIngressGiB"
|
|
|
|
|
+ QueryNetRegionIngressGiB = "QueryNetRegionIngressGiB"
|
|
|
|
|
+ QueryNetInternetIngressGiB = "QueryNetInternetIngressGiB"
|
|
|
|
|
+ QueryNetInternetServiceIngressGiB = "QueryNetInternetServiceIngressGiB"
|
|
|
QueryNetNatGatewayIngressPricePerGiB = "QueryNetNatGatewayIngressPricePerGiB"
|
|
QueryNetNatGatewayIngressPricePerGiB = "QueryNetNatGatewayIngressPricePerGiB"
|
|
|
- QueryNetNatGatewayIngressGiB = "QueryNetNatGatewayIngressGiB"
|
|
|
|
|
- QueryNetReceiveBytes = "QueryNetReceiveBytes"
|
|
|
|
|
|
|
+ QueryNetNatGatewayIngressGiB = "QueryNetNatGatewayIngressGiB"
|
|
|
|
|
+ QueryNetReceiveBytes = "QueryNetReceiveBytes"
|
|
|
|
|
|
|
|
// Labels
|
|
// Labels
|
|
|
QueryNodeLabels = "QueryNodeLabels"
|
|
QueryNodeLabels = "QueryNodeLabels"
|
|
@@ -194,24 +194,24 @@ const (
|
|
|
QueryPodsWithJobOwner = "QueryPodsWithJobOwner"
|
|
QueryPodsWithJobOwner = "QueryPodsWithJobOwner"
|
|
|
|
|
|
|
|
// ResourceQuotas
|
|
// ResourceQuotas
|
|
|
- QueryResourceQuotaInfo = "QueryResourceQuotaInfo"
|
|
|
|
|
- QueryResourceQuotaUptime = "QueryResourceQuotaUptime"
|
|
|
|
|
- QueryResourceQuotaSpecCPURequestAverage = "QueryResourceQuotaSpecCPURequestAverage"
|
|
|
|
|
- QueryResourceQuotaSpecCPURequestMax = "QueryResourceQuotaSpecCPURequestMax"
|
|
|
|
|
- QueryResourceQuotaSpecRAMRequestAverage = "QueryResourceQuotaSpecRAMRequestAverage"
|
|
|
|
|
- QueryResourceQuotaSpecRAMRequestMax = "QueryResourceQuotaSpecRAMRequestMax"
|
|
|
|
|
- QueryResourceQuotaSpecCPULimitAverage = "QueryResourceQuotaSpecCPULimitAverage"
|
|
|
|
|
- QueryResourceQuotaSpecCPULimitMax = "QueryResourceQuotaSpecCPULimitMax"
|
|
|
|
|
- QueryResourceQuotaSpecRAMLimitAverage = "QueryResourceQuotaSpecRAMLimitAverage"
|
|
|
|
|
- QueryResourceQuotaSpecRAMLimitMax = "QueryResourceQuotaSpecRAMLimitMax"
|
|
|
|
|
- QueryResourceQuotaStatusUsedCPURequestAverage = "QueryResourceQuotaStatusUsedCPURequestAverage"
|
|
|
|
|
- QueryResourceQuotaStatusUsedCPURequestMax = "QueryResourceQuotaStatusUsedCPURequestMax"
|
|
|
|
|
- QueryResourceQuotaStatusUsedRAMRequestAverage = "QueryResourceQuotaStatusUsedRAMRequestAverage"
|
|
|
|
|
- QueryResourceQuotaStatusUsedRAMRequestMax = "QueryResourceQuotaStatusUsedRAMRequestMax"
|
|
|
|
|
- QueryResourceQuotaStatusUsedCPULimitAverage = "QueryResourceQuotaStatusUsedCPULimitAverage"
|
|
|
|
|
- QueryResourceQuotaStatusUsedCPULimitMax = "QueryResourceQuotaStatusUsedCPULimitMax"
|
|
|
|
|
- QueryResourceQuotaStatusUsedRAMLimitAverage = "QueryResourceQuotaStatusUsedRAMLimitAverage"
|
|
|
|
|
- QueryResourceQuotaStatusUsedRAMLimitMax = "QueryResourceQuotaStatusUsedRAMLimitMax"
|
|
|
|
|
|
|
+ QueryResourceQuotaInfo = "QueryResourceQuotaInfo"
|
|
|
|
|
+ QueryResourceQuotaUptime = "QueryResourceQuotaUptime"
|
|
|
|
|
+ QueryResourceQuotaSpecCPURequestAverage = "QueryResourceQuotaSpecCPURequestAverage"
|
|
|
|
|
+ QueryResourceQuotaSpecCPURequestMax = "QueryResourceQuotaSpecCPURequestMax"
|
|
|
|
|
+ QueryResourceQuotaSpecRAMRequestAverage = "QueryResourceQuotaSpecRAMRequestAverage"
|
|
|
|
|
+ QueryResourceQuotaSpecRAMRequestMax = "QueryResourceQuotaSpecRAMRequestMax"
|
|
|
|
|
+ QueryResourceQuotaSpecCPULimitAverage = "QueryResourceQuotaSpecCPULimitAverage"
|
|
|
|
|
+ QueryResourceQuotaSpecCPULimitMax = "QueryResourceQuotaSpecCPULimitMax"
|
|
|
|
|
+ QueryResourceQuotaSpecRAMLimitAverage = "QueryResourceQuotaSpecRAMLimitAverage"
|
|
|
|
|
+ QueryResourceQuotaSpecRAMLimitMax = "QueryResourceQuotaSpecRAMLimitMax"
|
|
|
|
|
+ QueryResourceQuotaStatusUsedCPURequestAverage = "QueryResourceQuotaStatusUsedCPURequestAverage"
|
|
|
|
|
+ QueryResourceQuotaStatusUsedCPURequestMax = "QueryResourceQuotaStatusUsedCPURequestMax"
|
|
|
|
|
+ QueryResourceQuotaStatusUsedRAMRequestAverage = "QueryResourceQuotaStatusUsedRAMRequestAverage"
|
|
|
|
|
+ QueryResourceQuotaStatusUsedRAMRequestMax = "QueryResourceQuotaStatusUsedRAMRequestMax"
|
|
|
|
|
+ QueryResourceQuotaStatusUsedCPULimitAverage = "QueryResourceQuotaStatusUsedCPULimitAverage"
|
|
|
|
|
+ QueryResourceQuotaStatusUsedCPULimitMax = "QueryResourceQuotaStatusUsedCPULimitMax"
|
|
|
|
|
+ QueryResourceQuotaStatusUsedRAMLimitAverage = "QueryResourceQuotaStatusUsedRAMLimitAverage"
|
|
|
|
|
+ QueryResourceQuotaStatusUsedRAMLimitMax = "QueryResourceQuotaStatusUsedRAMLimitMax"
|
|
|
|
|
|
|
|
// Data Coverage
|
|
// Data Coverage
|
|
|
QueryDataCoverage = "QueryDataCoverage"
|
|
QueryDataCoverage = "QueryDataCoverage"
|
|
@@ -226,6 +226,7 @@ type MetricsQuerier interface {
|
|
|
QueryLocalStorageUsedMax(start, end time.Time) *Future[LocalStorageUsedMaxResult]
|
|
QueryLocalStorageUsedMax(start, end time.Time) *Future[LocalStorageUsedMaxResult]
|
|
|
QueryLocalStorageBytes(start, end time.Time) *Future[LocalStorageBytesResult]
|
|
QueryLocalStorageBytes(start, end time.Time) *Future[LocalStorageBytesResult]
|
|
|
|
|
|
|
|
|
|
+ // Local Storage Metrics aggregated exclusively on NodeUID
|
|
|
QueryKMLocalStorageUsedAvg(start, end time.Time) *Future[NodeUIDValueResult]
|
|
QueryKMLocalStorageUsedAvg(start, end time.Time) *Future[NodeUIDValueResult]
|
|
|
QueryKMLocalStorageUsedMax(start, end time.Time) *Future[NodeUIDValueResult]
|
|
QueryKMLocalStorageUsedMax(start, end time.Time) *Future[NodeUIDValueResult]
|
|
|
QueryKMLocalStorageBytes(start, end time.Time) *Future[UIDValueResult]
|
|
QueryKMLocalStorageBytes(start, end time.Time) *Future[UIDValueResult]
|
|
@@ -306,6 +307,7 @@ type MetricsQuerier interface {
|
|
|
QueryPodPVCAllocation(start, end time.Time) *Future[PodPVCAllocationResult]
|
|
QueryPodPVCAllocation(start, end time.Time) *Future[PodPVCAllocationResult]
|
|
|
QueryPVCBytesRequested(start, end time.Time) *Future[PVCBytesRequestedResult]
|
|
QueryPVCBytesRequested(start, end time.Time) *Future[PVCBytesRequestedResult]
|
|
|
QueryPVCInfo(start, end time.Time) *Future[PVCInfoResult]
|
|
QueryPVCInfo(start, end time.Time) *Future[PVCInfoResult]
|
|
|
|
|
+ // UID aggregated version of PVCInfo query
|
|
|
QueryKMPVCInfo(start, end time.Time) *Future[PVCInfoResult]
|
|
QueryKMPVCInfo(start, end time.Time) *Future[PVCInfoResult]
|
|
|
QueryPVCUptime(start, end time.Time) *Future[UptimeResult]
|
|
QueryPVCUptime(start, end time.Time) *Future[UptimeResult]
|
|
|
QueryPVCBytesUsedAverage(start, end time.Time) *Future[PVCUIDValueResult]
|
|
QueryPVCBytesUsedAverage(start, end time.Time) *Future[PVCUIDValueResult]
|