Skip to content

Instantly share code, notes, and snippets.

View bbetter173's full-sized avatar

Ben Bettridge bbetter173

View GitHub Profile
@bbetter173
bbetter173 / monzo-alertmanager-config.yaml
Created December 20, 2021 06:32 — forked from milesbxf/monzo-alertmanager-config.yaml
Monzo's Alertmanager Slack templates
###################################################
##
## Alertmanager YAML configuration for routing.
##
## Will route alerts with a code_owner label to the slack-code-owners receiver
## configured above, but will continue processing them to send to both a
## central Slack channel (slack-monitoring) and PagerDuty receivers
## (pd-warning and pd-critical)
##
@bbetter173
bbetter173 / Dockerfile
Created November 29, 2021 04:26
Wait for ports a la gitlab-ci-runner
FROM alpine:3.15
RUN apk --no-cache --update add \
bash \
jq \
netcat-openbsd \
skopeo
COPY ./wait-for-it.sh /
COPY ./wait-for-ports.sh /
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
@bbetter173
bbetter173 / gist:f516e11408da30983637
Last active December 1, 2015 23:58 — forked from jonuwz/gist:9864479
controlling freeipa with ruby
#!/opt/puppet/bin/ruby
require 'httpclient'
require 'base64'
require 'gssapi'
require 'json'
module IPAcommon
@@IPAlist_element = {
:hostgroup => 'cn',