Skip to content

oscarraigadevinta/karyon2-healthcheck

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

karyon2-healthcheck

Build Status

Maven Central

This a module for the Netflix framework Karyon which adds an endpoint /healthcheck [GET] that uses HealthCheckHandler service. It works close to karyon-rest-router

Documentation

Simply add this module into Modules specification for your AppServer.

@KaryonBootstrap(name = "AppServer", healthcheck = AlwaysHealthyHealthCheck.class)
@Modules(include = {
    ...
    HealthCheckEndPointModule.class
})
public interface AppServerForTesting {
    ...
}

You will notice that it will use the implementation you set for "healthcheck" into KaryonBootstrap. See AppServerForTesting for further details and a functional implementation.

Gradle

Add dependency as follows:

    compile 'com.scmspain.karyon:karyon-healthcheck:0.1.1'

Please look at the badge from maven central to know which is the latest version for this module.

AppServer.properties

Make sure you do not set a too restrictive base package in order to get HealthCheckController also included and enabled.

com.scmspain.karyon.rest.property.packages=com.scmspain

About

Adds /healthcheck endpoint to your Karyon based app

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%