common icon indicating copy to clipboard operation
common copied to clipboard

Add openmetrics format parser

Open jyz0309 opened this issue 1 year ago • 10 comments

Ref: prometheus/issue/8932 Add openmetrics protocol decoder, for promtool to support check openmetric protocol

jyz0309 avatar Jul 22 '24 09:07 jyz0309

would love to get your review/opinion about this :-) @beorn7

jyz0309 avatar Jul 22 '24 10:07 jyz0309

This in my review queue (but the queue is long, so if somebody beats me to it, even better).

beorn7 avatar Jul 23 '24 13:07 beorn7

I have reached the beginning of my (unplugged) vacations and didn't get to this. I'm very sorry for that. I'll try to find another reviewer (or will come back to this in about two weeks time).

beorn7 avatar Jul 25 '24 16:07 beorn7

I have updated the code according to the code review comments. PTAL If you have time @ArthurSens

jyz0309 avatar Aug 01 '24 04:08 jyz0309

@ArthurSens I assume you'll take care of the further review. Let me know if you need any help.

beorn7 avatar Aug 08 '24 12:08 beorn7

Yes, I plan to continue the review! But if you find time to also give a review, please do :)

Onboarding at the new job has been very time-consuming. Too many videos to watch, and too many trainings to attend 😅

ArthurSens avatar Aug 08 '24 21:08 ArthurSens

We are clearly both lacking time. Which in turn means we should try even harder to avoid redundant review work. Instead of a parallel review, one of us should do the main review, and only loop in the other where needed (open questions of any kind, tough calls to make, …).

beorn7 avatar Aug 14 '24 12:08 beorn7

@ArthurSens is this still on your queue?

beorn7 avatar Sep 05 '24 10:09 beorn7

@ArthurSens is this still on your queue?

Yes, it is! To be completely honest with you, @jyz0309, I've opened this PR to review quite a few times in the past weeks, but I've been feeling a bit overwhelmed with its size, so I ended up procrastinating the review.

I wonder if we could split this PR into smaller ones, to make the review process smoother and we're able to advance here. What do you think of the idea? Would that be ok?

If we split, we can start with a super simple parser implementing each OpenMetrics feature in parts. For example:

  • First PR: a parser that can parse HELP, TYPE, and UNIT, plus tests that assert this works.
  • Second PR: extend the parser to also parse counters and gauges, not including fancy features like timestamps, exemplars, etc. Tests are also extended and previous tests need to keep passing.
  • Third PR: Let's parse summaries/histograms

etc etc, until we cover all OM features.

What do you think? 🙂

ArthurSens avatar Sep 05 '24 17:09 ArthurSens

@ArthurSens is this still on your queue?

Yes, it is! To be completely honest with you, @jyz0309, I've opened this PR to review quite a few times in the past weeks, but I've been feeling a bit overwhelmed with its size, so I ended up procrastinating the review.

I wonder if we could split this PR into smaller ones, to make the review process smoother and we're able to advance here. What do you think of the idea? Would that be ok?

If we split, we can start with a super simple parser implementing each OpenMetrics feature in parts. For example:

  • First PR: a parser that can parse HELP, TYPE, and UNIT, plus tests that assert this works.
  • Second PR: extend the parser to also parse counters and gauges, not including fancy features like timestamps, exemplars, etc. Tests are also extended and previous tests need to keep passing.
  • Third PR: Let's parse summaries/histograms

etc etc, until we cover all OM features.

What do you think? 🙂

Okay, I will finish this work next week(maybe by next Friday)

jyz0309 avatar Sep 07 '24 05:09 jyz0309

Ping, is this still being worked on?

SuperQ avatar Jan 20 '25 13:01 SuperQ