Skip to content

Commit ad29eda

Browse files
template: Gather the prometheus target metadata during teardown
This will let us see the names of all metrics for a run and their help info.
1 parent 19bd85e commit ad29eda

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ci-operator/templates/openshift/installer/cluster-launch-installer-e2e.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -862,6 +862,7 @@ objects:
862862
863863
echo "Snapshotting prometheus (may take 15s) ..."
864864
queue /tmp/artifacts/metrics/prometheus.tar.gz oc --insecure-skip-tls-verify exec -n openshift-monitoring prometheus-k8s-0 -- tar cvzf - -C /prometheus .
865+
FILTER=gzip queue /tmp/artifacts/metrics/prometheus-target-metadata.json.gz oc --insecure-skip-tls-verify exec -n openshift-monitoring prometheus-k8s-0 -- /bin/bash -c "curl -G http://localhost:9090/api/v1/targets/metadata --data-urlencode 'match_target={instance!=\"\"}'"
865866
866867
echo "Running must-gather..."
867868
mkdir -p /tmp/artifacts/must-gather

0 commit comments

Comments
 (0)