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(metrics): adding messages queue stats #200

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

geekbrother
Copy link
Contributor

@geekbrother geekbrother commented Nov 13, 2023

Description

This PR adds metrics for message queue size and statuses:

  • Current messages queue size in queued state,
  • Current messages queue size in processing state,
  • Counter for messages marked as published.

Queue sizes are collected by polling the database with the count query in a minute interval and storing the result in the observable gauge.
The published counter is populated during the message status update.

Following Grafana panels were added:

Resolves #189

How Has This Been Tested?

Only local smoke test.

Due Diligence

  • Breaking change
  • Requires a documentation update
  • Requires a e2e/integration test update

@geekbrother geekbrother force-pushed the max/feat/observe_queue_count branch from 9830d5c to 9f7f6ba Compare November 14, 2023 22:17
@geekbrother geekbrother merged commit bf24dca into main Nov 15, 2023
13 checks passed
@geekbrother geekbrother deleted the max/feat/observe_queue_count branch November 15, 2023 22:27
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.

chore: add Prometheus and Grafana stats for the new queued approach
2 participants