Skip to content

Commit

Permalink
fix(internal/circonus): Init/Container status MetricFilters are modif…
Browse files Browse the repository at this point in the history
…ied for k8s v1.20+

Fix MetricFilters for v1.20+ to not have ^(kube)?

issue #CIRC-8497

Fix default metric filters for k8s v1.20+ to search for the correct
metric names.

* Tags: v1.20+ init container metricfilter
  • Loading branch information
aesca1er committed Aug 1, 2022
1 parent d71873a commit 3a0637a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/circonus/metric_filters.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const (
["allow", "^(kube_)?pod_container_status_(running|terminated|waiting|ready)(_count)?$", "containers"],
["allow", "^pod_container_status$", "containers"],
["allow", "^(kube_)?pod_container_status_(terminated|waiting)_reason(_count)?$", "containers health"],
["allow", "^(kube_)?pod_init_container_status_(terminated|waiting)_reason(_count)?$", "containers health"],
["allow", "^(kube_)?pod_init_container_status_(terminated|waiting)_reason(_count)?$", "init containers health"],
["allow", "^kube_deployment_(created|spec_replicas)$", "deployments"],
["allow", "^kube_deployment_status_(replicas|replicas_updated|replicas_available|replicas_unavailable)$", "deployments"],
["allow", "^kube_job_status_failed$", "health"],
Expand Down Expand Up @@ -78,8 +78,8 @@ const (
["allow", "^(pod|node)_cpu_usage_seconds_total$", "utilization"],
["allow", "^(pod|node)_memory_working_set_bytes$", utilization"],
["allow", "^(kube_)?pod_container_status_(running|terminated|waiting|ready)(_count)?$", "containers"],
["allow", "^(kube_)?pod_container_status_(terminated|waiting)_reason(_count)?$", "containers health"],
["allow", "^(kube_)?pod_init_container_status_(terminated|waiting)_reason(_count)?$", "init containers health"],
["allow", "^pod_container_status_(terminated|waiting)_reason(_count)?$", "containers health"],
["allow", "^pod_init_container_status_(terminated|waiting)_reason(_count)?$", "init containers health"],
["allow", "^kube_deployment_(created|spec_replicas)$", "deployments"],
["allow", "^kube_deployment_status_(replicas|replicas_updated|replicas_available|replicas_unavailable)$", "deployments"],
["allow", "^kube_job_status_failed$", "health"],
Expand Down

0 comments on commit 3a0637a

Please sign in to comment.