@Override public List<Profile> getProfiles(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { List<Profile> results = new ArrayList<>(); for (Map.Entry<Type, ServiceSettings> entry : endpoints.getAllServiceSettings().entrySet()) { ServiceSettings settings = entry.getValue(); if (settings.getMonitored() && settings.getEnabled()) { String serviceName = entry.getKey().getCanonicalName(); String profileName = serviceRegistryProfileName(serviceName); String profilePath = Paths.get(REGISTRY_OUTPUT_PATH, serviceName + ".yml").toString(); ProfileFactory factory = metricRegistryProfileFactoryBuilder.build(settings); results.add(factory.getProfile(profileName, profilePath, deploymentConfiguration, endpoints)); } } String profileName = monitoringProfileName(); String profilePath = Paths.get(CONFIG_OUTPUT_PATH, profileName).toString(); results.add(spinnakerMonitoringDaemonProfileFactory.getProfile(profileName, profilePath, deploymentConfiguration, endpoints)); return results; }
@Override public List<Profile> getProfiles(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { List<Profile> results = new ArrayList<>(); for (Map.Entry<Type, ServiceSettings> entry : endpoints.getAllServiceSettings().entrySet()) { ServiceSettings settings = entry.getValue(); if (settings.getMonitored() && settings.getEnabled()) { String serviceName = entry.getKey().getCanonicalName(); String profileName = serviceRegistryProfileName(serviceName); String profilePath = Paths.get(REGISTRY_OUTPUT_PATH, serviceName + ".yml").toString(); ProfileFactory factory = metricRegistryProfileFactoryBuilder.build(settings); results.add(factory.getProfile(profileName, profilePath, deploymentConfiguration, endpoints)); } } String profileName = monitoringProfileName(); String profilePath = Paths.get(CONFIG_OUTPUT_PATH, profileName).toString(); results.add(spinnakerMonitoringDaemonProfileFactory.getProfile(profileName, profilePath, deploymentConfiguration, endpoints)); return results; }
default List<SidecarService> getSidecars(SpinnakerRuntimeSettings runtimeSettings) { SpinnakerMonitoringDaemonService monitoringService = getMonitoringDaemonService(); ServiceSettings monitoringSettings = runtimeSettings.getServiceSettings(monitoringService); ServiceSettings thisSettings = runtimeSettings.getServiceSettings(getService()); List<SidecarService> result = new ArrayList<>(); if (monitoringSettings.getEnabled() && thisSettings.getMonitored()) { result.add(monitoringService); } return result; }
default List<SidecarService> getSidecars(SpinnakerRuntimeSettings runtimeSettings) { SpinnakerMonitoringDaemonService monitoringService = getMonitoringDaemonService(); ServiceSettings monitoringSettings = runtimeSettings.getServiceSettings(monitoringService); ServiceSettings thisSettings = runtimeSettings.getServiceSettings(getService()); List<SidecarService> result = new ArrayList<>(); if (monitoringSettings.getEnabled() && thisSettings.getMonitored()) { result.add(monitoringService); } return result; }
default List<SidecarService> getSidecars(SpinnakerRuntimeSettings runtimeSettings) { SpinnakerMonitoringDaemonService monitoringService = getMonitoringDaemonService(); ServiceSettings monitoringSettings = runtimeSettings.getServiceSettings(monitoringService); ServiceSettings thisSettings = runtimeSettings.getServiceSettings(getService()); List<SidecarService> result = new ArrayList<>(); if (monitoringSettings.getEnabled() && thisSettings.getMonitored()) { result.add(monitoringService); } return result; }
default List<SidecarService> getSidecars(SpinnakerRuntimeSettings runtimeSettings) { SpinnakerMonitoringDaemonService monitoringService = getMonitoringDaemonService(); List<SidecarService> result = new ArrayList<>(); if (monitoringService == null) { return result; } ServiceSettings monitoringSettings = runtimeSettings.getServiceSettings(monitoringService); ServiceSettings thisSettings = runtimeSettings.getServiceSettings(getService()); if (monitoringSettings.getEnabled() && thisSettings.getMonitored()) { result.add(monitoringService); } return result; }
if (monitoringSettings.getEnabled() && serviceSettings.getMonitored()) { serviceSettings = runtimeSettings.getServiceSettings(monitoringService); container = buildContainer(monitoringService.getServiceName(), serviceSettings, configSources, deploymentEnvironment, description);
if (monitoringSettings.getEnabled() && serviceSettings.getMonitored()) { serviceSettings = runtimeSettings.getServiceSettings(monitoringService); container = buildContainer(monitoringService.getServiceName(), serviceSettings, configSources, deploymentEnvironment, description);