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

FEATURE: Export health metrics to Prometheus. #15

Merged
merged 1 commit into from
Aug 20, 2021

Conversation

romanrizzi
Copy link
Member

Adds a health check job and export the result to Prometheus through an event. It uses the recently added ClamAV#accepting_connections?, which sends a ping through a TCP socket.

Copy link

@tgxworld tgxworld left a comment

Choose a reason for hiding this comment

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

I didn't test out the changes locally but the code looks good to me.

Adds a custom health metric and passes it to the Prometheus global collector. It uses the recently added ClamAV#accepting_connections?, which sends a ping through a TCP socket.
@romanrizzi romanrizzi merged commit dfdf26b into main Aug 20, 2021
@romanrizzi romanrizzi deleted the export_health_check branch August 20, 2021 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants