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 TypeMethodDescriptionvoidCalled after all the beans are constructed and the ApplicationContext is fully populated.booleanvoidonAnalyticsPluginReadyEvent(com.atlassian.analytics.api.events.AnalyticsPluginReadyEvent event) voidonFeatureEvent(FeatureEvent featureEvent) voidonJmxConfigurationChangedEvent(JmxConfigurationChangedEvent jmxConfigurationChangedEvent) voidsetAppMonitoringEnabled(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:InitializingComponentCalled 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:
afterInstantiationin interfaceInitializingComponent- Throws:
Exception
-
setAppMonitoringEnabled
public void setAppMonitoringEnabled(boolean isEnabled) Description copied from interface:AppMonitoringMetricsServiceSet App monitoring should be enabled. In the case of disabled JMX, it enables JMX as well.- Specified by:
setAppMonitoringEnabledin interfaceAppMonitoringMetricsService- Parameters:
isEnabled- the desired application monitoring state
-
isAppMonitoringEnabled
public boolean isAppMonitoringEnabled()- Specified by:
isAppMonitoringEnabledin 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)
-