Skip to content

Commit

Permalink
feat: temporary labels are now removed for matrics
Browse files Browse the repository at this point in the history
  • Loading branch information
turytsia committed Jan 6, 2025
1 parent 9ef33dd commit 02aa7bf
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deploy/helm/metrics-collector-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,9 @@ processors:
- delete_key(resource.attributes, "sw.k8s.persistentvolume.found")
- delete_key(resource.attributes, "sw.k8s.persistentvolumeclaim.found")
- delete_key(resource.attributes, "sw.k8s.service.found")
- delete_key(resource.attributes, "sw.k8s.job.found")
- delete_key(resource.attributes, "sw.k8s.cronjob.found")
- delete_key(resource.attributes, "sw.k8s.node.found")

attributes/remove_prometheus_attributes_endpoint:
exclude:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1592,6 +1592,9 @@ Metrics config should match snapshot when using default values:
- delete_key(resource.attributes, "sw.k8s.persistentvolume.found")
- delete_key(resource.attributes, "sw.k8s.persistentvolumeclaim.found")
- delete_key(resource.attributes, "sw.k8s.service.found")
- delete_key(resource.attributes, "sw.k8s.job.found")
- delete_key(resource.attributes, "sw.k8s.cronjob.found")
- delete_key(resource.attributes, "sw.k8s.node.found")
transform/scope:
metric_statements:
- context: scope
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1592,6 +1592,9 @@ Metrics config should match snapshot when fargate is enabled:
- delete_key(resource.attributes, "sw.k8s.persistentvolume.found")
- delete_key(resource.attributes, "sw.k8s.persistentvolumeclaim.found")
- delete_key(resource.attributes, "sw.k8s.service.found")
- delete_key(resource.attributes, "sw.k8s.job.found")
- delete_key(resource.attributes, "sw.k8s.cronjob.found")
- delete_key(resource.attributes, "sw.k8s.node.found")
transform/scope:
metric_statements:
- context: scope
Expand Down Expand Up @@ -3451,6 +3454,9 @@ Metrics config should match snapshot when using Prometheus url with extra_scrape
- delete_key(resource.attributes, "sw.k8s.persistentvolume.found")
- delete_key(resource.attributes, "sw.k8s.persistentvolumeclaim.found")
- delete_key(resource.attributes, "sw.k8s.service.found")
- delete_key(resource.attributes, "sw.k8s.job.found")
- delete_key(resource.attributes, "sw.k8s.cronjob.found")
- delete_key(resource.attributes, "sw.k8s.node.found")
transform/scope:
metric_statements:
- context: scope
Expand Down Expand Up @@ -5252,6 +5258,9 @@ Metrics config should match snapshot when using default values:
- delete_key(resource.attributes, "sw.k8s.persistentvolume.found")
- delete_key(resource.attributes, "sw.k8s.persistentvolumeclaim.found")
- delete_key(resource.attributes, "sw.k8s.service.found")
- delete_key(resource.attributes, "sw.k8s.job.found")
- delete_key(resource.attributes, "sw.k8s.cronjob.found")
- delete_key(resource.attributes, "sw.k8s.node.found")
transform/scope:
metric_statements:
- context: scope
Expand Down

0 comments on commit 02aa7bf

Please sign in to comment.