Skip to content

Instantly share code, notes, and snippets.

@rluisr
Created Oct 28, 2019
Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

@rluisr 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