From 98b236a7f7bc0b061976e40243e0ff05062fb279 Mon Sep 17 00:00:00 2001 From: "Joshua C. Forest" Date: Mon, 18 Nov 2024 11:27:13 -0500 Subject: [PATCH] Test for the prometheus exporter as well --- .../tests/prometheus_test.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/ci/rstudio-workbench/tests/prometheus_test.yaml b/ci/rstudio-workbench/tests/prometheus_test.yaml index aebb5710..74199d4e 100644 --- a/ci/rstudio-workbench/tests/prometheus_test.yaml +++ b/ci/rstudio-workbench/tests/prometheus_test.yaml @@ -66,3 +66,22 @@ tests: prometheus.io/port: "9108" - exists: path: "spec.template.metadata.annotations.checksum/config-graphite" + - it: should ensure the legacy metrics port is used and that the graphite exporter container exists + template: deployment.yaml + set: + prometheus: + enabled: true + legacy: true + port: 8989 + prometheusExporter: + enabled: true + asserts: + - equal: + path: "spec.template.spec.containers[1].name" + value: "exporter" + - equal: + path: "spec.template.spec.containers[1].ports[0].name" + value: "metrics" + - equal: + path: "spec.template.spec.containers[1].ports[0].containerPort" + value: 9108