Skip to content

Commit

Permalink
fix(metrics): drop stale datapoints
Browse files Browse the repository at this point in the history
  • Loading branch information
swiatekm committed Oct 13, 2023
1 parent 1f73a0d commit 70af83f
Show file tree
Hide file tree
Showing 4 changed files with 18 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 @@ -203,6 +209,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 @@ -86,6 +86,10 @@ spec:
send_batch_max_size: 2000
send_batch_size: 1000
timeout: 1s
filter/drop_stale_datapoints:
metrics:
datapoint:
- flags == FLAG_NO_RECORDED_VALUE
transform/drop_unnecessary_attributes:
error_mode: ignore
metric_statements:
Expand Down Expand Up @@ -242,6 +246,7 @@ spec:
- otlphttp
processors:
- batch
- filter/drop_stale_datapoints
- transform/extract_sum_count_from_histograms
- transform/drop_unnecessary_attributes
receivers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ spec:
send_batch_max_size: 2000
send_batch_size: 5000
timeout: 1s
filter/drop_stale_datapoints:
metrics:
datapoint:
- flags == FLAG_NO_RECORDED_VALUE
transform/drop_unnecessary_attributes:
error_mode: ignore
metric_statements:
Expand Down Expand Up @@ -136,6 +140,7 @@ spec:
- otlphttp
processors:
- batch
- filter/drop_stale_datapoints
- transform/drop_unnecessary_attributes
receivers:
- prometheus
Expand Down

0 comments on commit 70af83f

Please sign in to comment.