Class EmbeddedPrometheusBootstrapConfiguration

java.lang.Object
com.playtika.test.prometheus.EmbeddedPrometheusBootstrapConfiguration

@Configuration @ConditionalOnExpression("${embedded.containers.enabled:true}") @AutoConfigureAfter(com.playtika.test.common.spring.DockerPresenceBootstrapConfiguration.class) @ConditionalOnProperty(name="embedded.prometheus.enabled", matchIfMissing=true) @EnableConfigurationProperties(PrometheusProperties.class) public class EmbeddedPrometheusBootstrapConfiguration extends Object
  • Constructor Details

    • EmbeddedPrometheusBootstrapConfiguration

      public EmbeddedPrometheusBootstrapConfiguration()
  • Method Details

    • prometheusWaitStrategy

      @Bean @ConditionalOnMissingBean(name="prometheusWaitStrategy") public org.testcontainers.containers.wait.strategy.WaitStrategy prometheusWaitStrategy(PrometheusProperties properties)
    • prometheus

      @Bean(name="prometheus", destroyMethod="stop") public org.testcontainers.containers.GenericContainer<?> prometheus(org.springframework.core.env.ConfigurableEnvironment environment, PrometheusProperties properties, org.testcontainers.containers.wait.strategy.WaitStrategy prometheusWaitStrategy)