Skip to content

Instantly share code, notes, and snippets.

View krogebry's full-sized avatar

Bryan Kroger krogebry

View GitHub Profile
Can you continually answer open-ended questions about the inner workings of your software to explain any anomalous values?
Can you understand what any particular user of your software may be experiencing?
Can you determine the things above even if you have never seen or debugged this particular state or failure before?
Can you determine the things above even if this anomaly has never happened before?
Can you ask arbitrary questions about your system and find answers without needing to predict what those anomalies
would be in advance?
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$2
name: ops
spec:
rules:
- host: ops.fqdn
http:
@krogebry
krogebry / Prometheus
Created December 16, 2021 17:29
Prom and AM
apiVersion: monitoring.coreos.com/v1
kind: Prometheus
metadata:
name: prometheus
spec:
retention: 2w
retentionSize: 40GB
initContainers:
- name: prometheus-data-permission-fix
image: busybox
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: influxdb-backup
spec:
concurrencyPolicy: Allow
failedJobsHistoryLimit: 10
jobTemplate:
spec:
template:
{
"keys": [
{
"name": "blah",
"value": "1234"
},
{
"name": "yada",
"value": "5678"
}
---
kind: Service
apiVersion: v1
metadata:
name: www-trp-gfe-local-bkroger
spec:
ports:
- port: 8080
name: http
protocol: TCP
firewall:
conntrack:
default_timeout: 10m
max_connections: 100000
tcp_timeout: 12m
udp_timeout: 3m
inbound:
- host: any
port: any
proto: any
#!/usr/bin/env python3.8
import re
import csv
import mpu
import json
import time
import pprint
import googlemaps
from datetime import datetime
Address: 1812 VERDUGO HILLS HOSPITAL, GLENDALE, CA
[{'address_components': [{'long_name': '1812',
'short_name': '1812',
'types': ['street_number']},
{'long_name': 'Verdugo Boulevard',
'short_name': 'Verdugo Blvd',
'types': ['route']},
{'long_name': 'San Rafael Hills',
'short_name': 'San Rafael Hills',
'types': ['neighborhood', 'political']},
@krogebry
krogebry / make_objects.py
Last active November 11, 2020 18:21
Mako Mori
---
dashboards:
- name: R Dev
index_name: c-t-dev-1
- name: P Demo
index_name: c-t-demo-7
- name: P Prod
index_name: c-t-prod-1
- name: P Stage
index_name: c-t-stage-0