forked from vectordotdev/vector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(new_relic sink): Multiple fixes related to metrics (vectordotdev#…
…18151) * Convert tags into attributes. * Decompose metric into parts to reuse tags instead of cloning. * Remove unnecessary blocks. * Set metric type. * Fix field name typo. * Remove unnecessary brackets. * Cargo fmt. * Update src/sinks/new_relic/model.rs Co-authored-by: Bruce Guenter <[email protected]> * Update src/sinks/new_relic/model.rs Co-authored-by: Bruce Guenter <[email protected]> * Fix typo. * Add tests for newly supported metrics. * Simplify metric type cases. * Cargo fmt. * Update to handle new tag model New Relic only accepts key/value tags so we use `iter_single()` here. Signed-off-by: Jesse Szwedko <[email protected]> * PR feedback Signed-off-by: Jesse Szwedko <[email protected]> * refactor * add dropped event metrics * track unsupported metric types as well * feedback * more feedback --------- Signed-off-by: Jesse Szwedko <[email protected]> Co-authored-by: Andreu <[email protected]> Co-authored-by: Bruce Guenter <[email protected]> Co-authored-by: Doug Smith <[email protected]>
- Loading branch information
1 parent
c74a469
commit 953e305
Showing
2 changed files
with
186 additions
and
71 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