Microservices: Connection status to external services?

8/24/2019

I've started a new project, and am building my first micro(ish) service. It has a /health endpoint, which currently just replies with HTTP status 200 and a { "status": "OK" } body. My service relies on several other (external) services, and I was wondering if there's a standard I can follow for exposing information about the connection between my services and the external ones? I'd like to not invent my own patterns here if there are industry best practices or standards I can follow.

Something like:

{
  status: 'OK',
  services: [
    { name: 'kafka', status: 'OK' },
    { name: 'twilio', status: 'OK' }
  ]
}

My service will be running in Kubernetes on GCP, if that helps. We use Datadog for observability.

-- Steven
diagnostics
kubernetes
microservices

0 Answers