List unhealthy Redis clusters

Show only Redis clusters that are not ALIVE, for a quick health check.

yc managed-redis cluster list --format json | jq -r '.[] | select(.health!="ALIVE") | "\(.name)\t\(.status)\t\(.health)"'

tool
yc32 commands
tags
yccloudmonitoring

More yc commands

  • yc managed-clickhouse cluster list --format json | jq -r '.[] | "\(.name)\t\(.config.version)\t\(.resources.resourcePresetId)"'

    Check ClickHouse versions and presets to find clusters that need an upgrade.

  • yc iam access-key create --service-account-name <name> --format json | jq -r '"AWS_ACCESS_KEY_ID=\(.access_key.key_id)\nAWS_SECRET_ACCESS_KEY=\(.secret)"'

    Create an S3-compatible static key for a service account; the secret is shown only once, so save it right away.

  • aws --endpoint-url=https://storage.yandexcloud.net s3 sync ./dist s3://<name>/<id>/ --delete --exclude '*.map'

    Sync files to a Yandex Cloud bucket through the S3 API; --delete removes objects that no longer exist locally.

  • yc storage bucket list --format json | jq -r '.[] | "\(.name)\t\(.max_size/1073741824)GiB\t\(.default_storage_class)"'

    List buckets with their size limit in GiB and storage class.

  • aws --endpoint-url=https://storage.yandexcloud.net s3api put-bucket-lifecycle-configuration --bucket <name> --lifecycle-configuration '{"Rules":[{"ID":"expire-logs","Status":"Enabled","Filter":{"Prefix":"logs/"},"Expiration":{"Days":30}}]}'

    Delete objects under logs/ after 30 days automatically to save on storage.

all 32 yc commands