diff --git a/pkg/operation/botanist/component/kubeapiserver/monitoring.go b/pkg/operation/botanist/component/kubeapiserver/monitoring.go index 910f955807e..0bc394ae51e 100644 --- a/pkg/operation/botanist/component/kubeapiserver/monitoring.go +++ b/pkg/operation/botanist/component/kubeapiserver/monitoring.go @@ -43,6 +43,7 @@ const ( monitoringMetricApiserverCRDWebhookConversionDurationSeconds = "apiserver_crd_webhook_conversion_duration_seconds_.+" monitoringMetricApiserverCurrentInflightRequests = "apiserver_current_inflight_requests" monitoringMetricApiserverCurrentInqueueRequests = "apiserver_current_inqueue_requests" + monitoringMetricApiserverLongrunningRequests = "apiserver_longrunning_requests" monitoringMetricApiserverResponseSizes = "apiserver_response_sizes_.+" monitoringMetricApiserverRegisteredWatchers = "apiserver_registered_watchers" monitoringMetricApiserverRequestDurationSeconds = "apiserver_request_duration_seconds_.+" @@ -218,6 +219,7 @@ var ( monitoringMetricApiserverCRDWebhookConversionDurationSeconds, monitoringMetricApiserverCurrentInflightRequests, monitoringMetricApiserverCurrentInqueueRequests, + monitoringMetricApiserverLongrunningRequests, monitoringMetricApiserverResponseSizes, monitoringMetricApiserverRegisteredWatchers, monitoringMetricApiserverRequestDurationSeconds, diff --git a/pkg/operation/botanist/component/kubeapiserver/monitoring_test.go b/pkg/operation/botanist/component/kubeapiserver/monitoring_test.go index fafd4265cc6..a06af9814a1 100644 --- a/pkg/operation/botanist/component/kubeapiserver/monitoring_test.go +++ b/pkg/operation/botanist/component/kubeapiserver/monitoring_test.go @@ -71,7 +71,7 @@ relabel_configs: metric_relabel_configs: - source_labels: [ __name__ ] action: keep - regex: ^(authentication_attempts|authenticated_user_requests|apiserver_admission_controller_admission_duration_seconds_.+|apiserver_admission_webhook_admission_duration_seconds_.+|apiserver_admission_step_admission_duration_seconds_.+|apiserver_admission_webhook_rejection_count|apiserver_audit_event_total|apiserver_audit_error_total|apiserver_audit_requests_rejected_total|apiserver_latency_seconds|apiserver_crd_webhook_conversion_duration_seconds_.+|apiserver_current_inflight_requests|apiserver_current_inqueue_requests|apiserver_response_sizes_.+|apiserver_registered_watchers|apiserver_request_duration_seconds_.+|apiserver_request_terminations_total|apiserver_request_total|apiserver_request_count|apiserver_storage_transformation_duration_seconds_.+|apiserver_storage_transformation_operations_total|apiserver_init_events_total|apiserver_watch_events_sizes_.+|apiserver_watch_events_total|etcd_db_total_size_in_bytes|apiserver_storage_db_total_size_in_bytes|etcd_object_counts|apiserver_storage_objects|etcd_request_duration_seconds_.+|go_.+|process_max_fds|process_open_fds|watch_cache_capacity_increase_total|watch_cache_capacity_decrease_total|watch_cache_capacity|apiserver_cache_list_.+|apiserver_storage_list_.+)$ + regex: ^(authentication_attempts|authenticated_user_requests|apiserver_admission_controller_admission_duration_seconds_.+|apiserver_admission_webhook_admission_duration_seconds_.+|apiserver_admission_step_admission_duration_seconds_.+|apiserver_admission_webhook_rejection_count|apiserver_audit_event_total|apiserver_audit_error_total|apiserver_audit_requests_rejected_total|apiserver_latency_seconds|apiserver_crd_webhook_conversion_duration_seconds_.+|apiserver_current_inflight_requests|apiserver_current_inqueue_requests|apiserver_longrunning_requests|apiserver_response_sizes_.+|apiserver_registered_watchers|apiserver_request_duration_seconds_.+|apiserver_request_terminations_total|apiserver_request_total|apiserver_request_count|apiserver_storage_transformation_duration_seconds_.+|apiserver_storage_transformation_operations_total|apiserver_init_events_total|apiserver_watch_events_sizes_.+|apiserver_watch_events_total|etcd_db_total_size_in_bytes|apiserver_storage_db_total_size_in_bytes|etcd_object_counts|apiserver_storage_objects|etcd_request_duration_seconds_.+|go_.+|process_max_fds|process_open_fds|watch_cache_capacity_increase_total|watch_cache_capacity_decrease_total|watch_cache_capacity|apiserver_cache_list_.+|apiserver_storage_list_.+)$ ` expectedAlertingRule = `groups: