Skip to content

Instantly share code, notes, and snippets.

@jhohertz
jhohertz / prometheus-extra-etcd-instance.yaml
Created Nov 15, 2018
Enable prometheus monitoring of etcd and etcd-events on kops clusters
View prometheus-extra-etcd-instance.yaml
# 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
View 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:

View options-hdfs-new.json
{
"service": {
"name": "hdfs",
"cpus": 0.5,
"mem": 2560,
"heap": 1024,
},
"name_node": {
"cpus": 1,
"mem": 16846,
View hdfs-options.json
{
"service": {
"name": "hdfs",
"cpus": 0.5,
"mem": 2048,
"heap": 1024,
"api_port": 11002
},
"name_node": {
"cpus": 1,
@jhohertz
jhohertz / rrset-to-zone.py
Created Aug 20, 2014
Quick and dirty script to export route53 resource records to zone format
View rrset-to-zone.py
#!/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 Aug 19, 2014
pyrx create observable example
View create_observable.py
#!/usr/bin/python
from __future__ import print_function
from rx import Observable
class RxException(Exception):
pass
def _raise(ex):
raise RxException(ex)