Skip to content

Commit

Permalink
make regex allow list very specific
Browse files Browse the repository at this point in the history
  • Loading branch information
chadpatel committed Oct 5, 2023
1 parent 6b3620f commit 35b4418
Showing 1 changed file with 18 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,25 @@ const (

var (
controlPlaneMetricAllowList = []string{
"apiserver_admission_controller_admission_duration_seconds.*",
// we want to exclude the separate metric apiserver_admission_step_admission_duration_seconds_summary
"^apiserver_admission_controller_admission_duration_seconds_(bucket|sum|count)$",
"^apiserver_admission_step_admission_duration_seconds_(bucket|sum|count)$",
"^apiserver_admission_webhook_admission_duration_seconds.*",
"^apiserver_current_inflight_requests",
"^apiserver_current_inqueue_requests",
"^apiserver_flowcontrol_rejected_requests_total",
"^apiserver_flowcontrol_request_concurrency_limit",
"^apiserver_longrunning_requests",
"^apiserver_request_duration_seconds.*",
"^apiserver_request_total",
"^apiserver_requested_deprecated_apis",
"^apiserver_storage_list_duration_seconds.*",
"^apiserver_storage_objects",
"^apiserver_storage_db_total_size_in_bytes.*",
"^apiserver_storage_size_bytes.*",
"^etcd_db_total_size_in_bytes.*",
"^etcd_request_duration_seconds.*",
"^rest_client_request_duration_seconds.*",
"^rest_client_requests_total",
"^apiserver_admission_webhook_admission_duration_seconds_(bucket|sum|count)$",
"^apiserver_current_inflight_requests$",
"^apiserver_current_inqueue_requests$",
"^apiserver_flowcontrol_rejected_requests_total$",
"^apiserver_flowcontrol_request_concurrency_limit$",
"^apiserver_longrunning_requests$",
"^apiserver_request_duration_seconds_(bucket|sum|count)$",
"^apiserver_request_total$",
"^apiserver_requested_deprecated_apis$",
"^apiserver_storage_list_duration_seconds_(bucket|sum|count)$",
"^apiserver_storage_objects$",
"^apiserver_storage_db_total_size_in_bytes_(bucket|sum|count)$",
"^apiserver_storage_size_bytes_(bucket|sum|count)$",
"^etcd_db_total_size_in_bytes_(bucket|sum|count)$",
"^etcd_request_duration_seconds_(bucket|sum|count)$",
"^rest_client_request_duration_seconds_(bucket|sum|count)$",
"^rest_client_requests_total$",
}
)

Expand Down

0 comments on commit 35b4418

Please sign in to comment.