metrics.go 4.2 KB

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