This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Grafana url for mimir datasource | |
http://mimir-nginx.mimir.svc.cluster.local./prometheus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
locals { | |
tags = "${merge( | |
var.env_tags, | |
map( | |
"Name", "${var.name}", | |
"environment", "${var.name}", | |
"terraform", "true", | |
) | |
)}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
"fmt" | |
"os" | |
"path/filepath" | |
"k8s.io/client-go/tools/clientcmd" | |
"k8s.io/client-go/kubernetes" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$(id -u)" = "0" ]; then | |
echo | |
echo "Do not run as root. Run as your user" | |
exit 2 | |
fi | |
usage() { echo "Usage: $0 -t <time needed> <salt-feature-branch>" 1>&2; exit 1; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
''' | |
Support for Sensu | |
.. note:: | |
The functions in here are generic functions designed to work with | |
all sensu. | |
''' | |
import logging | |
import os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import sys | |
import glob | |
import argparse | |
from subprocess import Popen, PIPE, STDOUT | |
try: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto3 | |
import datetime | |
def lambda_handler(event, context): | |
print("Connecting to RDS") | |
client = boto3.client('rds') | |
print("RDS snapshot backups stated at %s...\n" % datetime.datetime.now()) | |
client.create_db_snapshot( | |
DBInstanceIdentifier='web-platform-slave', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
import json | |
def print_json(l): | |
try: | |
j = json.loads(l) | |
print json.dumps(j, indent=4, sort_keys=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"mailer": { | |
"admin_gui": "http://monitor.domain.com/", | |
"mail_from": "sensu@domain.com", | |
"mail_to": "tech@domain.com", | |
"smtp_domain": "domain.com" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install | |
-------------------- | |
1) Put the bigpanda.rb file in /etc/sensu/extensions | |
2) Edit the bigpanda.json file for your API token and place it in /etc/sensu/conf.d | |
3) restart sensu |
NewerOlder