Skip to content

Instantly share code, notes, and snippets.

Avatar

Frederico Marques fredsig

View GitHub Profile
@fredsig
fredsig / prom-docker-thinpool-usage.py
Created Oct 15, 2018
Generates Prometheus metrics for Docker thin pool usage
View prom-docker-thinpool-usage.py
#!/usr/bin/env python
# Generates Prometheus metrics for Docker thin pool usage
import subprocess
import re
import shutil
METRIC_PREFIX = "docker_thinpool"
PROM_DIR = "/tmp"
@fredsig
fredsig / ec2-spot-ecs-drainer.png
Last active May 15, 2020
Lambda function that drains tasks from an ECS instance. To be triggered by EC2 Spot Instance Interruption Warning.