| `${spring.application.name}` if set, `"spring-boot-application"` otherwise.
| `${spring.application.name}` if set, `"spring-boot-application"` otherwise.
| spring.boot.admin.client.prefer-ip
| spring.boot.admin.client.prefer-ip
| Use the ip-address rather then the hostname in the guessed urls. If `server.address` / `management.address` is set they get used otherwise the IP address returned from `InetAddress.getLocalHost()` gets used.
| Use the ip-address rather then the hostname in the guessed urls. If `server.address` / `management.address` is set, it get used. Otherwise the IP address returned from `InetAddress.getLocalHost()` gets used.
| `false`
| `false`
|===
|===
...
@@ -332,8 +332,10 @@ public class SpringBootAdminApplication {
...
@@ -332,8 +332,10 @@ public class SpringBootAdminApplication {
| `"spring-boot-admin-event-store"`
| `"spring-boot-admin-event-store"`
|===
|===
=== Notifications ===
[[mail-notifications]]
[[mail-notifications]]
=== Mail notifications ===
==== Mail notifications ====
Configure a `JavaMailSender` using `spring-boot-starter-mail` and set a recipient.
Configure a `JavaMailSender` using `spring-boot-starter-mail` and set a recipient.
| `+++"#{application.name} (#{application.id})\nstatus changed from #{from.status} to #{to.status}\n\n#{application.healthUrl}"+++`
| `+++"#{application.name} (#{application.id})\nstatus changed from #{from.status} to #{to.status}\n\n#{application.healthUrl}"+++`
|===
|===
[[pagerduty-notifications]]
[[pagerduty-notifications]]
=== Pagerduty notifications ===
==== Pagerduty notifications ====
To enable pagerduty notifications you just have to add a generic service to your pagerduty-account and set `spring.boot.admin.notify.pagerduty.service-key` to the service-key you received.
To enable pagerduty notifications you just have to add a generic service to your pagerduty-account and set `spring.boot.admin.notify.pagerduty.service-key` to the service-key you received.
.Pagerduty notifications configuration options
.Pagerduty notifications configuration options
...
@@ -423,6 +424,36 @@ To enable pagerduty notifications you just have to add a generic service to your
...
@@ -423,6 +424,36 @@ To enable pagerduty notifications you just have to add a generic service to your
|
|
|===
|===
[reminder-notifactaions]
==== Reminder notifications ====
To get reminders for down/offline applications you can add a `RemindingNotifier` to your `ApplicationContext`. The `RemindingNotifier` uses another `Notifier` as delegate to send the reminders.
.How to configure reminders
[source,java]
----
@Configuration
public class ReminderConfiguration {
@Autowired
private Notifier notifier;
@Bean
@Primary
public RemindingNotifier remindingNotifier() {
RemindingNotifier remindingNotifier = new RemindingNotifier(notifier);
privatefinalstaticStringDEFAULT_SUBJECT="#{application.name} (#{application.id}) is #{to.status}";
privatefinalstaticStringDEFAULT_SUBJECT="#{application.name} (#{application.id}) is #{to.status}";
privatefinalstaticStringDEFAULT_TEXT="#{application.name} (#{application.id})\nstatus changed from #{from.status} to #{to.status}\n\n#{application.healthUrl}";
privatefinalstaticStringDEFAULT_TEXT="#{application.name} (#{application.id})\nstatus changed from #{from.status} to #{to.status}\n\n#{application.healthUrl}";
...
@@ -66,7 +71,7 @@ public class MailNotifier extends AbstractNotifier {
...
@@ -66,7 +71,7 @@ public class MailNotifier extends AbstractNotifier {