python-consul icon indicating copy to clipboard operation
python-consul copied to clipboard

feature request: support grpc health check

Open perkfly opened this issue 7 years ago • 1 comments

consul supports grpc health check, however I could find grpc in python-consul's docs. Could you please implement the grpc health check type?

perkfly avatar Jul 17 '18 03:07 perkfly

You can do it today just by providing a raw json check:

    result = consul_obj.agent.service.register(
            'service',
            address=service_address,
            port=service_port,
            check={
                'id': 'health',
                'name': 'proxy server health check',
                'grpc': '{}:{}'.format(service_address, str(service_port)),
                'interval': '10s'
            }
        )

but yeah, it would be nice to have library support.

mihaipopescu avatar Mar 11 '19 14:03 mihaipopescu