Skip to content

Conversation

ArthurSens
Copy link
Member

@ArthurSens ArthurSens commented Aug 21, 2023

Part of #6541

Implements ingestion of Created Timestamps(prometheus/proposals#29) in the head_chunk. Metadata ingestion will be handled separately.

Copy link
Member

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

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

Nice, good start!

Copy link

@TheSpiritXIII TheSpiritXIII left a comment

Choose a reason for hiding this comment

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

Great start!

@ArthurSens ArthurSens force-pushed the scrape-synthetic-zero branch 3 times, most recently from b89912e to 2b10fc9 Compare September 1, 2023 21:45
@ArthurSens ArthurSens force-pushed the scrape-synthetic-zero branch from 2f4ea3d to 67045d2 Compare September 8, 2023 19:16
@ArthurSens ArthurSens force-pushed the scrape-synthetic-zero branch from 67045d2 to 35ee022 Compare September 15, 2023 21:22
@ArthurSens ArthurSens force-pushed the scrape-synthetic-zero branch from 35ee022 to 4699008 Compare October 4, 2023 20:10
@ArthurSens ArthurSens changed the title Test scraping target with created timestamp Parse and ingest Created Timestamps Oct 4, 2023
@ArthurSens ArthurSens force-pushed the scrape-synthetic-zero branch from 4699008 to c37030d Compare October 6, 2023 16:42
@bboreham
Copy link
Member

Part of #6541

@ArthurSens ArthurSens force-pushed the scrape-synthetic-zero branch 3 times, most recently from a7b7165 to e0d224c Compare October 20, 2023 18:32
@ArthurSens ArthurSens changed the title Parse and ingest Created Timestamps Append Created Timestamps Oct 20, 2023
@ArthurSens ArthurSens force-pushed the scrape-synthetic-zero branch from e0d224c to cc111c9 Compare October 20, 2023 18:41
@bwplotka
Copy link
Member

Nice! We discussed in our meeting to add feature flag and perhaps split this per metric types (:

@ArthurSens ArthurSens force-pushed the scrape-synthetic-zero branch 2 times, most recently from 7dc6a95 to 81217ad Compare October 23, 2023 22:41
@ArthurSens ArthurSens marked this pull request as ready for review October 23, 2023 22:48
@ArthurSens
Copy link
Member Author

Nice! We discussed in our meeting to add feature flag and perhaps split this per metric types (:

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)

@ArthurSens ArthurSens force-pushed the scrape-synthetic-zero branch from 81217ad to 86127f7 Compare October 24, 2023 17:01
Copy link
Member

@bwplotka bwplotka left a 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!

@ArthurSens ArthurSens force-pushed the scrape-synthetic-zero branch 3 times, most recently from 897e963 to 5cefd91 Compare November 29, 2023 15:57
@SuperQ SuperQ requested a review from bwplotka November 30, 2023 14:22
@bwplotka
Copy link
Member

bwplotka commented Dec 6, 2023

Sorry for lag, looking on this now

@bwplotka
Copy link
Member

bwplotka commented Dec 6, 2023

I plan to submit small PR to this PR with the following high-lvl changes:

  • I really think we should rename feature flag to created-timestamp-zero-ingestion and treat future metadata as a separate feature flag. Derisks everything.
  • Test cleanup
  • Mentioning feature flag in our new interface

.. going to gym now though 🙈

@ArthurSens
Copy link
Member Author

ArthurSens commented Dec 6, 2023

  • I really think we should rename feature flag to created-timestamp-zero-ingestion and treat future metadata as a separate feature flag. Derisks everything.

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?

  • Test cleanup

Awesome, thank you ❤️

  • Mentioning feature flag in our new interface

What do you mean here? What interface?

.. going to gym now though 🙈

💪 we should train together next time we see each other 😛

@bwplotka
Copy link
Member

bwplotka commented Dec 6, 2023

Should I send a PR updating the proposal?

No, it's a small tech detail at the end (the name and separation of feature flags).

What do you mean here? What interface?

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.

@bwplotka
Copy link
Member

bwplotka commented Dec 7, 2023

PR @ArthurSens: ArthurSens#1

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).

Copy link
Member

@bwplotka bwplotka left a 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.

Arthur Silva Sens and others added 6 commits December 8, 2023 16:51
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: bwplotka <bwplotka@gmail.com>
Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
@ArthurSens ArthurSens force-pushed the scrape-synthetic-zero branch from 385c860 to a1aabd0 Compare December 8, 2023 20:29
Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
Copy link
Member

@bwplotka bwplotka left a 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>
Copy link
Member

@bwplotka bwplotka left a 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 💪🏽

@bwplotka bwplotka merged commit 5082655 into prometheus:main Dec 11, 2023
@ArthurSens ArthurSens deleted the scrape-synthetic-zero branch December 11, 2023 11:54
fbegyn pushed a commit to fbegyn/prometheus that referenced this pull request Jul 11, 2024
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants