-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cumulativetodeltaprocessor: Reopening #4444 Update cumulative to delta (
#5772) * Add metric tracking library to replace awsmetrics dependency. * Update configuration of cumulativetodelta processor. The configuration has been updated so that: * An empty list of metrics defaults to converting all cumulative metrics to delta. * The state TTL (MaxStale) is now considered configurable * There is a configuration option to enable/disable conversion of non-monotonic cumulative metrics. Non-monotonic cumulative metrics are normally considered gauges and aggregation temporality should not be converted. The default is that only monotonic values are converted. * Update cumulativetodelta processor logic. * Uses the internal tracker library instead of AWS metrics library. This enables separation of timeseries by resource and instrumentation library. * Metric data points which are invalid (the first in a series of non-monontic cumulative values) are now removed from the dataset. * Update processor default test case. By default, the cumulative to delta processor now converts all metrics. Previously, the processor did not convert any metrics unless listed in the configuration. * Remove extra validate function call. * Add processor benchmark. * Remove aws metrics library. * Update readme. * Convert to using attributes rather than labels map. * Fix usage of deprecated api. * Retain NaN values. * Exported field comments should start with field name. Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com> * Remove monotonic configuration option. * Fixes after merge * Rename MaxStale to MaxStaleness * Update README to reflect removal of monotonic_only setting * Change processor to only convert metrics explicitly specified in the config * Reintroduce test for invalid config with no metric names * Rename max_stale to max_staleness * Fix README * List of metric names can no longer be nil or empty Co-authored-by: Allan Feldman <afeldman@newrelic.com> Co-authored-by: Allan Feldman <6374032+a-feld@users.noreply.github.com> Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com>
- Loading branch information
1 parent
500ae00
commit 97fc0e2
Showing
15 changed files
with
931 additions
and
83 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
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.