Search in sources :

Example 1 with PrometheusClient

use of uk.gov.ida.hub.samlsoapproxy.client.PrometheusClient in project verify-hub by alphagov.

the class SamlSoapProxyModule method getPrometheusClientService.

@Provides
@Singleton
private PrometheusClient getPrometheusClientService(Environment environment, SamlSoapProxyConfiguration configConfiguration, MatchingServiceConfigProxy matchingServiceConfigProxy, MatchingServiceHealthChecker matchingServiceHealthChecker) {
    PrometheusClient prometheusClientService = new PrometheusClient(environment, configConfiguration, matchingServiceConfigProxy, matchingServiceHealthChecker);
    prometheusClientService.createMatchingServiceHealthCheckMetrics();
    return prometheusClientService;
}
Also used : PrometheusClient(uk.gov.ida.hub.samlsoapproxy.client.PrometheusClient) Singleton(javax.inject.Singleton) Provides(com.google.inject.Provides)

Aggregations

Provides (com.google.inject.Provides)1 Singleton (javax.inject.Singleton)1 PrometheusClient (uk.gov.ida.hub.samlsoapproxy.client.PrometheusClient)1