Skip to content

Commit 697074b

Browse files
author
Stanislav Volovik
committed
Do not send the same metrics
1 parent 424da91 commit 697074b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/stackify/metrics/metrics_client.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ def start_upload_metrics
7070
#only getting metrics less than 10 minutes old to drop old data in case we get backed up
7171
#they are removed from the @aggregated_metrics in the upload function upon success
7272
all_success = upload_aggregates(first_50_metrics.select { |_key, aggr| aggr.occurred_utc > current_time - 10.minutes })
73+
all_success.map {|key, _aggr| @aggregate_metrics[key].occurred_utc = current_time }
7374
end
7475
@aggregate_metrics.delete_if { |_key, aggr| aggr.occurred_utc < purge_older_than }
7576
end

0 commit comments

Comments
 (0)