-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Append Created Timestamps #12733
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
Append Created Timestamps #12733
Conversation
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.
Nice, good start!
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.
Great start!
b89912e
to
2b10fc9
Compare
2f4ea3d
to
67045d2
Compare
67045d2
to
35ee022
Compare
35ee022
to
4699008
Compare
4699008
to
c37030d
Compare
Part of #6541 |
a7b7165
to
e0d224c
Compare
e0d224c
to
cc111c9
Compare
Nice! We discussed in our meeting to add feature flag and perhaps split this per metric types (: |
7dc6a95
to
81217ad
Compare
Feature flag added! I've also run manual tests(example app) and verified that created timestamps are ingested for counters, summaries, and histograms. I don't think we need to split this into one PR for each metric type. Removing draft mode since we should be close to something mergeable, just need to figure out what tests we still lack (feedback/suggestions on what tests to add are welcome) |
81217ad
to
86127f7
Compare
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.
Epic work! Some quick comments, we can talk on our 1:1 later more 💪🏽
Close to be LGTM!
897e963
to
5cefd91
Compare
Sorry for lag, looking on this now |
I plan to submit small PR to this PR with the following high-lvl changes:
.. going to gym now though 🙈 |
I understand the reliability concerns, but sometimes I few like we add too many feature flags for very similar things 😅 Should I send a PR updating the proposal?
Awesome, thank you ❤️
What do you mean here? What interface?
💪 we should train together next time we see each other 😛 |
No, it's a small tech detail at the end (the name and separation of feature flags).
I mean CreatedTimestampAppender. I think I miss the flexibility here. It's up to implementation what will be done (zero injection or metadata or both at some point). Tiny nit. |
I challenged some decisions e.g. where to put validation of CT. I would keep scrape loop as simple as possible. We also need to test appender properly (so TSDB). |
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.
Blocking as some work is still neded.
Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
Changes: * Changed textparse Parser interface for consistency and robustness. * Changed CT interface to be more explicit and handle validation. * Simplified test, change scrapeManager to allow testability. * Added TODOs. Signed-off-by: bwplotka <bwplotka@gmail.com>
Signed-off-by: bwplotka <bwplotka@gmail.com>
Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
385c860
to
a1aabd0
Compare
Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.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.
Epic, one nit, otherwise LGTM (:
Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.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.
We need to update documentation to mention "created-timestamp-zero-ingestion", but we can do that in the next PR.
Thanks @ArthurSens and reviewers 💪🏽
* Append created timestamps. Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com> * Log when created timestamps are ignored Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com> * Proposed changes to Append CT PR. Changes: * Changed textparse Parser interface for consistency and robustness. * Changed CT interface to be more explicit and handle validation. * Simplified test, change scrapeManager to allow testability. * Added TODOs. Signed-off-by: bwplotka <bwplotka@gmail.com> * Updates. Signed-off-by: bwplotka <bwplotka@gmail.com> * Addressed comments. Signed-off-by: bwplotka <bwplotka@gmail.com> * Refactor head_appender test Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com> * Fix linter issues Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com> * Use model.Sample in head appender test Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com> --------- Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com> Signed-off-by: bwplotka <bwplotka@gmail.com> Co-authored-by: bwplotka <bwplotka@gmail.com>
Part of #6541
Implements ingestion of Created Timestamps(prometheus/proposals#29) in the head_chunk. Metadata ingestion will be handled separately.