This repository has been archived by the owner on May 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 49
Health check
mchmielarz edited this page Jan 9, 2015
·
7 revisions
It's nice to know that your application is up and running, isn't it? We monitor our microservices via Zabbix that pings to our controllers. If you want to you can do the same by picking this module.
Annotation @EnableHealthCheck
imports HealthCheckConfiguration , that are registering the following controllers:
- PingController that if you send a GET request to /ping it will respond with OK if it's alive,
- CollaboratorsConnectivityController sending back connection status with other services on every GET request sent to /collaborators
- MicroserviceConfigurationController providing the content of microservice configuration file used by the service
User can fetch the current configuration of a microservice sending GET request to the MicroserviceConfigurationController endpoint. The name of the endpoint is set to microservice.json
by default however it can be changed using endpoints.microservicejson.id
configuration parameter.
If you want to use only this module just add a dependency:
repositories {
jcenter()
}
dependencies {
compile 'com.ofg:micro-infra-spring-base:0.6.0'
}
and enable this feature via annotation:
@Configuration
@EnableHealthCheck
class MyWebAppConfiguration {
}