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: report metrics about the test pipeline queues #3213

Merged
merged 2 commits into from Oct 4, 2023

Conversation

mathnogueira
Copy link
Member

This PR adds metrics about the queues in our test pipeline

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

Loom video

https://www.loom.com/share/a316ac8b97a6462a9513fafba8d0101d

Screenshot

image

Comment on lines +88 to +90
q.enqueueCounter.Add(ctx, 1, metric.WithAttributes(
attribute.String("queue.name", q.name),
))
Copy link
Member Author

Choose a reason for hiding this comment

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

Is there any other information available at this moment that we should include in the metric attributes?

@mathnogueira mathnogueira requested review from schoren, danielbdias, xoscar and jorgeepc and removed request for schoren and danielbdias October 3, 2023 23:09
Comment on lines +55 to +57
if namedDriver, ok := driver.(namedDriver); ok {
queue.name = namedDriver.Name()
}
Copy link
Member Author

Choose a reason for hiding this comment

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

This was the way I found to be able to populate the queue name from the postgresQueueDriver channel.

@mathnogueira mathnogueira changed the title feat(server): report metrics about the test pipeline queues feat: report metrics about the test pipeline queues Oct 4, 2023
@mathnogueira mathnogueira merged commit 784ef19 into main Oct 4, 2023
38 checks passed
@mathnogueira mathnogueira deleted the feat/queue-metrics branch October 4, 2023 15:34
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.

None yet

2 participants