Skip to content

Instantly share code, notes, and snippets.

@ggomagundan
Created October 14, 2015 10:47
Show Gist options
  • Save ggomagundan/6eac99d1736c174cbae0 to your computer and use it in GitHub Desktop.
Save ggomagundan/6eac99d1736c174cbae0 to your computer and use it in GitHub Desktop.
Haproxy And Prometheus
45.63.122.205 MAIN
104.238.151.42 ONE
43.224.34.53 TWO
https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-with-rbenv-on-ubuntu-14-04
HAPROXY
http://itscom.org/archives/4601
https://transloadit.com/blog/2010/08/haproxy-logging/
INSTLAL GOLANG
http://stackoverflow.com/questions/17480044/how-to-install-the-current-version-of-go-in-ubuntu-precise
https://rubygems.org/gems/prometheus-client/versions/0.4.2
https://github.com/prometheus/client_ruby
https://github.com/prometheus/client_ruby/tree/master/examples/rack
PROMETHEUS
https://www.digitalocean.com/community/tutorials/how-to-use-prometheus-to-monitor-your-ubuntu-14-04-server
https://github.com/prometheus/haproxy_exporter/
apt-get install csvtool
./haproxy_exporter -haproxy.scrape-uri="http://localhost:8888/status/;csv" -haproxy.pid-file="/var/run/haproxy.pid" > haproxy_export.log 2>&1 &
https://github.com/prometheus/node_exporter
./prometheus > log_prometheus.log 2>&1 &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment