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/sh | |
# | |
# Clean sentry queues: kafka, zookeeper and redis | |
# | |
# To make backup: docker-compose run -v $(pwd)/sentry:/sentry-data/backup --rm -T -e SENTRY_LOG_LEVEL=CRITICAL web export > backup.json | |
for svc in zookeeper kafka redis clickhouse self-hosted_sentry-clickhouse-log self-hosted_sentry-kafka-log self-hosted_sentry-zookeeper-log; do | |
data_dir=`docker volume inspect sentry-$svc --format '{{ .Mountpoint }}'` | |
echo "Remove volume and data for sentry-$svc: $data_dir" |
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/python | |
# encoding: utf-8 | |
import requests | |
import sys | |
import logging | |
class SMSRU(object): | |
def __init__(self, api_id): | |
self.api_id = api_id |
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
# encoding: utf-8 | |
import time | |
import re | |
from collections import defaultdict | |
import redis | |
from logster.logster_helper import MetricObject, LogsterParser | |
from logster.logster_helper import LogsterParsingException | |
""" |
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
# see also: http://code.activestate.com/recipes/578150-sending-non-ascii-emails-from-python-3/ | |
import os | |
import smtplib | |
from email.utils import formataddr | |
from email.utils import formatdate | |
from email.utils import COMMASPACE | |
from email.header import Header |