Class EmbeddedPrometheusBootstrapConfiguration
java.lang.Object
com.playtika.testcontainer.prometheus.EmbeddedPrometheusBootstrapConfiguration
@Configuration
@ConditionalOnExpression("${embedded.containers.enabled:true}")
@AutoConfigureAfter(com.playtika.testcontainer.common.spring.DockerPresenceBootstrapConfiguration.class)
@ConditionalOnProperty(name="embedded.prometheus.enabled",
matchIfMissing=true)
@EnableConfigurationProperties(PrometheusProperties.class)
public class EmbeddedPrometheusBootstrapConfiguration
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.testcontainers.containers.GenericContainer<?>prometheus(org.springframework.core.env.ConfigurableEnvironment environment, PrometheusProperties properties, org.testcontainers.containers.wait.strategy.WaitStrategy prometheusWaitStrategy, Optional<org.testcontainers.containers.Network> network) org.testcontainers.containers.wait.strategy.WaitStrategyprometheusWaitStrategy(PrometheusProperties properties)
-
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, Optional<org.testcontainers.containers.Network> network)
-