Skip to content

Commit

Permalink
show nothing was returned
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Cole <[email protected]>
  • Loading branch information
Adrian Cole committed Mar 11, 2024
1 parent 33c768f commit 57ec2d8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion charts/zipkin/templates/tests/test-connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,18 @@ 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' ]
# If using a service monitor, wait for the scrape interval and check for a statistic.
# 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

0 comments on commit 57ec2d8

Please sign in to comment.