Skip to content

Instantly share code, notes, and snippets.

@jhohertz
jhohertz / prometheus-extra-etcd-instance.yaml
Created November 15, 2018 20:55
Enable prometheus monitoring of etcd and etcd-events on kops clusters
# To be used with current stable/prometheus-operator helm chart on kops clusters
# where 4001/4002 ports are blocked from the worker nodes
#
# In you helm, disable etcd monitor by setting kubeEtcd.enabled=false
# Then apply this yaml, and you should see the etcd stats on your main instance
#
apiVersion: monitoring.coreos.com/v1
kind: Prometheus
metadata:
name: prometheus-operator-prometheus-master
@jhohertz
jhohertz / keybase.md
Created September 27, 2019 18:05
keybase.md

Keybase proof

I hereby claim:

  • I am jhohertz on github.
  • I am jhohertz (https://keybase.io/jhohertz) on keybase.
  • I have a public key ASBLDKkvTo4x6VWmoC5JLH_6k3e1bD_xC0snpUZwh10SGwo

To claim this, I am signing this object:

{
"service": {
"name": "hdfs",
"cpus": 0.5,
"mem": 2560,
"heap": 1024,
},
"name_node": {
"cpus": 1,
"mem": 16846,
{
"service": {
"name": "hdfs",
"cpus": 0.5,
"mem": 2048,
"heap": 1024,
"api_port": 11002
},
"name_node": {
"cpus": 1,
@jhohertz
jhohertz / rrset-to-zone.py
Created August 20, 2014 16:11
Quick and dirty script to export route53 resource records to zone format
#!/usr/bin/python
# Script takes the output of:
#
# aws route53 list-resource-record-sets --hosted-zone-id <zone ID> | rrset-to-zone.py
#
# And converts all the standard records to normal DNS zone lines, and everything else, a warning
#
import sys, json, pprint
@jhohertz
jhohertz / create_observable.py
Created August 19, 2014 19:10
pyrx create observable example
#!/usr/bin/python
from __future__ import print_function
from rx import Observable
class RxException(Exception):
pass
def _raise(ex):
raise RxException(ex)