Skip to content
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

Modernize common/check_messages_to_submit #144

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

voetberg
Copy link
Contributor

@voetberg voetberg commented Aug 2, 2024

Add prom pusher, update query to sqla2.0, sort imports and update header

Copy link
Contributor

@dchristidis dchristidis left a comment

Choose a reason for hiding this comment

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

I would recommend waiting for the completion of #133 because I expect my comments will apply to this PR as well.

common/check_messages_to_submit Outdated Show resolved Hide resolved
@voetberg voetberg force-pushed the 129-modern-messages-to-submit branch 2 times, most recently from 41eca34 to ae9d997 Compare August 6, 2024 14:02
Copy link
Contributor

@dchristidis dchristidis left a comment

Choose a reason for hiding this comment

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

Also reminder about the commit message subject.

common/check_messages_to_submit Outdated Show resolved Hide resolved
common/check_messages_to_submit Outdated Show resolved Hide resolved
common/check_messages_to_submit Outdated Show resolved Hide resolved
@voetberg voetberg force-pushed the 129-modern-messages-to-submit branch 2 times, most recently from aa11b84 to 5da363c Compare August 7, 2024 13:18
    * Add prom pusher
    * update to sqla2.0
    * sort imports
    * update header
    * change except to except Exception
@voetberg voetberg force-pushed the 129-modern-messages-to-submit branch from 5da363c to 2517d25 Compare August 7, 2024 13:19
dchristidis
dchristidis previously approved these changes Aug 7, 2024
Copy link
Contributor

@dchristidis dchristidis left a comment

Choose a reason for hiding this comment

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

Excellent. I can merge as soon as we get @ericvaandering’s approval.


with PrometheusPusher() as manager:
(manager.gauge(
"messages_to_submit.queues.messages",
Copy link
Contributor

Choose a reason for hiding this comment

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

Requires further review.

Copy link
Contributor

Choose a reason for hiding this comment

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

This changes the metric value, but is fine for CMS. I think the long-discussed goal is to group things appropriately.

Copy link
Contributor

Choose a reason for hiding this comment

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

Changing the metric name can be acceptable. The problem is that the new metric name is less discoverable than before.

This (and the other two PRs) populate a very inherent metric of the respective daemons: their backlog. So, it’s unconventional to chose a metric name that doesn’t even reference the daemon.

And if the name is changed, then the commit message should very clearly state so.

Copy link
Contributor

Choose a reason for hiding this comment

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

OK. @voetberg let me know if you need help coming up with a better metric name.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay, I was populating the new name based off the job name from the gateway push not the gauge itself. I don't see a problem including the name of the daemon here.

Copy link
Contributor

Choose a reason for hiding this comment

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

Please allow me to give it a bit more thought and get back to you. Once this small kink is ironed out, all three PRs can be merged and we can move on to the remaining probes.

@dchristidis dchristidis dismissed their stale review August 7, 2024 15:44

Uncommunicated metric rename


with PrometheusPusher() as manager:
(manager.gauge(
"messages_to_submit.queues.messages",
Copy link
Contributor

Choose a reason for hiding this comment

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

This changes the metric value, but is fine for CMS. I think the long-discussed goal is to group things appropriately.

hermes_queues_messages -> hermes.queues.messages
@voetberg voetberg self-assigned this Aug 20, 2024
@ericvaandering
Copy link
Contributor

@voetberg is the intention here to change the metric value back to the original?

@voetberg
Copy link
Contributor Author

@ericvaandering It was changed back but replacing '_' with '.' for grouping, I'm just waiting for @dchristidis' feedback

@ericvaandering
Copy link
Contributor

ericvaandering commented Sep 11, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants