aboutsummaryrefslogtreecommitdiffstats
path: root/metrics-proxy/src/test/java/ai/vespa/metricsproxy/http/prometheus/PrometheusHandlerTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'metrics-proxy/src/test/java/ai/vespa/metricsproxy/http/prometheus/PrometheusHandlerTest.java')
-rw-r--r--metrics-proxy/src/test/java/ai/vespa/metricsproxy/http/prometheus/PrometheusHandlerTest.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/metrics-proxy/src/test/java/ai/vespa/metricsproxy/http/prometheus/PrometheusHandlerTest.java b/metrics-proxy/src/test/java/ai/vespa/metricsproxy/http/prometheus/PrometheusHandlerTest.java
index b36f521e4ac..fafdb5a2d0c 100644
--- a/metrics-proxy/src/test/java/ai/vespa/metricsproxy/http/prometheus/PrometheusHandlerTest.java
+++ b/metrics-proxy/src/test/java/ai/vespa/metricsproxy/http/prometheus/PrometheusHandlerTest.java
@@ -83,6 +83,12 @@ public class PrometheusHandlerTest extends HttpHandlerTestBase {
assertTrue(dummy0.contains("vespa_service=\"vespa_dummy\""));
}
+ @Test
+ public void response_contains_service_status() {
+ assertTrue(valuesResponse.contains("vespa_dummy_status 1.0"));
+ assertTrue(valuesResponse.contains("vespa_down_service_status 0.0"));
+ }
+
// Find the first line that contains the given string
private String getLine(String raw, String searchString) {
for (var s : raw.split("\\n")) {