Upgrade to Promethus Pushgateway 0.7.0
Closes gh-18418
This commit is contained in:
@@ -129,7 +129,7 @@ class PrometheusMetricsExportAutoConfigurationTests {
|
||||
.withPropertyValues("management.metrics.export.prometheus.pushgateway.enabled=true")
|
||||
.withUserConfiguration(BaseConfiguration.class).run((context) -> {
|
||||
assertThat(output).doesNotContain("Invalid PushGateway base url");
|
||||
hasGatewayURL(context, "http://localhost:9091/metrics/job/");
|
||||
hasGatewayURL(context, "http://localhost:9091/metrics/");
|
||||
});
|
||||
}
|
||||
|
||||
@@ -141,7 +141,7 @@ class PrometheusMetricsExportAutoConfigurationTests {
|
||||
"management.metrics.export.prometheus.pushgateway.base-url=localhost:9090")
|
||||
.withUserConfiguration(BaseConfiguration.class).run((context) -> {
|
||||
assertThat(output).contains("Invalid PushGateway base url").contains("localhost:9090");
|
||||
hasGatewayURL(context, "http://localhost:9090/metrics/job/");
|
||||
hasGatewayURL(context, "http://localhost:9090/metrics/");
|
||||
});
|
||||
}
|
||||
|
||||
@@ -151,7 +151,7 @@ class PrometheusMetricsExportAutoConfigurationTests {
|
||||
.withPropertyValues("management.metrics.export.prometheus.pushgateway.enabled=true",
|
||||
"management.metrics.export.prometheus.pushgateway.base-url=https://example.com:8080")
|
||||
.withUserConfiguration(BaseConfiguration.class)
|
||||
.run((context) -> hasGatewayURL(context, "https://example.com:8080/metrics/job/"));
|
||||
.run((context) -> hasGatewayURL(context, "https://example.com:8080/metrics/"));
|
||||
}
|
||||
|
||||
private void hasGatewayURL(AssertableApplicationContext context, String url) {
|
||||
|
||||
@@ -167,7 +167,7 @@
|
||||
<okhttp3.version>3.14.3</okhttp3.version>
|
||||
<pooled-jms.version>1.0.6</pooled-jms.version>
|
||||
<postgresql.version>42.2.8</postgresql.version>
|
||||
<prometheus-pushgateway.version>0.6.0</prometheus-pushgateway.version>
|
||||
<prometheus-pushgateway.version>0.7.0</prometheus-pushgateway.version>
|
||||
<quartz.version>2.3.1</quartz.version>
|
||||
<querydsl.version>4.2.1</querydsl.version>
|
||||
<rabbit-amqp-client.version>5.7.3</rabbit-amqp-client.version>
|
||||
|
||||
Reference in New Issue
Block a user