From ad29eda8dd39573e61f56f91c70db1e7e5b7c1b2 Mon Sep 17 00:00:00 2001 From: Clayton Coleman Date: Thu, 12 Dec 2019 17:53:53 -0500 Subject: [PATCH] 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. --- .../openshift/installer/cluster-launch-installer-e2e.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/ci-operator/templates/openshift/installer/cluster-launch-installer-e2e.yaml b/ci-operator/templates/openshift/installer/cluster-launch-installer-e2e.yaml index 2b7c9f5a3aaf..bce6ca497674 100644 --- a/ci-operator/templates/openshift/installer/cluster-launch-installer-e2e.yaml +++ b/ci-operator/templates/openshift/installer/cluster-launch-installer-e2e.yaml @@ -862,6 +862,7 @@ objects: echo "Snapshotting prometheus (may take 15s) ..." queue /tmp/artifacts/metrics/prometheus.tar.gz oc --insecure-skip-tls-verify exec -n openshift-monitoring prometheus-k8s-0 -- tar cvzf - -C /prometheus . + 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!=\"\"}'" echo "Running must-gather..." mkdir -p /tmp/artifacts/must-gather