-
Notifications
You must be signed in to change notification settings - Fork 2
Getting Started
Persephone can monitor Spring applications that have Actuator enabled.
There is no direct dependency from applications that are monitored to Persephone. Persephone consumes REST APIs exposed by Actuator features.
Please note that only Spring Boot versions 1.3.x, 1.4.x and 1.5.x are supported.
1. Spring Boot Actuator enabled
Add the following dependency to your POM:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
2. Configure security for Actuator endpoints
- Enable: See Spring documentation
- Disable: set the property
endpoints.sensitive
tofalse
(don't do it in production!).
3. Set property logging.path
or logging.file
This will enable the use of Actuator endpoint GET /logfile
Applications that you want to monitor have to be listed in a CSV file.
If Actuator REST APIs are protected by HTTP Basic Auth, you have to specify the username and password to use in that CSV file (see example below).
1. CSV format
Application Name,Environment,URL,Actuator Auth Scheme,Actuator username,Actuator password
Persephone,dev-secured,http://localhost:9191/actuator,BASIC,admin,admin
Persephone,dev,http://devmachine:9191/actuator,,,
2. Path to the CSV
Set the property persephone.applications.csv
with the path to the CSV file.
Execute the following command:
java -Dpersephone.applications.csv=/path/to/applications.csv -jar persephone-<version>.jar
Or this one if you want to specify the port:
java -Dserver.port=10000 -Dpersephone.applications.csv=/path/to/applications.csv -jar persephone-<version>.jar
That's it! Now just go to http://localhost:8080/.