Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1 from ofesseler/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
ofesseler authored Nov 22, 2016
2 parents 032860e + 38b5846 commit 57cf65f
Show file tree
Hide file tree
Showing 13 changed files with 1,411 additions and 133 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ _testmain.go
*.out

# external packages folder
vendor/
vendor/*
!vendor/vendor.json

.idea/

gluster_exporter
*.tar.gz
14 changes: 14 additions & 0 deletions .promu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
repository:
path: github.com/ofesseler/gluster_exporter
build:
flags: -a -tags netgo
ldflags: |
-X {{repoPath}}/vendor/github.com/prometheus/common/version.Version={{.Version}}
-X {{repoPath}}/vendor/github.com/prometheus/common/version.Revision={{.Revision}}
-X {{repoPath}}/vendor/github.com/prometheus/common/version.Branch={{.Branch}}
-X {{repoPath}}/vendor/github.com/prometheus/common/version.BuildUser={{user}}@{{host}}
-X {{repoPath}}/vendor/github.com/prometheus/common/version.BuildDate={{date "20060102-15:04:05"}}
tarball:
files:
- LICENSE
- NOTICE
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ GO = go
info:
@echo "build: Go build"
@echo "docker: build and run in docker container"
@echo "gotest: run go tests and reformats"

build: gotest
$(GO) build -o gluster_exporter main.go
Expand All @@ -12,4 +13,5 @@ docker: gotest build
docker run --rm --privileged=true -p 9189:9189 -p 24007:24007 -p 24008:24008 -ti -v gluster-test:/data gluster-exporter-test

gotest:
$(GO) fmt
$(GO) test -v .
3 changes: 3 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
THIS SOFTWARE IS PRE ALPHA SO BE CAREFUL

Gluster Exporter
44 changes: 44 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,47 @@ docker: build and run in docker container
**build**: runs go build for gluster_exporter

**docker**: runs docker build and copys new builded gluster_exporter


## Relevant Gluster Metrics
Commands within the exporter are executed with `--xml`.

### Command: `gluster volume info`

| Name | type |
| ------------ | -------- |
| OpErrno | Gauge |
| opRet | Gauge |
| Status | Gauge |
| BrickCount | Gauge |
| Volumes.Count | Gauge |

### Command: `gluster peer status`

| Name | type |
| ------------ | -------- |
| peerStatus.peer.state | Gauge
| peerStatus.peer.connected | Gauge

### Command: `gluster volume list`

| Name | type |
| ------------ | -------- |
| volList.count | Gauge
| volList.volume | string

### Command: `gluster volume profile gv_test info cumulative`

| Name | type |
| ------------ | -------- |
| volProfile.profileOp | Gauge <- kein plan was das soll
| volProfile.brickCount | Gauge
| volProfile.cumulativeStatus.duration | Count
| volProfile.cumulativeStatus.totalRead | Count
| volProfile.cumulativeStatus.totalWrite | Count
| volProfile.cumulativeStats.fopStats.fop.Name | WRITE, STATFS, FLUSH, OPENDIR, CREATE, LOOKUP, READDIR, FINODELK, ENTRYLK, FXATTROP,
| volProfile.cumulativeStats.fopStats.fop.hits | count
| volProfile.cumulativeStats.fopStats.fop.avgLatency | Gauge
| volProfile.cumulativeStats.fopStats.fop.minLatency | Gauge
| volProfile.cumulativeStats.fopStats.fop.maxLatency | Gauge

1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.1.1
Loading

0 comments on commit 57cf65f

Please sign in to comment.