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

feat: preregister libhoney metrics #716

Merged
merged 1 commit into from
Jun 16, 2023
Merged

feat: preregister libhoney metrics #716

merged 1 commit into from
Jun 16, 2023

Conversation

kentquirk
Copy link
Contributor

Which problem is this PR solving?

Short description of the changes

  • Pre-register two instances of metrics, once for peers and once for upstream.

@kentquirk kentquirk requested a review from a team as a code owner June 16, 2023 17:43
@kentquirk kentquirk added this to the v2.0 milestone Jun 16, 2023
Comment on lines +147 to +153
"queue_length": "gauge",
"queue_overflow": "counter",
"send_errors": "counter",
"send_retries": "counter",
"batches_sent": "counter",
"messages_sent": "counter",
"response_decode_errors": "counter",
Copy link
Contributor

Choose a reason for hiding this comment

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

I am a little worried about keeping this list up-to-date as libhoney changes. Is there any way to expose a "register" method in libhoney to do this work for us?

I don't want to block on this, but would be nice in the future.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I hear that, but libhoney-go is old and really doesn't get new features any more. It did get a dependency bump 2 weeks ago, but the last change before that was last fall. I don't believe anyone but a small number of refinery users cares about this, and the backwards-compatible version of this change is kind of ugly.

@TylerHelmuth
Copy link
Contributor

Accidentally clicked the wrong response lol

@kentquirk kentquirk merged commit cfa217d into main Jun 16, 2023
@kentquirk kentquirk deleted the kent.691 branch June 16, 2023 18:38
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.

The libhoney metrics don't call Register(), so they only report if they are incremented.
2 participants