Skip to content

Commit

Permalink
fix(metrics): drop stale datapoints
Browse files Browse the repository at this point in the history
(cherry picked from commit 70af83f)
  • Loading branch information
swiatekm committed Oct 14, 2023
1 parent 04a6dd5 commit 277d6db
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions .changelog/3318.fixed.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fix(metrics): drop stale datapoints
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ processors:
send_batch_size: 1000
timeout: 1s

# staleness markers may simply indicate targets being moved between collector Pods, so they do more harm than good
filter/drop_stale_datapoints:
metrics:
datapoint:
- 'flags == FLAG_NO_RECORDED_VALUE'

transform/drop_unnecessary_attributes:
error_mode: ignore
metric_statements:
Expand Down Expand Up @@ -217,6 +223,7 @@ service:
exporters: [otlphttp]
processors:
- batch
- filter/drop_stale_datapoints
{{- if .Values.sumologic.metrics.dropHistogramBuckets }}
- transform/extract_sum_count_from_histograms
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ spec:
send_batch_size: 1000
timeout: 1s
# staleness markers may simply indicate targets being moved between collector Pods, so they do more harm than good
filter/drop_stale_datapoints:
metrics:
datapoint:
- 'flags == FLAG_NO_RECORDED_VALUE'
transform/drop_unnecessary_attributes:
error_mode: ignore
metric_statements:
Expand Down Expand Up @@ -263,6 +269,7 @@ spec:
exporters: [otlphttp]
processors:
- batch
- filter/drop_stale_datapoints
- transform/extract_sum_count_from_histograms
- filter/drop_unnecessary_metrics
- transform/drop_unnecessary_attributes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ spec:
send_batch_size: 1000
timeout: 1s
# staleness markers may simply indicate targets being moved between collector Pods, so they do more harm than good
filter/drop_stale_datapoints:
metrics:
datapoint:
- 'flags == FLAG_NO_RECORDED_VALUE'
transform/drop_unnecessary_attributes:
error_mode: ignore
metric_statements:
Expand Down Expand Up @@ -1071,6 +1077,7 @@ spec:
exporters: [otlphttp]
processors:
- batch
- filter/drop_stale_datapoints
- filter/drop_unnecessary_metrics
- transform/drop_unnecessary_attributes
- filter/app_metrics
Expand Down

0 comments on commit 277d6db

Please sign in to comment.