CorePlugin extends StagemonitorPlugin { public String getElasticsearchUrlsWithoutAuthenticationInformation() { return elasticsearchUrls.getValueAsSafeString(); } CorePlugin();  CorePlugin(ElasticsearchClient elasticsearchClient); @Override void initializePlugin(InitArguments initArguments); @Override List<Class<? extends StagemonitorPlugin>> dependsOn(); @Override void onShutDown(); MeasurementSession getMeasurementSession(); Metric2Registry getMetricRegistry(); ElasticsearchClient getElasticsearchClient(); GrafanaClient getGrafanaClient(); void setElasticsearchClient(ElasticsearchClient elasticsearchClient); static String getNameOfLocalHost(); boolean isStagemonitorActive(); boolean isInternalMonitoringActive(); long getConsoleReportingInterval(); boolean isReportToJMX(); int getGraphiteReportingInterval(); String getGraphiteHostName(); int getGraphitePort(); String getApplicationName(); String getInstanceName(); String getHostName(); URL getElasticsearchUrl(); Collection<URL> getElasticsearchUrls(); String getElasticsearchUrlsWithoutAuthenticationInformation(); Collection<String> getElasticsearchConfigurationSourceProfiles(); boolean isDeactivateStagemonitorIfEsConfigSourceIsDown(); Collection<MetricName> getExcludedMetricsPatterns(); Collection<String> getDisabledPlugins(); Integer getReloadConfigurationInterval(); Collection<String> getExcludeContaining(); Collection<String> getIncludePackages(); Collection<String> getExcludePackages(); boolean isAttachAgentAtRuntime(); Collection<String> getExcludedInstrumenters(); URL getInfluxDbUrl(); String getInfluxDbDb(); boolean isReportToElasticsearch(); boolean isReportToGraphite(); String getGrafanaUrl(); String getGrafanaApiKey(); int getThreadPoolQueueCapacityLimit(); IndexSelector getIndexSelector(); int getElasticsearchReportingInterval(); Integer getMoveToColdNodesAfterDays(); boolean isOnlyLogElasticsearchMetricReports(); boolean isDebugInstrumentation(); Collection<String> getExportClassesWithName(); Integer getNumberOfReplicas(); Integer getNumberOfShards(); void closeOnShutdown(Closeable closeable); List<URL> getRemotePropertiesConfigUrls(); boolean isDeactivateStagemonitorIfRemotePropertyServerIsDown(); int getDeleteElasticsearchMetricsAfterDays(); String getMetricsIndexTemplate(); boolean isMetricsIndexTemplateDefaultValue(); boolean isInitializeElasticsearch(); HealthCheckRegistry getHealthCheckRegistry(); static final String POOLS_QUEUE_CAPACITY_LIMIT_KEY; }
@Test public void testElasticsearchUrlsBasicAuth() throws Exception { CorePlugin corePlugin = ConfigurationRegistry.builder() .addOptionProvider(new CorePlugin()) .addConfigSource(new SimpleSource("test") .add("stagemonitor.reporting.elasticsearch.url", "http: .build() .getConfig(CorePlugin.class); assertThat(corePlugin.getElasticsearchUrlsWithoutAuthenticationInformation()).isEqualTo("http: }