Skip to content

Commit

Permalink
filter
Browse files Browse the repository at this point in the history
  • Loading branch information
mpecenka committed Dec 3, 2024
1 parent 38e9d1a commit c8d2c71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deploy/helm/metrics-discovery-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ processors:
filter/histograms:
metrics:
metric:
- 'type == METRIC_DATA_TYPE_HISTOGRAM and not(name == "k8s.apiserver_request_duration_seconds" or name == "k8s.workqueue_queue_duration_seconds" or name == "k8s.coredns_dns_request_duration_seconds" or name == "k8s.coredns_dns_request_size_bytes" or name == "k8s.coredns_dns_response_size_bytes")'
- 'type == METRIC_DATA_TYPE_HISTOGRAM and not(name == "k8s.rest_client_request_duration_seconds" or name == "k8s.workqueue_queue_duration_seconds")'

{{- if .Values.otel.metrics.autodiscovery.prometheusEndpoints.filter }}
filter/metrics-discovery:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ Metrics discovery config should match snapshot when Fargate is enabled:
filter/histograms:
metrics:
metric:
- type == METRIC_DATA_TYPE_HISTOGRAM and not(name == "k8s.apiserver_request_duration_seconds"
or name == "k8s.workqueue_queue_duration_seconds" or name == "k8s.coredns_dns_request_duration_seconds"
or name == "k8s.coredns_dns_request_size_bytes" or name == "k8s.coredns_dns_response_size_bytes")
- type == METRIC_DATA_TYPE_HISTOGRAM and not(name == "k8s.rest_client_request_duration_seconds"
or name == "k8s.workqueue_queue_duration_seconds")
filter/remove_temporary_metrics:
metrics:
metric:
Expand Down

0 comments on commit c8d2c71

Please sign in to comment.