Repository navigation
Backfill from OpenMetrics format - #8084
Conversation
Signed-off-by: aSquare14 <[email protected]>
Signed-off-by: aSquare14 <[email protected]>
Signed-off-by: aSquare14 <[email protected]>
Signed-off-by: aSquare14 <[email protected]>
Signed-off-by: aSquare14 <[email protected]>
Signed-off-by: aSquare14 <[email protected]>
Signed-off-by: aSquare14 <[email protected]>
Signed-off-by: aSquare14 <[email protected]>
Signed-off-by: aSquare14 <[email protected]>
Signed-off-by: aSquare14 <[email protected]>
Signed-off-by: aSquare14 <[email protected]>
Signed-off-by: aSquare14 <[email protected]>
Signed-off-by: aSquare14 <[email protected]>
bwplotka
left a comment
There was a problem hiding this comment.
Some initial comments.
Good job, thanks!
beorn7
left a comment
There was a problem hiding this comment.
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:
beorn7
left a comment
There was a problem hiding this comment.
OK, a few more points. Looks like the generally correct approach.
Move backfill from tsdb to promtool directory Signed-off-by: aSquare14 <[email protected]>
Signed-off-by: aSquare14 <[email protected]>
Rename ContenType Signed-off-by: aSquare14 <[email protected]>
Signed-off-by: aSquare14 <[email protected]>
Signed-off-by: aSquare14 <[email protected]>
Signed-off-by: aSquare14 <[email protected]>
|
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 <[email protected]>
Signed-off-by: aSquare14 <[email protected]>
|
@beorn7 @codesome Printing the block metadata is left todo, I do not think I will be able to work on it today. Have resolved other comments except that and this #8084 (comment) . Please feel free to review again. |
bwplotka
left a comment
There was a problem hiding this comment.
Small nits, overall Looks good! 💪
Signed-off-by: aSquare14 <[email protected]>
Signed-off-by: aSquare14 <[email protected]>
Signed-off-by: aSquare14 <[email protected]>
beorn7
left a comment
There was a problem hiding this comment.
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 <[email protected]>
Signed-off-by: aSquare14 <[email protected]>
Signed-off-by: aSquare14 <[email protected]>
Signed-off-by: aSquare14 <[email protected]>
codesome
left a comment
There was a problem hiding this comment.
Lots of nits with 1 small fix in the test :)
Signed-off-by: aSquare14 <[email protected]>
Signed-off-by: aSquare14 <[email protected]>
codesome
left a comment
There was a problem hiding this comment.
I was about to hit merge but found 2 bugs in the last sanity check :)
Signed-off-by: aSquare14 <[email protected]>
Signed-off-by: aSquare14 <[email protected]>
Signed-off-by: aSquare14 <[email protected]>
Signed-off-by: aSquare14 <[email protected]>
|
@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