Class DefaultAppMonitoringMetricsService
java.lang.Object
com.atlassian.jira.instrumentation.DefaultAppMonitoringMetricsService
- All Implemented Interfaces:
InitializingComponent
,AppMonitoringMetricsService
public class DefaultAppMonitoringMetricsService
extends Object
implements AppMonitoringMetricsService, InitializingComponent
-
Field Summary
FieldsModifier and TypeFieldDescriptionAll metrics which are added to this array will be able to be filtered via the Monitoring UI.static final String
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultAppMonitoringMetricsService
(com.atlassian.event.api.EventPublisher eventPublisher, FeatureManager featureManager, JmxMetricsExposer jmxMetricsExposer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Called after all the beans are constructed and the ApplicationContext is fully populated.boolean
void
onAnalyticsPluginReadyEvent
(com.atlassian.analytics.api.events.AnalyticsPluginReadyEvent event) void
onFeatureEvent
(FeatureEvent featureEvent) void
onJmxConfigurationChangedEvent
(JmxConfigurationChangedEvent jmxConfigurationChangedEvent) void
setAppMonitoringEnabled
(boolean isEnabled) Set App monitoring should be enabled.
-
Field Details
-
APP_MONITORING_METRIC_NAMES
All metrics which are added to this array will be able to be filtered via the Monitoring UI. This might be useful in case you want an admin to be able to turn off a set of possibly performance impacting metrics. -
ITA_DENY_DARK_FEATURE
- See Also:
-
-
Constructor Details
-
DefaultAppMonitoringMetricsService
public DefaultAppMonitoringMetricsService(@Nonnull com.atlassian.event.api.EventPublisher eventPublisher, @Nonnull FeatureManager featureManager, @Nonnull JmxMetricsExposer jmxMetricsExposer)
-
-
Method Details
-
afterInstantiation
Description copied from interface:InitializingComponent
Called after all the beans are constructed and the ApplicationContext is fully populated. Order of execution is order of bean creation, driven by InitializingComponentProcessor.- Specified by:
afterInstantiation
in interfaceInitializingComponent
- Throws:
Exception
-
setAppMonitoringEnabled
public void setAppMonitoringEnabled(boolean isEnabled) Description copied from interface:AppMonitoringMetricsService
Set App monitoring should be enabled. In the case of disabled JMX, it enables JMX as well.- Specified by:
setAppMonitoringEnabled
in interfaceAppMonitoringMetricsService
- Parameters:
isEnabled
- the desired application monitoring state
-
isAppMonitoringEnabled
public boolean isAppMonitoringEnabled()- Specified by:
isAppMonitoringEnabled
in interfaceAppMonitoringMetricsService
- Returns:
- the current App monitoring state
-
onFeatureEvent
-
onAnalyticsPluginReadyEvent
@EventListener public void onAnalyticsPluginReadyEvent(com.atlassian.analytics.api.events.AnalyticsPluginReadyEvent event) -
onJmxConfigurationChangedEvent
@EventListener public void onJmxConfigurationChangedEvent(JmxConfigurationChangedEvent jmxConfigurationChangedEvent)
-