Created
February 6, 2025 15:34
-
-
Save hexfusion/4bc57492152b1be8e190cc8ad5dce24d to your computer and use it in GitHub Desktop.
dump prom
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