-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
Backfill from OpenMetrics format #8084
Conversation
Signed-off-by: aSquare14 <atibhi.a@gmail.com>
Signed-off-by: aSquare14 <atibhi.a@gmail.com>
Signed-off-by: aSquare14 <atibhi.a@gmail.com>
Signed-off-by: aSquare14 <atibhi.a@gmail.com>
Signed-off-by: aSquare14 <atibhi.a@gmail.com>
Signed-off-by: aSquare14 <atibhi.a@gmail.com>
Signed-off-by: aSquare14 <atibhi.a@gmail.com>
Signed-off-by: aSquare14 <atibhi.a@gmail.com>
Signed-off-by: aSquare14 <atibhi.a@gmail.com>
Signed-off-by: aSquare14 <atibhi.a@gmail.com>
Signed-off-by: aSquare14 <atibhi.a@gmail.com>
Signed-off-by: aSquare14 <atibhi.a@gmail.com>
Signed-off-by: aSquare14 <atibhi.a@gmail.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.
Some initial comments.
Good job, thanks!
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.
Just saw that @bwplotka has submitted feedback. I was in the middle of it, but then the dev summit started. I'll just submit my comments so far without further adjusting. (They were mostly nitpicking anyway.) Will then do the rest of my review on top of @bwplotka .
@asquare14 assume that I agree with anything @bwplotka said unless I explicitly say something else. (o:
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.
OK, a few more points. Looks like the generally correct approach.
Move backfill from tsdb to promtool directory Signed-off-by: aSquare14 <atibhi.a@gmail.com>
Signed-off-by: aSquare14 <atibhi.a@gmail.com>
Rename ContenType Signed-off-by: aSquare14 <atibhi.a@gmail.com>
Signed-off-by: aSquare14 <atibhi.a@gmail.com>
Signed-off-by: aSquare14 <atibhi.a@gmail.com>
Signed-off-by: aSquare14 <atibhi.a@gmail.com>
Expanding on ideas about the command structure we just brainstormed during the sync meeting: As discussed, the command should not be Backfilling from rules: As for the other The flag common to both sub-commands is The Since we want to allow multiple rule files for rule backfilling, but only one input file for backfilling from a file, we use a flag for the former but an argument for the latter. |
Signed-off-by: aSquare14 <atibhi.a@gmail.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.
Small nits, overall Looks good! 💪
Signed-off-by: aSquare14 <atibhi.a@gmail.com>
Signed-off-by: aSquare14 <atibhi.a@gmail.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.
Just some comment nits, otherwise this LGTM.
But please, other reviewers, could you quickly doublecheck if your concerns are all addressed?
Signed-off-by: aSquare14 <atibhi.a@gmail.com>
Signed-off-by: aSquare14 <atibhi.a@gmail.com>
Signed-off-by: aSquare14 <atibhi.a@gmail.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.
Lots of nits with 1 small fix in the test :)
Signed-off-by: aSquare14 <atibhi.a@gmail.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.
I was about to hit merge but found 2 bugs in the last sanity check :)
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.
LGTM!
@bwplotka hey there! Im trying to use what you described here: https://grafana.com/blog/2020/09/02/how-were-improving-backfill-methods-to-get-older-data-into-prometheus/ however I wonder what would be the way to import csv nowadays given all these pull request merged. I did noticed this: https://github.com/prometheus/prometheus/blob/main/docs/storage.md but can't find an explicit example of importing a csv file as it was described in your talk/demo session. Thanks a lot !! |
There is no direct way of importing metrics data from CSV yet. As it turned out, CSV is really not very well suited for metrics data, which makes it hard to come up with a good generally useful approach. Having said that, it's still on the agenda, we just didn't do it as the first thing. The linked design doc has a bunch of concerns about CSV in the discussion. Contributions are welcome, but best to be discussed via the community channels first. (Questions and discussions on a closed GH PR easily get lost.) |
Related PR : #7586
Design Document here