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

Health Check Alerts #14

Closed
sv410 opened this issue Oct 9, 2024 · 5 comments
Closed

Health Check Alerts #14

sv410 opened this issue Oct 9, 2024 · 5 comments

Comments

@sv410
Copy link

sv410 commented Oct 9, 2024

Extend health checks to send alerts (e.g., email or Slack notifications) when a backend server becomes unresponsive.
Benefit: Provides insights into system performance, helping to identify bottlenecks and improve troubleshooting.

Copy link

github-actions bot commented Oct 9, 2024

👋 Thank you for raising an issue! We appreciate your effort in helping us improve. Our team will review it shortly. Stay tuned!

@muruga21
Copy link
Owner

muruga21 commented Oct 9, 2024

@sv410 yeah it would be a cool feature.. can you elaborate what you gonna do..?

@sv410
Copy link
Author

sv410 commented Oct 9, 2024

Health Check Function: The healthCheck function iterates through the list of servers, sending an HTTP GET request to each. If a server is down (i.e., the request fails or returns a non-200 status code), it marks the server as down and sends an alert.
Send Alert Function: The sendAlert function uses the gomail package to send an email notification. You can replace this with any other notification service as needed.
Main Function: The main function sets up a ticker to run the health check every 30 seconds.

@muruga21
Copy link
Owner

muruga21 commented Oct 9, 2024

@sv410 Great !

@sv410
Copy link
Author

sv410 commented Oct 12, 2024

#14 completed pls level up if u like the work to level3

@sv410 sv410 closed this as completed Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants