Last active
April 23, 2021 14:27
-
-
Save hexfusion/3cf87f6cdcb45b19fc4a22bca6fd2d87 to your computer and use it in GitHub Desktop.
dump-prom.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ARTIFACT_DIR=$PWD | |
mkdir -p $ARTIFACT_DIR/metrics | |
echo "Snapshotting prometheus ..." | |
oc --insecure-skip-tls-verify exec -n openshift-monitoring prometheus-k8s-0 -- tar cvzf - -C /prometheus . >$ARTIFACT_DIR/metrics/prometheus.tar.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment