Skip to content

Commit

Permalink
template: Gather the prometheus target metadata during teardown
Browse files Browse the repository at this point in the history
This will let us see the names of all metrics for a run and their
help info.
  • Loading branch information
smarterclayton committed Dec 12, 2019
1 parent 19bd85e commit ad29eda
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ad29eda

Please sign in to comment.