Skip to content

Instantly share code, notes, and snippets.

DevOps Team Lead at Datadog

Chris Kelner ckelner

DevOps Team Lead at Datadog
View GitHub Profile

Credit Card Regex

  • Amex Card: ^3[47][0-9]{13}$
  • BCGlobal: ^(6541|6556)[0-9]{12}$
  • Carte Blanche Card: ^389[0-9]{11}$
  • Diners Club Card: ^3(?:0[0-5]|[68][0-9])[0-9]{11}$
  • Discover Card: ^65[4-9][0-9]{13}|64[4-9][0-9]{13}|6011[0-9]{12}|(622(?:12[6-9]|1[3-9][0-9]|[2-8][0-9][0-9]|9[01][0-9]|92[0-5])[0-9]{10})$
  • Insta Payment Card: ^63[7-9][0-9]{13}$
  • JCB Card: ^(?:2131|1800|35\d{3})\d{11}$
  • KoreanLocalCard: ^9[0-9]{15}$
ckelner /
Last active Jan 3, 2018
Testing reporting mysql metrics from a remote host from two different hosts running the datadog agent (3 hosts total, one MySQL, two dd-agents)

Datadog: 1 MySQL reported by 2 hosts

View gist:a895af1c9e1b8bf11367a220a9529692
Near the office: $$$$ $$ $$
Venturing a bit further away from the office: $$ $$
And even further away:
ckelner /
Last active Nov 27, 2020 — forked from MikeSchuette/
Understanding Kubernetes in 10 minutes - By Mike Schuette

Understanding Kubernetes in 10 minutes

Original document can be found here; written by Mike Schuette.

This document provides a rapid-fire overview of Kubernetes concepts, vocabulary, and operations. The target audience is anyone who runs applications in a cloud environment today, and who wants to understand the basic mechanics of a Kubernetes cluster. The goal is that within 10 minutes, managers who read this should be able to listen in on a Kubernetes conversation and follow along at a high level, and engineers should be ready to deploy a sample app to a toy cluster of their own.

This orientation doc was written because the official Kubernetes docs are a great reference, but they present a small cliff to climb for newcomers.

If you want to understand why you should consider running Kubernetes, see the official Kubernetes conceptual overview document. This doc

ckelner /
Created Aug 11, 2017
Monitoring SonarQube JVM/JMX metrics with Datadog


This was a quick hack to get Datadog Java/JMX monitoring working with Sonar.


  • Install docker


ckelner /
Last active Oct 5, 2020
Using the Datadog Ansible integration with Ansible Tower

Datadog and Ansible Tower

This doc explains the nuances of using the Datadog Ansible Integration with Ansible Tower.

Ansible Setup

In a directory of your choosing, run the following commands:

  • vagrant init ansible/tower
  • vagrant up --provider virtualbox
  • vagrant ssh

Monitor how many more api calls your git token has

Queries a Github Api rate_limit to find out how close you are to hitting your rate limit. Great for build servers when your not sure why something broke.

Use to create graphs like: Graph or you can display multiple values on a single graph: Graph2


Plugins come with a YAML file and a python file. The YAML file is the

ckelner /
Last active Jun 5, 2017
Bluemix/SL Data centers
  • ams01 : Amsterdam 1
  • ams03 : Amsterdam 3
  • che01 : Chennai 1
  • dal01 : Dallas 1
  • dal10 : Dallas 10
  • dal12 : Dallas 12
  • dal02 : Dallas 2
  • dal05 : Dallas 5
  • dal06 : Dallas 6
  • dal07 : Dallas 7
ckelner / slcli_output.txt
Last active Jun 13, 2017
Output from running `slcli hardware create-options`
View slcli_output.txt
: datacenter : value :
: Amsterdam 1 : ams01 :
: Amsterdam 3 : ams03 :
: Chennai 1 : che01 :
: Dallas 1 : dal01 :
: Dallas 2 : dal02 :
: Dallas 6 : dal06 :
: Dallas 9 : dal09 :
ckelner / bx_cf_marketplace.bash
Created May 31, 2017
Bluemix Cloud Foundry marketplace reference 31 May 2017
View bx_cf_marketplace.bash
service plans description
APIConnect Essentials, Professional*, Enterprise*, Professional 5M*, Enterprise 25M*, Enterprise 1B*, Essentials - Native Create, manage, enforce, and run APIs.
AT&T Flow Designer user-provided