server-ui-modules.adoc 3.21 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
==== 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>
----

49
. Configure the Turbine server and clusters
50 51 52 53 54 55
+
[source,yml]
.application.yml
----
include::{samples-dir}/spring-boot-admin-sample-eureka/src/main/resources/application.yml[tags=configuration-ui-turbine]
----
56
<1> Configures the service with id `turbine` as Turbine server. URLs are also allowed.
57 58 59 60 61 62 63 64 65

.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`

66 67 68
| spring.boot.admin.turbine.location
| ServiceId or URL (without the `/turbine.stream` path) for the Turbine server. Must be reachable from admin server.
| `"turbine"`
69 70 71 72 73 74 75 76

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

|
|===

77 78
==== Activiti UI Module ====

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

. Add the ui module to your classpath:
+
83
[source,xml,subs="verbatim,attributes"]
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
Johannes Edmeier committed
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
----

==== Login UI Module ====

The Login module just provides you a login page and a logout button.

. 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-login</artifactId>
    <version>{project-version}</version>
</dependency>
115
----