This repository has been archived by the owner on Oct 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stats, metrics: deduplicate TimeSeries with non-unique Metric.Type
Since existence, the stats exporter was sending Stackdriver Metrics only split up by chunks of maxUploadSize of 200, but Metric-s with the exact same Type were still uploaded in the same CreateTimeSeriesRequest which would cause: err: rpc error: code = InvalidArgument desc = One or more TimeSeries could not be written: Field timeSeries[?] had an invalid value: Duplicate TimeSeries encountered. Only one point can be written per TimeSeries per request.: timeSeries[?] and the previous remedy just relied on a synchronization of SetReportingPeriod of 60+s which would aggregate stats/view.Data. This change now splits up such Metrics so even if uploads are made in less than 60s, CreateTimeSeriesRequest-s will be uniquely uploaded and won't cause Stackdriver's backend to trip up. Fixes #73
- Loading branch information
Showing
5 changed files
with
703 additions
and
484 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.