Skip to content
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

Merged
merged 2 commits into from Apr 7, 2021

Conversation

bruceg
Copy link
Member

@bruceg bruceg commented Apr 7, 2021

Signed-off-by: Bruce Guenter bruce.guenter@datadoghq.com

Signed-off-by: Bruce Guenter <bruce.guenter@datadoghq.com>
@bruceg bruceg added type: bug A code related bug. domain: tests Anything related to Vector's internal tests sink: influxdb_metrics Anything `influxdb_metrics` sink related labels Apr 7, 2021
@bruceg bruceg self-assigned this Apr 7, 2021
@bruceg bruceg requested review from a team, StephenWakely and jszwedko and removed request for a team and StephenWakely April 7, 2021 16:23
Copy link
Member

@jszwedko jszwedko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jszwedko
Copy link
Member

jszwedko commented Apr 7, 2021

Kicked off integration tests: https://github.com/timberio/vector/actions/runs/726783899

@jszwedko
Copy link
Member

jszwedko commented Apr 7, 2021

@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>
@jszwedko
Copy link
Member

jszwedko commented Apr 7, 2021

👍 kicked off new run: https://github.com/timberio/vector/actions/runs/726873636

@jszwedko
Copy link
Member

jszwedko commented Apr 7, 2021

@bruceg integration tests look good.

@bruceg bruceg merged commit 6431d0b into master Apr 7, 2021
@bruceg bruceg deleted the fix-influxdb-tests branch April 7, 2021 19:32
jszwedko added a commit that referenced this pull request May 11, 2021
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>
StephenWakely pushed a commit that referenced this pull request Jul 7, 2021
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>
StephenWakely pushed a commit that referenced this pull request Jul 9, 2021
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>
StephenWakely pushed a commit that referenced this pull request Jul 11, 2021
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>
jszwedko added a commit that referenced this pull request Jul 12, 2021
* 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>
lucperkins pushed a commit that referenced this pull request Jul 19, 2021
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: tests Anything related to Vector's internal tests sink: influxdb_metrics Anything `influxdb_metrics` sink related type: bug A code related bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants