I am experimenting with the Skaffold Event API. From a python application I would like to listen to the events over HTTP that are exposed through port 50052 on the /v1/events endpoint.
I have compiled the .proto files to python by roughly following this gRPC guide and I can listen to the events by connecting to the gRPC server on 50051 using the generated code.
I have tried the python library hyper to listen push events through an HTTP2 connection with no luck.
I would like to avoid the overhead of generating code. Is it possible to listen to the Events API through other means?
as per documentation:
Events are API objects and are removed from the apiserver on master one hour after the last occurrence to avoid filling up the master disk. To provide longer history and aggregation capabilities, a third party solution should be installed to capture events.
If that suits your requirements you can try and deploy event exporter to the stack driver
Stack driver provides information about the incidents and other events associated with alerting policies. you can find more information here.
It support also different client library like C#, GO, Java, python ...
In addition:
Please be warned: hyper is in a very early alpha. You will encounter bugs when using it. In addition, there are very many rough edges. With that said, please try it out in your applications: I need your feedback to fix the bugs and file down the rough edges.
Hope this help.