Skip to content

Instantly share code, notes, and snippets.

@jeremyje
Last active July 25, 2016 06:38
Show Gist options
  • Select an option

  • Save jeremyje/629a4bcdba474acb77665a67ff58d939 to your computer and use it in GitHub Desktop.

Select an option

Save jeremyje/629a4bcdba474acb77665a67ff58d939 to your computer and use it in GitHub Desktop.
Build all of Prometheus Binaries from HEAD

Setup the workspace

export GOPATH=${PWD}
mkdir -p src/github.com/prometheus/
cd src/github.com/prometheus/

./download.sh

From non-ARM machines

ls | sort | uniq | while read a; do (cd $a; make build; cd ..) ; done

ARM based machines

ls | sort | uniq | while read a; do (cd $a; cat Makefile | sed "s/GOARCH.*/GOARCH=arm/g">Makefile.new; mv -f Makefile.new Makefile; make build; cd ..) ; done
#!/bin/bash
Github() {
git clone --recursive https://github.com/prometheus/$1.git
}
Github prometheus
Github statsd_exporter
Github graphite_exporter
Github common
Github client_golang
Github promu
Github alertmanager
Github blackbox_exporter
Github collectd_exporter
Github node_exporter
Github jmx_exporter
Github nagios_plugins
Github memcached_exporter
Github haproxy_exporter
Github procfs
Github pushgateway
Github mysqld_exporter
Github snmp_exporter
Github consul_exporter
Github cloudwatch_exporter
Github influxdb_exporter
Github busybox
Github utils
Github prom2json
Github log
Github client_model
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment