public class DatabaseMonitor extends InitializingMonitor
init(com.atlassian.diagnostics.MonitoringService) must be called to begin operationsmonitor| Constructor and Description |
|---|
DatabaseMonitor(DatabaseMonitorConfiguration databaseMonitorConfiguration,
ThreadDumpProducer threadDumpProducer,
PluginFinder pluginFinder) |
| Modifier and Type | Method and Description |
|---|---|
void |
init(MonitoringService monitoringService) |
void |
raiseAlertForConnectionLeak(Instant timestamp,
Instant connectionAcquiredTimestamp,
DatabasePoolDiagnostic diagnostic)
Raises an alert for connection leak.
|
void |
raiseAlertForHighPoolUtilization(Instant timestamp,
DatabasePoolDiagnostic diagnostic)
Raises an alert for high connection pool utilization.
|
void |
raiseAlertForSlowOperation(Instant timestamp,
DatabaseOperationDiagnostic diagnostic)
Raises an alert for slow running database operations.
|
alert, defineIssue, defineIssuepublic DatabaseMonitor(@Nonnull DatabaseMonitorConfiguration databaseMonitorConfiguration, @Nonnull ThreadDumpProducer threadDumpProducer, @Nonnull PluginFinder pluginFinder)
public void init(MonitoringService monitoringService)
init in class InitializingMonitorpublic void raiseAlertForConnectionLeak(@Nonnull Instant timestamp, @Nonnull Instant connectionAcquiredTimestamp, @Nonnull DatabasePoolDiagnostic diagnostic)
timestamp - the timestamp to be used on the alertconnectionAcquiredTimestamp - the connection acquisition timestampdiagnostic - the diagnostic detailspublic void raiseAlertForHighPoolUtilization(@Nonnull Instant timestamp, @Nonnull DatabasePoolDiagnostic diagnostic)
timestamp - the timestamp to be used on the alertdiagnostic - the snapshot of the database poolpublic void raiseAlertForSlowOperation(@Nonnull Instant timestamp, @Nonnull DatabaseOperationDiagnostic diagnostic)
timestamp - the timestamp to be used on the alertdiagnostic - the slow running queryCopyright © 2017–2019 Atlassian. All rights reserved.