airtai / faststream

FastStream is a powerful and easy-to-use Python framework for building asynchronous services interacting with event streams such as Apache Kafka, RabbitMQ, NATS and Redis.
https://faststream.airt.ai/latest/
Apache License 2.0
2.52k stars 128 forks source link

Feature: add K8S probes checker API #1181

Closed Lancetnik closed 1 month ago

Lancetnik commented 8 months ago

We should provides users with an ability to check application health in a some way. It can be reached by using multiple mechanism, so we can create a base Checker Protocol and use it the following way

app = FastStream(broker)
app.add_checker(
     SocketChecker("/sock"),
     # HTTPChecker(port=8000),
     # ...
)

And check all of them by the same command

faststream probe main:app

So, we can create multiple checkers for various cases and user can implement any checker by itself in the same time

Lancetnik commented 7 months ago

Assigned to @Sehat1137

danb27 commented 6 months ago

I would love this feature! +1

Lancetnik commented 2 months ago

reassigned to @chudomozg