File tree 4 files changed +56
-8
lines changed
4 files changed +56
-8
lines changed Original file line number Diff line number Diff line change 54
54
tag : ${{ github.ref }}
55
55
overwrite : true
56
56
file_glob : true
57
+ upload_release_files :
58
+ runs-on : ubuntu-latest
59
+ steps :
60
+ - uses : actions/checkout@v1
61
+ - name : Upload gluster-metrics-exporter.service to the release
62
+ uses : svenstaro/upload-release-action@v2
63
+ with :
64
+ repo_token : ${{ secrets.GITHUB_TOKEN }}
65
+ file : extra/*.service
66
+ tag : ${{ github.ref }}
67
+ overwrite : true
68
+ file_glob : true
69
+ - name : Upload install.sh script to the release
70
+ uses : svenstaro/upload-release-action@v2
71
+ with :
72
+ repo_token : ${{ secrets.GITHUB_TOKEN }}
73
+ file : extra/install.sh
74
+ tag : ${{ github.ref }}
75
+ overwrite : true
76
+ file_glob : true
Original file line number Diff line number Diff line change 5
5
Download the latest release with the command
6
6
7
7
```
8
- curl -L https://github.com/kadalu/gluster-metrics-exporter/releases/latest/download/gluster-metrics-exporter-`uname -m | sed 's|aarch64|arm64|' | sed 's|x86_64|amd64|'` -o gluster-metrics-exporter
8
+ $ curl -fsSL https://github.com/kadalu/gluster-metrics-exporter/releases/latest/download/install.sh | sudo bash -x
9
9
```
10
10
11
- Make the ` gluster-metrics-exporter ` binary executable.
11
+ Test to ensure the version you installed is up-to-date
12
12
13
13
```
14
- chmod +x ./ gluster-metrics-exporter
14
+ $ gluster-metrics-exporter --version
15
15
```
16
16
17
- Move the binary in to your PATH.
17
+ ## Usage:
18
+
19
+ Start the Gluster Metrics exporter service in all the Storage nodes
18
20
19
21
```
20
- sudo mv ./gluster-metrics-exporter /usr/local/bin/gluster-metrics-exporter
22
+ # systemctl enable gluster-metrics-exporter
23
+ # systemctl start gluster-metrics-exporter
21
24
```
22
25
23
- Test to ensure the version you installed is up-to-date
26
+ Above command picks up the Gluster hostname by running the ` hostname ` command. If the local Gluster hostname is different than create a hostname file in ` /var/lib/glusterd ` .
24
27
25
28
```
26
- $ gluster-metrics-exporter --version
29
+ # echo "server1.example.com" > /var/lib/glusterd/hostname
27
30
```
28
31
29
- ## Usage:
32
+ To fetch the Prometheus compatible Metrics, call the API from any one Storage node.
33
+
34
+ ```
35
+ $ curl http://server1.example.com:9713/metrics
36
+ ```
37
+
38
+ To get the same metrics in JSON format
39
+
40
+ ```
41
+ $ curl http://server1.example.com:9713/metrics.json
42
+ ```
43
+
44
+ ## Manually run the exporter (Without systemd)
45
+
46
+ ```
47
+ # gluster-metrics-exporter
48
+ ```
49
+
50
+ Available options
30
51
31
52
```
32
53
Usage: gluster-metrics-exporter [OPTIONS]
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ curl -fsSL https://github.com/kadalu/gluster-metrics-exporter/releases/latest/download/gluster-metrics-exporter-` uname -m | sed ' s|aarch64|arm64|' | sed ' s|x86_64|amd64|' ` -o /tmp/gluster-metrics-exporter
4
+ curl -fsSL https://github.com/kadalu/gluster-metrics-exporter/releases/latest/download/gluster-metrics-exporter.service -o /tmp/gluster-metrics-exporter.service
5
+
6
+ install -m 700 /tmp/gluster-metrics-exporter.service /lib/systemd/system/
7
+ install /tmp/gluster-metrics-exporter /usr/sbin/gluster-metrics-exporter
You can’t perform that action at this time.
0 commit comments