guibranco / guibranco/gstraccini-bot-handler

[FEATURE] Add `RabbitMQ` health check

Open
#18 4 comments 1 reaction 0 assignees View on GitHub
♻️ code quality 👷🏼 infrastructure 🕓 medium effort enhancement gitauto good first issue hacktoberfest help wanted
Dominant language
Shell
Stars
1
Forks
0
Avg merge
1m
Merged PRs (30d)
2

Description

Enhance the existing C# ASP.NET API project by adding a RabbitMQ health check. This check will monitor the RabbitMQ service's status and integrate with the existing health checks system.

#### Requirements
- Use the [AspNetCore.HealthChecks.Rabbitmq](https://www.nuget.org/packages/AspNetCore.HealthChecks.Rabbitmq) NuGet package.
- Ensure the RabbitMQ health check is configured alongside the existing health checks without disrupting them.
- The health check endpoint should include the RabbitMQ status in its output.

#### Acceptance Criteria
- [ ] RabbitMQ health check successfully integrates using `AspNetCore.HealthChecks.Rabbitmq`.
- [ ] The health endpoint outputs the status of RabbitMQ alongside the API health.
- [ ] Appropriate error handling for scenarios where RabbitMQ is unavailable.
- [ ] Unit tests cover the RabbitMQ health check implementation.
- [ ] Documentation is updated to reflect the new health check configuration.

#### Notes
- Assume the health check for the API itself is already implemented.
- Ensure that the configuration for RabbitMQ (e.g., connection string) is securely managed (e.g., using environment variables or a configuration provider).

### References
- [RabbitMQ and .NET Core Health Checks](https://gregorbowie.wordpress.com/2020/02/08/rabbitmq-and-net-core-health-checks/)
- https://github.com/Xabaril/AspNetCore.Diagnostics.HealthChecks/issues/480

---

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.