Skip to content

Instantly share code, notes, and snippets.

@rluisr
Created October 28, 2019 09:03
Show Gist options
  • Save rluisr/b865a0851cbe4da871cbaa52ba31376b to your computer and use it in GitHub Desktop.
Save rluisr/b865a0851cbe4da871cbaa52ba31376b to your computer and use it in GitHub Desktop.
retirer all node on Mackerel
!#/bin/bash
set -eu
ids=( $( mkr hosts | jq -r '.[].id' ) )
for id in "${ids[@]}";
do
mkr retire --force ${id}
done
@rluisr
Copy link
Author

rluisr commented Oct 28, 2019

export MACKEREL_APIKEY=

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment