server-ui-modules.adoc 2.71 KB
Newer Older
1 2 3 4 5 6
=== UI Modules ===

Additional to the core UI there are following modules which can be included by adding the jar-file to the classpath:

 - spring-boot-admin-server-ui-activiti
 - spring-boot-admin-server-ui-hystrix
7
 - spring-boot-admin-server-ui-turbine
8 9 10

==== Hystrix UI Module ====

11
The Hystrix module uses the hystrix-dashboard to display the metrics from Hystrix streams.
12 13 14

. Add the ui module to your classpath:
+
15
[source,xml,subs="verbatim,attributes"]
16 17 18 19 20 21 22 23 24
.pom.xml
----
<dependency>
    <groupId>de.codecentric</groupId>
    <artifactId>spring-boot-admin-server-ui-hystrix</artifactId>
    <version>{project-version}</version>
</dependency>
----

25
. Add the `/hystrix.stream` to the proxified endpoints:
26 27 28 29 30 31 32
+
[source,yml]
.application.yml
----
include::{samples-dir}/spring-boot-admin-sample-eureka/src/main/resources/application.yml[tags=configuration-ui-hystrix]
----

33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
==== Turbine UI Module ====

The Turbine module uses the hystrix-dashboard to display the metrics from a Turbine stream. The UI module does not configure Turbine for you. Either you run Turbine as a separate application or integrate it into your Spring Boot Admin application. Please see http://cloud.spring.io/spring-cloud-static/{spring-cloud-version}/#_turbine[Spring Cloud Reference] on setting up Turbine.

. Add the ui module to your classpath:
+
[source,xml,subs="verbatim,attributes"]
.pom.xml
----
<dependency>
    <groupId>de.codecentric</groupId>
    <artifactId>spring-boot-admin-server-ui-turbine</artifactId>
    <version>{project-version}</version>
</dependency>
----

. Configure the Turbine URL and clusters
+
[source,yml]
.application.yml
----
include::{samples-dir}/spring-boot-admin-sample-eureka/src/main/resources/application.yml[tags=configuration-ui-turbine]
----

.Turbine UI Module configuration options
|===
| Property name |Description |Default value

| spring.boot.admin.turbine.enabled
| Enable the Spring Boot Admin backend configuration for Turbine.
| `true`

| spring.boot.admin.turbine.url
| URL to the `turbine.stream`. Must be reachable from the admin server.
|

| spring.boot.admin.turbine.clusters
| List of available Turbine clusters.
| `"default"`

|
|===

76 77
==== Activiti UI Module ====

78
The Activiti module shows information from the `/activti` endpoint.
79 80 81

. Add the ui module to your classpath:
+
82
[source,xml,subs="verbatim,attributes"]
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
.pom.xml
----
<dependency>
    <groupId>de.codecentric</groupId>
    <artifactId>spring-boot-admin-server-ui-activiti</artifactId>
    <version>{project-version}</version>
</dependency>
----

. Add the `/activiti` to the proxified endpoints:
+
[source,yml]
.application.yml
----
spring.boot.admin.routes.endpoints: env,metrics,trace,dump,jolokia,info,configprops,trace,logfile,refresh,flyway,liquibase,heapdump,activiti
----