From 57ec2d860eeeae83aaf8d8f67f86c1ea4d26c05a Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Mon, 11 Mar 2024 17:51:03 +0800 Subject: [PATCH] show nothing was returned Signed-off-by: Adrian Cole --- charts/zipkin/templates/tests/test-connection.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/zipkin/templates/tests/test-connection.yaml b/charts/zipkin/templates/tests/test-connection.yaml index ac855e6..ccf05a7 100644 --- a/charts/zipkin/templates/tests/test-connection.yaml +++ b/charts/zipkin/templates/tests/test-connection.yaml @@ -49,6 +49,11 @@ spec: {{- if .Values.serviceMonitor.enabled }} # We should be able to read back statistics from Prometheus. This proves the serviceMonitor # was fully configured, including any labels needed by Prometheus' serviceMonitorSelector. + - name: get-scrape-endpoint + image: 'ghcr.io/openzipkin/alpine:3.19.1' + command: [ '/bin/sh', '-c' ] + # Temporary: just showing there is data + args: [ 'wget -q -O - http://{{ include "zipkin.fullname" . }}:{{ .Values.service.port }}/prometheus' ] - name: get-prometheus-query image: 'ghcr.io/openzipkin/alpine:3.19.1' command: [ '/bin/sh', '-c' ] @@ -56,6 +61,6 @@ spec: # This uses "prometheus-operated" in the "ci-monitoring" namespace in helmfile.yaml. # Note: The query API returns HTTP 200 on empty, so we grep to ensure something returned. # See https://prometheus.io/docs/prometheus/latest/querying/api/ - args: [ 'sleep 5 && wget -q -O - http://prometheus-operated.ci-monitoring.svc.cluster.local:9090/api/v1/query?query=http_server_requests_seconds_max | grep zipkin' ] + args: [ 'sleep 5 && wget -q -O - http://prometheus-operated.ci-monitoring.svc.cluster.local:9090/api/v1/query?query=http_server_requests_seconds_max' ] {{- end }} restartPolicy: Never