33# gluster_exporter
44Gluster exporter for Prometheus
55
6- ## Installation
6+ ## Installation
77
88```
99go get github.com/ofesseler/gluster_exporter
1010./gluster_exporter
1111```
1212
1313## Usage of ` gluster_exporter `
14- Help is displayed with ` -h ` .
15-
16- | Option | Default | Description
17- | ------------------------ | ------------------- | -----------------
18- | -help | - | Displays usage.
19- | -gluster_executable_path | ` /usr/sbin/gluster ` | Path to gluster executable.
20- | -listen-address | ` :9189 ` | The address to listen on for HTTP requests.
21- | -log.format | ` logger:stderr ` | Set the log target and format. Example: "logger: syslog ?appname=bob&local=7" or "logger: stdout ?json=true"
22- | -log.level | ` info ` | Only log messages with the given severity or above. Valid levels: [ debug, info, warn, error, fatal]
23- | -metrics-path | ` /metrics ` | URL Endpoint for metrics
24- | -profile | ` false ` | When profiling reports in gluster are enabled, set ' -profile true' to get more metrics
14+ Help is displayed with ` -h ` .
15+
16+ | Option | Default | Description
17+ | ------------------------ | ------------------- | -----------------
18+ | -help | - | Displays usage.
19+ | -gluster_executable_path | ` /usr/sbin/gluster ` | Path to gluster executable.
20+ | -listen-address | ` :9189 ` | The address to listen on for HTTP requests.
21+ | -log.format | ` logger:stderr ` | Set the log target and format. Example: "logger: syslog ?appname=bob&local=7" or "logger: stdout ?json=true"
22+ | -log.level | ` info ` | Only log messages with the given severity or above. Valid levels: [ debug, info, warn, error, fatal]
23+ | -metrics-path | ` /metrics ` | URL Endpoint for metrics
24+ | -profile | ` false ` | When profiling reports in gluster are enabled, set ' -profile true' to get more metrics
2525| -version | - | Prints version information
2626| -volumes | ` _all ` | Comma separated volume names: vol1,vol2,vol3. Default is '_ all' to scrape all metrics
2727
2828
29- ## Make
29+ ## Make
3030
3131
3232```
3333build: Go build
3434docker: build and run in docker container
3535
36- ```
36+ ```
3737
3838** build** : runs go build for gluster_exporter
3939
@@ -62,7 +62,7 @@ Commands within the exporter are executed with `--xml`.
6262| peerStatus.peer.connected | Gauge | implemented |
6363
6464### Command: ` gluster volume list `
65- with ` gluster volume info ` this is obsolete
65+ with ` gluster volume info ` this is obsolete
6666
6767| Name | type | impl. state |
6868| -------------- | -------- | ------------|
@@ -73,17 +73,24 @@ with `gluster volume info` this is obsolete
7373
7474| Name | type | impl. state |
7575| -------------------------------------------------- | -------- | ------------|
76- | volProfile.profileOp | Gauge | pending |
76+ | volProfile.profileOp | Gauge | pending |
7777| volProfile.brickCount | Gauge | pending |
7878| volProfile.cumulativeStatus.duration | Count | implemented |
7979| volProfile.cumulativeStatus.totalRead | Count | implemented |
8080| volProfile.cumulativeStatus.totalWrite | Count | implemented |
81- | volProfile.cumulativeStats.fopStats.fop.Name | WRITE, STATFS, FLUSH, OPENDIR, CREATE, LOOKUP, READDIR, FINODELK, ENTRYLK, FXATTROP | pending |
81+ | volProfile.cumulativeStats.fopStats.fop.Name | WRITE, STATFS, FLUSH, OPENDIR, CREATE, LOOKUP, READDIR, FINODELK, ENTRYLK, FXATTROP | pending |
8282| volProfile.cumulativeStats.fopStats.fop.hits | count | pending |
8383| volProfile.cumulativeStats.fopStats.fop.avgLatency | Gauge | pending |
8484| volProfile.cumulativeStats.fopStats.fop.minLatency | Gauge | pending |
8585| volProfile.cumulativeStats.fopStats.fop.maxLatency | Gauge | pending |
8686
87+ ## Troubleshooting
88+ If the following message appears while trying to get some information out of your gluster. Increase scrape interval in ` prometheus.yml ` to at least 30s.
89+
90+ ```
91+ Another transaction is in progress for gv_cluster. Please try again after sometime
92+ ```
93+
8794## Similar Projects
88- glusterfs exporter for prometheus written in rust.
89- - https://github.com/ibotty/glusterfs-exporter
95+ glusterfs exporter for prometheus written in rust.
96+ - https://github.com/ibotty/glusterfs-exporter
0 commit comments