Skip to content

Commit

Permalink
Limit Prometheus receiver to process only the required metrics (closes
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesarems committed Dec 18, 2024
1 parent 113a0ae commit 7c27559
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/aws-otel-collector/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: aws-otel-collector
description: A Helm chart to deploy aws-otel-collector project
version: 0.5.0
version: 0.6.0
appVersion: "v0.33.1"
icon: https://raw.githubusercontent.com/snowplow-devops/helm-charts/master/docs/logo/snowplow.png
home: https://github.com/snowplow-devops/helm-charts
Expand Down
4 changes: 4 additions & 0 deletions charts/aws-otel-collector/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ data:
- prometheus-kube-state-metrics.monitoring.svc.cluster.local:8080
labels:
cluster_name: {{ .Values.clusterName }}
metric_relabel_configs:
- source_labels: [__name__]
regex: "^kube_deployment_status_replicas_ready$"
action: keep

processors:
batch/metrics:
Expand Down

0 comments on commit 7c27559

Please sign in to comment.