metrics.go 4.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. package metric
  2. const (
  3. // Cluster Cache Metrics
  4. ClusterInfo = "cluster_info"
  5. KubeNodeStatusCapacityCPUCores = "kube_node_status_capacity_cpu_cores"
  6. KubeNodeStatusCapacityMemoryBytes = "kube_node_status_capacity_memory_bytes"
  7. KubeNodeStatusAllocatableCPUCores = "kube_node_status_allocatable_cpu_cores"
  8. KubeNodeStatusAllocatableMemoryBytes = "kube_node_status_allocatable_memory_bytes"
  9. KubeNodeLabels = "kube_node_labels"
  10. KubePodLabels = "kube_pod_labels"
  11. KubePodAnnotations = "kube_pod_annotations"
  12. KubePodOwner = "kube_pod_owner"
  13. KubePodContainerStatusRunning = "kube_pod_container_status_running"
  14. KubePodContainerResourceRequests = "kube_pod_container_resource_requests"
  15. KubePodContainerResourceLimits = "kube_pod_container_resource_limits"
  16. KubePersistentVolumeClaimInfo = "kube_persistentvolumeclaim_info"
  17. KubePersistentVolumeClaimResourceRequestsStorageBytes = "kube_persistentvolumeclaim_resource_requests_storage_bytes"
  18. KubecostPVInfo = "kubecost_pv_info"
  19. KubePersistentVolumeCapacityBytes = "kube_persistentvolume_capacity_bytes"
  20. DeploymentMatchLabels = "deployment_match_labels"
  21. NamespaceInfo = "namespace_info"
  22. KubeNamespaceLabels = "kube_namespace_labels"
  23. KubeNamespaceAnnotations = "kube_namespace_annotations"
  24. ServiceSelectorLabels = "service_selector_labels"
  25. StatefulSetMatchLabels = "statefulSet_match_labels"
  26. KubeReplicasetOwner = "kube_replicaset_owner"
  27. ContainerCPUAllocation = "container_cpu_allocation"
  28. ContainerMemoryAllocationBytes = "container_memory_allocation_bytes"
  29. ContainerGPUAllocation = "container_gpu_allocation"
  30. PodPVCAllocation = "pod_pvc_allocation"
  31. ResourceQuotaInfo = "resourcequota_info"
  32. KubeResourceQuotaSpecResourceRequests = "resourcequota_spec_resource_requests"
  33. KubeResourceQuotaSpecResourceLimits = "resourcequota_spec_resource_limits"
  34. KubeResourceQuotaStatusUsedResourceRequests = "resourcequota_status_used_resource_requests"
  35. KubeResourceQuotaStatusUsedResourceLimits = "resourcequota_status_used_resource_limits"
  36. // DCGM Metrics
  37. DCGMFIPROFGRENGINEACTIVE = "DCGM_FI_PROF_GR_ENGINE_ACTIVE"
  38. DCGMFIDEVDECUTIL = "DCGM_FI_DEV_DEC_UTIL"
  39. // Network Metrics
  40. KubecostPodNetworkEgressBytesTotal = "kubecost_pod_network_egress_bytes_total"
  41. KubecostPodNetworkIngressBytesTotal = "kubecost_pod_network_ingress_bytes_total"
  42. // Opencost Metrics
  43. KubecostClusterManagementCost = "kubecost_cluster_management_cost"
  44. KubecostNetworkZoneEgressCost = "kubecost_network_zone_egress_cost"
  45. KubecostNetworkRegionEgressCost = "kubecost_network_region_egress_cost"
  46. KubecostNetworkInternetEgressCost = "kubecost_network_internet_egress_cost"
  47. KubecostNetworkNatGatewayEgressCost = "kubecost_network_nat_gateway_egress_cost"
  48. KubecostNetworkNatGatewayIngressCost = "kubecost_network_nat_gateway_ingress_cost"
  49. PVHourlyCost = "pv_hourly_cost"
  50. KubecostLoadBalancerCost = "kubecost_load_balancer_cost"
  51. NodeTotalHourlyCost = "node_total_hourly_cost"
  52. NodeCPUHourlyCost = "node_cpu_hourly_cost"
  53. NodeRAMHourlyCost = "node_ram_hourly_cost"
  54. NodeGPUHourlyCost = "node_gpu_hourly_cost"
  55. NodeGPUCount = "node_gpu_count"
  56. KubecostNodeIsSpot = "kubecost_node_is_spot"
  57. // Stat Summary Metrics
  58. NodeCPUSecondsTotal = "node_cpu_seconds_total"
  59. NodeFSCapacityBytes = "node_fs_capacity_bytes" // replaces container_fs_limit_bytes
  60. ContainerNetworkReceiveBytesTotal = "container_network_receive_bytes_total"
  61. ContainerNetworkTransmitBytesTotal = "container_network_transmit_bytes_total"
  62. ContainerCPUUsageSecondsTotal = "container_cpu_usage_seconds_total"
  63. ContainerMemoryWorkingSetBytes = "container_memory_working_set_bytes"
  64. ContainerFSUsageBytes = "container_fs_usage_bytes"
  65. KubeletVolumeStatsUsedBytes = "kubelet_volume_stats_used_bytes"
  66. )