I hereby claim:
- I am kpettijohn on github.
- I am kp_ https://keybase.io/kp_ on keybase.
- I have a public key ASDrnQR36gY_YR1HnEw-ckvaiI1g7dO3PZWt3KNS87EV5Ao
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "github.com/google/go-github/v27/github" | |
| flag "github.com/spf13/pflag" | |
| "golang.org/x/oauth2" | |
| "log" | |
| "net/url" |
| [ | |
| { | |
| "labels": { | |
| "alertname": "ServiceHighRequestLatency", | |
| "region": "useast2", | |
| "job": "blackbox", | |
| "protocol": "https", | |
| "service": "www", | |
| "instance": "https://www.example.com" | |
| }, |
https://prometheus.io/docs/prometheus/latest/storage/#operational-aspects
Following the following formula for storage capacity planning:
needed_disk_space = retention_time_seconds * ingested_samples_per_second * bytes_per_sample
| import groovy.json.JsonBuilder | |
| import groovy.json.JsonOutput | |
| def json = new JsonBuilder().plugins {} | |
| def plugins = jenkins.model.Jenkins.instance.getPluginManager().getPlugins() | |
| for (p in plugins){ | |
| j = new JsonBuilder().plugin { | |
| "${p.getShortName()}" "${p.getVersion()}" | |
| } |
| #!/bin/bash | |
| cat $1.txt| \ | |
| sed -E 's/\\n//g'| \ | |
| awk -F "=>" '{print $1}'| \ | |
| rev| \ | |
| cut -c 1-| \ | |
| rev| \ | |
| sed 's/[[:blank:]]//g'| \ | |
| sed -E 's/\\//g'|sed 's/^"//'| \ |
| #!/bin/bash | |
| USER=kp | |
| VAGRANT_VERSION='1.9.1' | |
| plugins="vagrant-libvirt vagrant-mutate vagrant-rekey-ssh" | |
| sudo dnf install -y \ | |
| libxslt-devel \ | |
| libxml2-devel \ | |
| ruby-devel \ |
| #!/bin/bash | |
| # Install | |
| # - Consul agent | |
| # - Prometheus node_exporter | |
| # - Jenkins | |
| curl -O -L -s https://github.com/prometheus/node_exporter/releases/download/v0.13.0-rc.1/node_exporter-0.13.0-rc.1.linux-amd64.tar.gz | |
| curl -O -L -s https://releases.hashicorp.com/consul/0.7.0/consul_0.7.0_linux_amd64.zip | |
| unzip consul_0.7.0_linux_amd64.zip |
| // ghprb 1.29.2 | |
| import java.lang.reflect.Field | |
| import jenkins.model.* | |
| import org.jenkinsci.plugins.ghprb.* | |
| def descriptor = Jenkins.instance.getDescriptorByType(org.jenkinsci.plugins.ghprb.GhprbTrigger.DescriptorImpl.class) | |
| Field auth = descriptor.class.getDeclaredField("githubAuth") | |
| auth.setAccessible(true) |