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

Enhanced queue monitoring script #7

Merged
merged 4 commits into from
Jun 18, 2024
Merged

Enhanced queue monitoring script #7

merged 4 commits into from
Jun 18, 2024

Conversation

juanroesel
Copy link
Collaborator

Closes ZenHubHQ/devops#2293

Plus, it decouples the initialization of MetricsExporter from the instantiation of Llama, making the initialized instance of MetricsExporter a global variable that can be referenced anywhere in the application by running set_metrics_exporter.

@juanroesel juanroesel requested review from m62534 and cwarje June 18, 2024 00:19
@juanroesel juanroesel requested a review from blacklander June 18, 2024 00:40
_queue_metrics = QueueMetrics(**status_dict)
metrics_exporter.log_queue_metrics(_queue_metrics, _labels)

await asyncio.sleep(5) # adds a delay of 5 seconds to avoid overloading the CPU
Copy link

Choose a reason for hiding this comment

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

👍

@juanroesel juanroesel merged commit 4210dd8 into main Jun 18, 2024
13 checks passed
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.

2 participants