Build your microservices using a microservice chassis, which is a framework that handles cross-cutting concerns
When you build a microservice you must put in place the mechanisms to handle cross-cutting concerns such as logging, externalized configuration, health checks, metrics, service discovery, and circuit breakers. You cannot afford to spend a significant amount of time doing this for each service. Therefore, you should build your microservices using a microservice chassis, which is a framework that handles these cross-cutting concerns.
For a full description of this pattern see Microservice chassis pattern.