Skip to content

Commit fd359b1

Browse files
authored
Merge pull request #102 from frezes/feat/kube-prometheus-stack
[kube-prometheus-stack] update values
2 parents 73e7f4a + 8c7e986 commit fd359b1

File tree

2 files changed

+104
-12
lines changed

2 files changed

+104
-12
lines changed

charts/kube-prometheus-stack/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ name: kube-prometheus-stack
3131
sources:
3232
- https://github.com/prometheus-community/helm-charts
3333
- https://github.com/prometheus-operator/kube-prometheus
34-
version: 70.5.0
34+
version: 70.5.1
3535
appVersion: v0.81.0
3636
kubeVersion: ">=1.19.0-0"
3737
home: https://github.com/prometheus-operator/kube-prometheus

charts/kube-prometheus-stack/values.yaml

Lines changed: 103 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1501,7 +1501,7 @@ kubeApiServer:
15011501
metricRelabelings:
15021502
# Drop excessively noisy apiserver buckets.
15031503
- 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)?
15051505
sourceLabels:
15061506
- __name__
15071507
- le
@@ -1557,8 +1557,8 @@ kubeApiServer:
15571557
- action: drop
15581558
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)
15591559
sourceLabels:
1560-
- __name__
1561-
- le
1560+
- __name__
1561+
- le
15621562
# - action: keep
15631563
# regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
15641564
# sourceLabels: [__name__]
@@ -1714,6 +1714,21 @@ kubelet:
17141714
- sourceLabels: [id, pod]
17151715
action: drop
17161716
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
17171732
- sourceLabels: [__name__]
17181733
action: keep
17191734
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:
17961811
- action: drop
17971812
sourceLabels: [__name__, le]
17981813
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__
17991846
- 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_.+
18011848
sourceLabels:
18021849
- __name__
18031850
# - sourceLabels: [__name__, image]
@@ -1920,6 +1967,42 @@ kubeControllerManager:
19201967
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig
19211968
##
19221969
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__
19232006
- action: keep
19242007
regex: up
19252008
sourceLabels:
@@ -2491,6 +2574,7 @@ kube-state-metrics:
24912574
metricNamePrefix: "kubesphere_cluster"
24922575
labelsFromPath:
24932576
kubesphere_cluster: [metadata, name]
2577+
cluster_kubesphere_io_group: [metadata, labels, cluster.kubesphere.io/group]
24942578
provider: [spec, provider]
24952579
metrics:
24962580
- name: "info"
@@ -2501,15 +2585,16 @@ kube-state-metrics:
25012585
labelsFromPath:
25022586
kubesphere_version: [status, kubeSphereVersion]
25032587
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]
25052590
- name: "created"
25062591
help: "created timestamp about cluster.kubesphere.io/cluster."
25072592
each:
25082593
type: Gauge
25092594
gauge:
25102595
path: [metadata, creationTimestamp]
25112596
- name: "label_keys"
2512-
help: "role about cluster.kubesphere.io/cluster."
2597+
help: "lalel keys about cluster.kubesphere.io/cluster."
25132598
each:
25142599
type: Info
25152600
info:
@@ -2568,7 +2653,6 @@ kube-state-metrics:
25682653
labelsFromPath:
25692654
kubesphere_cluster: [name]
25702655
- name: "placement_selector"
2571-
errorLogV: 10
25722656
help: "cluster placement selector about tenant.kubesphere.io/workspacetemplate."
25732657
each:
25742658
type: Info
@@ -2610,6 +2694,12 @@ kube-state-metrics:
26102694
valueFrom: []
26112695
commonLabels:
26122696
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]
26132703

26142704
rbac:
26152705
create: true
@@ -2645,8 +2735,10 @@ kube-state-metrics:
26452735
- kube_(hpa|replicaset|replicationcontroller)_.+_generation
26462736
- kube_(certificatesigningrequests|rolebinding|)_.+
26472737
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]'
26502742

26512743
## Enable scraping via kubernetes-service-endpoints
26522744
## Disabled by default as we service monitor is enabled below
@@ -2715,8 +2807,8 @@ kube-state-metrics:
27152807
regex: kube_namespace_labels;(.*)
27162808
replacement: $1
27172809
sourceLabels:
2718-
- __name__
2719-
- label_kubesphere_io_workspace
2810+
- __name__
2811+
- label_kubesphere_io_workspace
27202812
targetLabel: workspace
27212813
# - action: keep
27222814
# regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'

0 commit comments

Comments
 (0)