@@ -1501,7 +1501,7 @@ kubeApiServer:
1501
1501
metricRelabelings :
1502
1502
# Drop excessively noisy apiserver buckets.
1503
1503
- action : drop
1504
- regex : (etcd_request|apiserver_request_slo|apiserver_request_sli|apiserver_request)_duration_seconds_bucket;(0\.15|0\.2|0\.3|0\.35|0\.4|0\.45|0\.6|0\.7|0\.8|0\.9|1\.25|1\.5|1\.75|2|3|3\.5|4|4\.5|6|7|8|9|15|20|30| 40|45|50)(\.0)?
1504
+ regex : (etcd_request|apiserver_request_slo|apiserver_request_sli|apiserver_request)_duration_seconds_bucket;(0\.15|0\.2|0\.3|0\.35|0\.4|0\.45|0\.6|0\.7|0\.8|0\.9|1\.25|1\.5|1\.75|2|3|3\.5|4|4\.5|6|7|8|9|15|20|40|45|50)(\.0)?
1505
1505
sourceLabels :
1506
1506
- __name__
1507
1507
- le
@@ -1557,8 +1557,8 @@ kubeApiServer:
1557
1557
- action : drop
1558
1558
regex : apiserver_request_body_size_bytes_bucket;(150000|350000|550000|650000|850000|950000|(1\.15|1\.35|1\.55|1\.65|1\.85|1\.95|2\.15|2\.35|2\.55|2\.65|2\.85|2\.95)e\+06)
1559
1559
sourceLabels :
1560
- - __name__
1561
- - le
1560
+ - __name__
1561
+ - le
1562
1562
# - action: keep
1563
1563
# regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
1564
1564
# sourceLabels: [__name__]
@@ -1714,6 +1714,21 @@ kubelet:
1714
1714
- sourceLabels : [id, pod]
1715
1715
action : drop
1716
1716
regex : ' .+;'
1717
+ - action : drop
1718
+ regex : container_(network_tcp_usage_total|network_udp_usage_total|tasks_state|cpu_load_average_10s)
1719
+ sourceLabels :
1720
+ - __name__
1721
+ - action : drop
1722
+ regex : (container_spec_.*|container_file_descriptors|container_sockets|container_threads_max|container_threads|container_start_time_seconds|container_last_seen);;
1723
+ sourceLabels :
1724
+ - __name__
1725
+ - pod
1726
+ - namespace
1727
+ - action : drop
1728
+ regex : (container_blkio_device_usage_total);.+
1729
+ sourceLabels :
1730
+ - __name__
1731
+ - container
1717
1732
- sourceLabels : [__name__]
1718
1733
action : keep
1719
1734
regex : container_cpu_cfs_.*periods_total|container_cpu_usage_seconds_total|container_fs_(limit|usage)_bytes|container_fs_(reads|writes)_bytes_total|container_fs_(reads|writes)_total|container_memory_(cache|mapped_file|rss|usage_bytes|working_set_bytes)|container_network_(receive|transmit)_(bytes|packets|packets_dropped)_total|container_processes.*|container_threads.*
@@ -1796,8 +1811,40 @@ kubelet:
1796
1811
- action : drop
1797
1812
sourceLabels : [__name__, le]
1798
1813
regex : (csi_operations|storage_operation_duration)_seconds_bucket;(0.25|2.5|15|25|120|600)(\.0)?
1814
+ - action : drop
1815
+ regex : kubelet_(pod_worker_latency_microseconds|pod_start_latency_microseconds|cgroup_manager_latency_microseconds|pod_worker_start_latency_microseconds|pleg_relist_latency_microseconds|pleg_relist_interval_microseconds|runtime_operations|runtime_operations_latency_microseconds|runtime_operations_errors|eviction_stats_age_microseconds|device_plugin_registration_count|device_plugin_alloc_latency_microseconds|network_plugin_operations_latency_microseconds)
1816
+ sourceLabels :
1817
+ - __name__
1818
+ - action : drop
1819
+ regex : scheduler_(e2e_scheduling_latency_microseconds|scheduling_algorithm_predicate_evaluation|scheduling_algorithm_priority_evaluation|scheduling_algorithm_preemption_evaluation|scheduling_algorithm_latency_microseconds|binding_latency_microseconds|scheduling_latency_seconds)
1820
+ sourceLabels :
1821
+ - __name__
1822
+ - action : drop
1823
+ regex : apiserver_(request_count|request_latencies|request_latencies_summary|dropped_requests|storage_data_key_generation_latencies_microseconds|storage_transformation_failures_total|storage_transformation_latencies_microseconds|proxy_tunnel_sync_latency_secs|longrunning_gauge|registered_watchers|storage_db_total_size_in_bytes|flowcontrol_request_concurrency_limit|flowcontrol_request_concurrency_in_use)
1824
+ sourceLabels :
1825
+ - __name__
1826
+ - action : drop
1827
+ regex : kubelet_docker_(operations|operations_latency_microseconds|operations_errors|operations_timeout)
1828
+ sourceLabels :
1829
+ - __name__
1830
+ - action : drop
1831
+ regex : reflector_(items_per_list|items_per_watch|list_duration_seconds|lists_total|short_watches_total|watch_duration_seconds|watches_total)
1832
+ sourceLabels :
1833
+ - __name__
1834
+ - action : drop
1835
+ regex : etcd_(helper_cache_hit_count|helper_cache_miss_count|helper_cache_entry_count|object_counts|request_cache_get_latencies_summary|request_cache_add_latencies_summary|request_latencies_summary)
1836
+ sourceLabels :
1837
+ - __name__
1838
+ - action : drop
1839
+ regex : transformation_(transformation_latencies_microseconds|failures_total)
1840
+ sourceLabels :
1841
+ - __name__
1842
+ - action : drop
1843
+ regex: (admission_quota_controller_adds|admission_quota_controller_depth|admission_quota_controller_longest_running_processor_microseconds|admission_quota_controller_queue_latency|admission_quota_controller_unfinished_work_seconds|admission_quota_controller_work_duration|APIServiceOpenAPIAggregationControllerQueue1_adds|APIServiceOpenAPIAggregationControllerQueue1_depth|APIServiceOpenAPIAggregationControllerQueue1_longest_running_processor_microseconds|APIServiceOpenAPIAggregationControllerQueue1_queue_latency|APIServiceOpenAPIAggregationControllerQueue1_retries|APIServiceOpenAPIAggregationControllerQueue1_unfinished_work_seconds|APIServiceOpenAPIAggregationControllerQueue1_work_duration|APIServiceRegistrationController_adds|APIServiceRegistrationController_depth|APIServiceRegistrationController_longest_running_processor_microseconds|APIServiceRegistrationController_queue_latency|APIServiceRegistrationController_retries|APIServiceRegistrationController_unfinished_work_seconds|APIServiceRegistrationController_work_duration|autoregister_adds|autoregister_depth|autoregister_longest_running_processor_microseconds|autoregister_queue_latency|autoregister_retries|autoregister_unfinished_work_seconds|autoregister_work_duration|AvailableConditionController_adds|AvailableConditionController_depth|AvailableConditionController_longest_running_processor_microseconds|AvailableConditionController_queue_latency|AvailableConditionController_retries|AvailableConditionController_unfinished_work_seconds|AvailableConditionController_work_duration|crd_autoregistration_controller_adds|crd_autoregistration_controller_depth|crd_autoregistration_controller_longest_running_processor_microseconds|crd_autoregistration_controller_queue_latency|crd_autoregistration_controller_retries|crd_autoregistration_controller_unfinished_work_seconds|crd_autoregistration_controller_work_duration|crdEstablishing_adds|crdEstablishing_depth|crdEstablishing_longest_running_processor_microseconds|crdEstablishing_queue_latency|crdEstablishing_retries|crdEstablishing_unfinished_work_seconds|crdEstablishing_work_duration|crd_finalizer_adds|crd_finalizer_depth|crd_finalizer_longest_running_processor_microseconds|crd_finalizer_queue_latency|crd_finalizer_retries|crd_finalizer_unfinished_work_seconds|crd_finalizer_work_duration|crd_naming_condition_controller_adds|crd_naming_condition_controller_depth|crd_naming_condition_controller_longest_running_processor_microseconds|crd_naming_condition_controller_queue_latency|crd_naming_condition_controller_retries|crd_naming_condition_controller_unfinished_work_seconds|crd_naming_condition_controller_work_duration|crd_openapi_controller_adds|crd_openapi_controller_depth|crd_openapi_controller_longest_running_processor_microseconds|crd_openapi_controller_queue_latency|crd_openapi_controller_retries|crd_openapi_controller_unfinished_work_seconds|crd_openapi_controller_work_duration|DiscoveryController_adds|DiscoveryController_depth|DiscoveryController_longest_running_processor_microseconds|DiscoveryController_queue_latency|DiscoveryController_retries|DiscoveryController_unfinished_work_seconds|DiscoveryController_work_duration|kubeproxy_sync_proxy_rules_latency_microseconds|non_structural_schema_condition_controller_adds|non_structural_schema_condition_controller_depth|non_structural_schema_condition_controller_longest_running_processor_microseconds|non_structural_schema_condition_controller_queue_latency|non_structural_schema_condition_controller_retries|non_structural_schema_condition_controller_unfinished_work_seconds|non_structural_schema_condition_controller_work_duration|rest_client_request_latency_seconds|storage_operation_errors_total|storage_operation_status_count)
1844
+ sourceLabels :
1845
+ - __name__
1799
1846
- action : keep
1800
- regex : kubelet_node_name|kubelet_running_container_count|kubelet_running_pod_count|kubelet_volume_stats.*|kubelet_pleg_relist_duration_seconds_.+|kubelet_certificate_manager_.+|kubelet_server_expiration_.+|kubelet_pod_worker_.+
1847
+ regex : kubelet_node_name|kubelet_running_container_count|kubelet_running_pod_count|kubelet_volume_stats.*|kubelet_pleg_relist_duration_seconds_.+|kubelet_certificate_manager_.+|kubelet_server_expiration_.+|kubelet_pod_worker_.+|kubelet_runtime_operations_.+|storage_operation_.+
1801
1848
sourceLabels :
1802
1849
- __name__
1803
1850
# - sourceLabels: [__name__, image]
@@ -1920,6 +1967,42 @@ kubeControllerManager:
1920
1967
# # ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig
1921
1968
# #
1922
1969
metricRelabelings :
1970
+ - action : drop
1971
+ regex : kubelet_(pod_worker_latency_microseconds|pod_start_latency_microseconds|cgroup_manager_latency_microseconds|pod_worker_start_latency_microseconds|pleg_relist_latency_microseconds|pleg_relist_interval_microseconds|runtime_operations|runtime_operations_latency_microseconds|runtime_operations_errors|eviction_stats_age_microseconds|device_plugin_registration_count|device_plugin_alloc_latency_microseconds|network_plugin_operations_latency_microseconds)
1972
+ sourceLabels :
1973
+ - __name__
1974
+ - action : drop
1975
+ regex : scheduler_(e2e_scheduling_latency_microseconds|scheduling_algorithm_predicate_evaluation|scheduling_algorithm_priority_evaluation|scheduling_algorithm_preemption_evaluation|scheduling_algorithm_latency_microseconds|binding_latency_microseconds|scheduling_latency_seconds)
1976
+ sourceLabels :
1977
+ - __name__
1978
+ - action : drop
1979
+ regex : apiserver_(request_count|request_latencies|request_latencies_summary|dropped_requests|storage_data_key_generation_latencies_microseconds|storage_transformation_failures_total|storage_transformation_latencies_microseconds|proxy_tunnel_sync_latency_secs|longrunning_gauge|registered_watchers|storage_db_total_size_in_bytes|flowcontrol_request_concurrency_limit|flowcontrol_request_concurrency_in_use)
1980
+ sourceLabels :
1981
+ - __name__
1982
+ - action : drop
1983
+ regex : kubelet_docker_(operations|operations_latency_microseconds|operations_errors|operations_timeout)
1984
+ sourceLabels :
1985
+ - __name__
1986
+ - action : drop
1987
+ regex : reflector_(items_per_list|items_per_watch|list_duration_seconds|lists_total|short_watches_total|watch_duration_seconds|watches_total)
1988
+ sourceLabels :
1989
+ - __name__
1990
+ - action : drop
1991
+ regex : etcd_(helper_cache_hit_count|helper_cache_miss_count|helper_cache_entry_count|object_counts|request_cache_get_latencies_summary|request_cache_add_latencies_summary|request_latencies_summary)
1992
+ sourceLabels :
1993
+ - __name__
1994
+ - action : drop
1995
+ regex : transformation_(transformation_latencies_microseconds|failures_total)
1996
+ sourceLabels :
1997
+ - __name__
1998
+ - action : drop
1999
+ regex: (admission_quota_controller_adds|admission_quota_controller_depth|admission_quota_controller_longest_running_processor_microseconds|admission_quota_controller_queue_latency|admission_quota_controller_unfinished_work_seconds|admission_quota_controller_work_duration|APIServiceOpenAPIAggregationControllerQueue1_adds|APIServiceOpenAPIAggregationControllerQueue1_depth|APIServiceOpenAPIAggregationControllerQueue1_longest_running_processor_microseconds|APIServiceOpenAPIAggregationControllerQueue1_queue_latency|APIServiceOpenAPIAggregationControllerQueue1_retries|APIServiceOpenAPIAggregationControllerQueue1_unfinished_work_seconds|APIServiceOpenAPIAggregationControllerQueue1_work_duration|APIServiceRegistrationController_adds|APIServiceRegistrationController_depth|APIServiceRegistrationController_longest_running_processor_microseconds|APIServiceRegistrationController_queue_latency|APIServiceRegistrationController_retries|APIServiceRegistrationController_unfinished_work_seconds|APIServiceRegistrationController_work_duration|autoregister_adds|autoregister_depth|autoregister_longest_running_processor_microseconds|autoregister_queue_latency|autoregister_retries|autoregister_unfinished_work_seconds|autoregister_work_duration|AvailableConditionController_adds|AvailableConditionController_depth|AvailableConditionController_longest_running_processor_microseconds|AvailableConditionController_queue_latency|AvailableConditionController_retries|AvailableConditionController_unfinished_work_seconds|AvailableConditionController_work_duration|crd_autoregistration_controller_adds|crd_autoregistration_controller_depth|crd_autoregistration_controller_longest_running_processor_microseconds|crd_autoregistration_controller_queue_latency|crd_autoregistration_controller_retries|crd_autoregistration_controller_unfinished_work_seconds|crd_autoregistration_controller_work_duration|crdEstablishing_adds|crdEstablishing_depth|crdEstablishing_longest_running_processor_microseconds|crdEstablishing_queue_latency|crdEstablishing_retries|crdEstablishing_unfinished_work_seconds|crdEstablishing_work_duration|crd_finalizer_adds|crd_finalizer_depth|crd_finalizer_longest_running_processor_microseconds|crd_finalizer_queue_latency|crd_finalizer_retries|crd_finalizer_unfinished_work_seconds|crd_finalizer_work_duration|crd_naming_condition_controller_adds|crd_naming_condition_controller_depth|crd_naming_condition_controller_longest_running_processor_microseconds|crd_naming_condition_controller_queue_latency|crd_naming_condition_controller_retries|crd_naming_condition_controller_unfinished_work_seconds|crd_naming_condition_controller_work_duration|crd_openapi_controller_adds|crd_openapi_controller_depth|crd_openapi_controller_longest_running_processor_microseconds|crd_openapi_controller_queue_latency|crd_openapi_controller_retries|crd_openapi_controller_unfinished_work_seconds|crd_openapi_controller_work_duration|DiscoveryController_adds|DiscoveryController_depth|DiscoveryController_longest_running_processor_microseconds|DiscoveryController_queue_latency|DiscoveryController_retries|DiscoveryController_unfinished_work_seconds|DiscoveryController_work_duration|kubeproxy_sync_proxy_rules_latency_microseconds|non_structural_schema_condition_controller_adds|non_structural_schema_condition_controller_depth|non_structural_schema_condition_controller_longest_running_processor_microseconds|non_structural_schema_condition_controller_queue_latency|non_structural_schema_condition_controller_retries|non_structural_schema_condition_controller_unfinished_work_seconds|non_structural_schema_condition_controller_work_duration|rest_client_request_latency_seconds|storage_operation_errors_total|storage_operation_status_count)
2000
+ sourceLabels :
2001
+ - __name__
2002
+ - action : drop
2003
+ regex : etcd_(debugging|disk|request|server).*
2004
+ sourceLabels :
2005
+ - __name__
1923
2006
- action : keep
1924
2007
regex : up
1925
2008
sourceLabels :
@@ -2491,6 +2574,7 @@ kube-state-metrics:
2491
2574
metricNamePrefix : " kubesphere_cluster"
2492
2575
labelsFromPath :
2493
2576
kubesphere_cluster : [metadata, name]
2577
+ cluster_kubesphere_io_group : [metadata, labels, cluster.kubesphere.io/group]
2494
2578
provider : [spec, provider]
2495
2579
metrics :
2496
2580
- name : " info"
@@ -2501,15 +2585,16 @@ kube-state-metrics:
2501
2585
labelsFromPath :
2502
2586
kubesphere_version : [status, kubeSphereVersion]
2503
2587
kubernetes_version : [status, kubernetesVersion]
2504
- cluster_kubesphere_io_group : [metadata, labels, cluster.kubesphere.io/group]
2588
+ alias_name : [metadata, annotations, kubesphere.io/alias-name]
2589
+ description : [metadata, annotations, kubesphere.io/description]
2505
2590
- name : " created"
2506
2591
help : " created timestamp about cluster.kubesphere.io/cluster."
2507
2592
each :
2508
2593
type : Gauge
2509
2594
gauge :
2510
2595
path : [metadata, creationTimestamp]
2511
2596
- name : " label_keys"
2512
- help : " role about cluster.kubesphere.io/cluster."
2597
+ help : " lalel keys about cluster.kubesphere.io/cluster."
2513
2598
each :
2514
2599
type : Info
2515
2600
info :
@@ -2568,7 +2653,6 @@ kube-state-metrics:
2568
2653
labelsFromPath :
2569
2654
kubesphere_cluster : [name]
2570
2655
- name : " placement_selector"
2571
- errorLogV : 10
2572
2656
help : " cluster placement selector about tenant.kubesphere.io/workspacetemplate."
2573
2657
each :
2574
2658
type : Info
@@ -2610,6 +2694,12 @@ kube-state-metrics:
2610
2694
valueFrom : []
2611
2695
commonLabels :
2612
2696
type : " used"
2697
+ - name : " created"
2698
+ help : " created timestamp about quota.kubesphere.io/resourcequota."
2699
+ each :
2700
+ type : Gauge
2701
+ gauge :
2702
+ path : [metadata, creationTimestamp]
2613
2703
2614
2704
rbac :
2615
2705
create : true
@@ -2645,8 +2735,10 @@ kube-state-metrics:
2645
2735
- kube_(hpa|replicaset|replicationcontroller)_.+_generation
2646
2736
- kube_(certificatesigningrequests|rolebinding|)_.+
2647
2737
metricLabelsAllowlist :
2648
- - ' *=[kubesphere.io/workspace,storage.kubesphere.io/storagetype]'
2649
- metricAnnotationsAllowList : []
2738
+ - ' namespaces=[kubesphere.io/workspace]'
2739
+ - ' storageclasses=[storage.kubesphere.io/storagetype]'
2740
+ metricAnnotationsAllowList :
2741
+ - ' namespaces=[kubesphere.io/alias-name]'
2650
2742
2651
2743
# # Enable scraping via kubernetes-service-endpoints
2652
2744
# # Disabled by default as we service monitor is enabled below
@@ -2715,8 +2807,8 @@ kube-state-metrics:
2715
2807
regex : kube_namespace_labels;(.*)
2716
2808
replacement : $1
2717
2809
sourceLabels :
2718
- - __name__
2719
- - label_kubesphere_io_workspace
2810
+ - __name__
2811
+ - label_kubesphere_io_workspace
2720
2812
targetLabel : workspace
2721
2813
# - action: keep
2722
2814
# regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
0 commit comments