Skip to content

Instantly share code, notes, and snippets.

View evnsio's full-sized avatar

Christopher Evans evnsio

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#---------------------------------------------------------------------
# Incident Escalations with PagerDuty
#---------------------------------------------------------------------
ESCALATE_BUTTON = "escalate-button-id"
PAGE_SPECIALIST_DIALOG = "dialog-page-specialist"
class PagerDutySpecialist(models.Model):
name = models.CharField(max_length=100, unique=True)
import pytest
import os
TEST_CASES = [
("alertname=SomeAlert", "some-alert-receiver"),
("owner=platform severity=warning", "slack-platform-alerts"),
("owner=platform severity=critical", "pagerduty-platform-team"),
("severity=info", "slack-monitoring"),
@evnsio
evnsio / prometheus-2.3-stats.json
Created July 10, 2018 06:22
Grafana Dashboard for Prometheus 2.3.x
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}