From 44b601213a96f436513a959906f82f058327120f Mon Sep 17 00:00:00 2001 From: Vaibhav Bhembre Date: Wed, 6 Jan 2016 13:40:25 -0500 Subject: [PATCH 1/2] Add Travis CI hook --- .travis.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..e01a4d5 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,16 @@ +language: go +sudo: required +dist: trusty + +go: + - 1.5 + +before_install: + - sudo apt-get update + - sudo apt-get install -y librados-dev librbd-dev + +install: + - go get github.com/ceph/go-ceph + - go get github.com/prometheus/client_golang/prometheus + +script: go test -v -race ./... From d38bec335b94d422c7e3830d8e1794c20859856c Mon Sep 17 00:00:00 2001 From: Vaibhav Bhembre Date: Wed, 6 Jan 2016 14:09:43 -0500 Subject: [PATCH 2/2] Add Travis, Godoc badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f13ecb9..54872fb 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Ceph Exporter +# Ceph Exporter [![GoDoc](https://godoc.org/github.com/digitalocean/ceph_exporter?status.svg)](https://godoc.org/github.com/digitalocean/ceph_exporter) [![Build Status](https://travis-ci.org/digitalocean/ceph_exporter.svg)](https://travis-ci.org/digitalocean/ceph_exporter) Prometheus exporter that scrapes meta information about a running ceph cluster. All the information gathered from the cluster is done by interacting with the monitors using an appropriate wrapper over `rados_mon_command()`. Hence, no additional setup is necessary other than having a working ceph cluster. ## Dependencies