New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(influxdb_metrics sink): Fix formatting of timestamps in tests #7036
Conversation
Signed-off-by: Bruce Guenter <bruce.guenter@datadoghq.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Kicked off integration tests: https://github.com/timberio/vector/actions/runs/726783899 |
@bruceg it looks like maybe this broke the prometheus tests? https://github.com/timberio/vector/runs/2289716169?check_suite_focus=true |
Signed-off-by: Bruce Guenter <bruce.guenter@datadoghq.com>
👍 kicked off new run: https://github.com/timberio/vector/actions/runs/726873636 |
@bruceg integration tests look good. |
Part of #6330 This adds an `unnest` function to facilitate turning one event that has a field with an array into an array of events. See documentation examples. This is slightly different than the proposed implementation in #7036, but I think it results in a straightforward and easy to understand transformation that works regardless of what type the array elements are. The proposed implementation would have required them to be objects to be able to merge into the parent object. Merging the child element into the parent, if desired, will be possible by stringing together another remap transform that would effectively do `subfield = del(.subfield); . |= subfield`. Or presumably via iteration / mapping when we get to that. Signed-off-by: Jesse Szwedko <jesse@szwedko.me>
Part of #6330 This adds an `unnest` function to facilitate turning one event that has a field with an array into an array of events. See documentation examples. This is slightly different than the proposed implementation in #7036, but I think it results in a straightforward and easy to understand transformation that works regardless of what type the array elements are. The proposed implementation would have required them to be objects to be able to merge into the parent object. Merging the child element into the parent, if desired, will be possible by stringing together another remap transform that would effectively do `subfield = del(.subfield); . |= subfield`. Or presumably via iteration / mapping when we get to that. Signed-off-by: Jesse Szwedko <jesse@szwedko.me>
Part of #6330 This adds an `unnest` function to facilitate turning one event that has a field with an array into an array of events. See documentation examples. This is slightly different than the proposed implementation in #7036, but I think it results in a straightforward and easy to understand transformation that works regardless of what type the array elements are. The proposed implementation would have required them to be objects to be able to merge into the parent object. Merging the child element into the parent, if desired, will be possible by stringing together another remap transform that would effectively do `subfield = del(.subfield); . |= subfield`. Or presumably via iteration / mapping when we get to that. Signed-off-by: Jesse Szwedko <jesse@szwedko.me>
Part of #6330 This adds an `unnest` function to facilitate turning one event that has a field with an array into an array of events. See documentation examples. This is slightly different than the proposed implementation in #7036, but I think it results in a straightforward and easy to understand transformation that works regardless of what type the array elements are. The proposed implementation would have required them to be objects to be able to merge into the parent object. Merging the child element into the parent, if desired, will be possible by stringing together another remap transform that would effectively do `subfield = del(.subfield); . |= subfield`. Or presumably via iteration / mapping when we get to that. Signed-off-by: Jesse Szwedko <jesse@szwedko.me>
* enhancement(remap): Add unnest function Part of #6330 This adds an `unnest` function to facilitate turning one event that has a field with an array into an array of events. See documentation examples. This is slightly different than the proposed implementation in #7036, but I think it results in a straightforward and easy to understand transformation that works regardless of what type the array elements are. The proposed implementation would have required them to be objects to be able to merge into the parent object. Merging the child element into the parent, if desired, will be possible by stringing together another remap transform that would effectively do `subfield = del(.subfield); . |= subfield`. Or presumably via iteration / mapping when we get to that. Signed-off-by: Jesse Szwedko <jesse@szwedko.me> * function argument is path Signed-off-by: Jesse Szwedko <jesse@szwedko.me> * Add documentation link Signed-off-by: Jesse Szwedko <jesse@szwedko.me> * Added more comprehensive typedef Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com> * Revert accidentally committed change Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com> * Change to use as_segments Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com> * Fixed final test case Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com> * Feedback from Spencer Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com> * Implemented feedback from Jean Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com> * Fix typedefs for variables Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com> * Unnest is infallible Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com> * Moved tests to unnest Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com> * Expose types from type_def Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com> * Add timezone Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com> * Fix links Signed-off-by: Jesse Szwedko <jesse@szwedko.me> Co-authored-by: Stephen Wakely <fungus.humungus@gmail.com>
* enhancement(remap): Add unnest function Part of #6330 This adds an `unnest` function to facilitate turning one event that has a field with an array into an array of events. See documentation examples. This is slightly different than the proposed implementation in #7036, but I think it results in a straightforward and easy to understand transformation that works regardless of what type the array elements are. The proposed implementation would have required them to be objects to be able to merge into the parent object. Merging the child element into the parent, if desired, will be possible by stringing together another remap transform that would effectively do `subfield = del(.subfield); . |= subfield`. Or presumably via iteration / mapping when we get to that. Signed-off-by: Jesse Szwedko <jesse@szwedko.me> * function argument is path Signed-off-by: Jesse Szwedko <jesse@szwedko.me> * Add documentation link Signed-off-by: Jesse Szwedko <jesse@szwedko.me> * Added more comprehensive typedef Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com> * Revert accidentally committed change Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com> * Change to use as_segments Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com> * Fixed final test case Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com> * Feedback from Spencer Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com> * Implemented feedback from Jean Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com> * Fix typedefs for variables Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com> * Unnest is infallible Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com> * Moved tests to unnest Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com> * Expose types from type_def Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com> * Add timezone Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com> * Fix links Signed-off-by: Jesse Szwedko <jesse@szwedko.me> Co-authored-by: Stephen Wakely <fungus.humungus@gmail.com> Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com>
Signed-off-by: Bruce Guenter bruce.guenter@datadoghq.com