metrics.go 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. KubePersistentVolumeClaimInfo = "kube_persistentvolumeclaim_info"
  15. KubePersistentVolumeClaimResourceRequestsStorageBytes = "kube_persistentvolumeclaim_resource_requests_storage_bytes"
  16. KubecostPVInfo = "kubecost_pv_info"
  17. KubePersistentVolumeCapacityBytes = "kube_persistentvolume_capacity_bytes"
  18. DeploymentMatchLabels = "deployment_match_labels"
  19. KubeNamespaceLabels = "kube_namespace_labels"
  20. KubeNamespaceAnnotations = "kube_namespace_annotations"
  21. ServiceSelectorLabels = "service_selector_labels"
  22. StatefulSetMatchLabels = "statefulSet_match_labels"
  23. KubeReplicasetOwner = "kube_replicaset_owner"
  24. // DCGM Metrics
  25. DCGMFIPROFGRENGINEACTIVE = "DCGM_FI_PROF_GR_ENGINE_ACTIVE"
  26. DCGMFIDEVDECUTIL = "DCGM_FI_DEV_DEC_UTIL"
  27. // Network Metrics
  28. KubecostPodNetworkEgressBytesTotal = "kubecost_pod_network_egress_bytes_total"
  29. KubecostPodNetworkIngressBytesTotal = "kubecost_pod_network_ingress_bytes_total"
  30. // Opencost Metrics
  31. KubecostClusterManagementCost = "kubecost_cluster_management_cost"
  32. KubecostNetworkZoneEgressCost = "kubecost_network_zone_egress_cost"
  33. KubecostNetworkRegionEgressCost = "kubecost_network_region_egress_cost"
  34. KubecostNetworkInternetEgressCost = "kubecost_network_internet_egress_cost"
  35. PVHourlyCost = "pv_hourly_cost"
  36. KubecostLoadBalancerCost = "kubecost_load_balancer_cost"
  37. NodeTotalHourlyCost = "node_total_hourly_cost"
  38. NodeCPUHourlyCost = "node_cpu_hourly_cost"
  39. NodeRAMHourlyCost = "node_ram_hourly_cost"
  40. NodeGPUHourlyCost = "node_gpu_hourly_cost"
  41. NodeGPUCount = "node_gpu_count"
  42. KubecostNodeIsSpot = "kubecost_node_is_spot"
  43. ContainerCPUAllocation = "container_cpu_allocation"
  44. ContainerMemoryAllocationBytes = "container_memory_allocation_bytes"
  45. ContainerGPUAllocation = "container_gpu_allocation"
  46. PodPVCAllocation = "pod_pvc_allocation"
  47. // Stat Summary Metrics
  48. NodeCPUSecondsTotal = "node_cpu_seconds_total"
  49. NodeFSCapacityBytes = "node_fs_capacity_bytes" // replaces container_fs_limit_bytes
  50. ContainerNetworkReceiveBytesTotal = "container_network_receive_bytes_total"
  51. ContainerNetworkTransmitBytesTotal = "container_network_transmit_bytes_total"
  52. ContainerCPUUsageSecondsTotal = "container_cpu_usage_seconds_total"
  53. ContainerMemoryWorkingSetBytes = "container_memory_working_set_bytes"
  54. ContainerFSUsageBytes = "container_fs_usage_bytes"
  55. KubeletVolumeStatsUsedBytes = "kubelet_volume_stats_used_bytes"
  56. )