- docker-compose.yml
version: '3.6'
services:
minio:
image: minio/minio:RELEASE.2020-01-03T19-12-21Z
container_name: minio
volumes:
groups: | |
- name: node_exporter_alerts | |
rules: | |
- alert: Node down | |
expr: up{job="monitoring-pi"} == 0 | |
for: 2m | |
labels: | |
severity: warning | |
annotations: | |
title: Node {{ $labels.instance }} is down |
#!/usr/bin/env bash | |
# set -x | |
if [[ $EUID -ne 0 ]]; then | |
echo "You must be root to run this script" | |
exit 1 | |
fi | |
# Returns all available interfaces, except "lo" and "veth*". |
version: '3.6'
services:
minio:
image: minio/minio:RELEASE.2020-01-03T19-12-21Z
container_name: minio
volumes:
#!/bin/sh | |
# Script to build nginx with lua support. | |
NGINX_VERSION='1.18.0' | |
NGX_DEVEL_KIT_VERSION='0.3.1' | |
LUA_NGINX_MODULE_VERSION='0.10.16rc5' | |
STREAM_LUA_NGINX_MODULE_VERSION='0.0.8rc3' | |
# we use openresty's version of luajit here. |
#!/usr/bin/env bash | |
envs='airhelp-staging airhelp-production ah-test-174206' | |
get_vm_count(){ | |
ENV_NAME="$1" | |
count=$(gcloud --project="$ENV_NAME" compute instances list|grep -v NAME -c) | |
echo "VM count for $ENV_NAME: $count" | |
} |