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 ./... 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