You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+79-16Lines changed: 79 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,27 @@
1
1
# UNITYMETRICS
2
2
3
-
Unitymetrics is a tool written in Go for collecting metrics from a Dell EMC Unity array and translating them in InfluxDB's line protocol.
3
+
Unitymetrics is a tool written in Go for collecting usage and performance metrics from a Dell EMC Unity array and translating them in InfluxDB's line protocol.
4
4
5
-
It can be use to send metrics in a InfluxDB database with the help of Telegraf.
In the Unity API, metrics are define by a path. For example, if you want to collect the remaining memory available on the storage processors, you'll have to use the path `sp.*.memory.summary.freeBytes`.
13
+
In the Unity API, metrics are define by a path. For example, if you want to collect the remaining memory available on the storage processors, you'll have to use the path `sp.*.memory.summary.freeBytes`.
10
14
11
15
You can find a list of the metrics [here](https://gist.github.com/equelin/37486519972f8161c480f47ae5904390).
12
16
13
17
If you look at the different path, you will figure that some of them contains `*` or `+` characters.
14
18
15
19
When there is a `*` in the path, you can use the path as-is in your request, the `*` will be automatically replaced with all the possibilities. For example, if you want to use the path `sp.*.memory.summary.freeBytes`. The API will interpret it as if you were requesting the free memory for the SPA and the SPB. If you need this information only for one of the SPs, you can use the path `sp.spa.memory.summary.freeBytes`
16
20
17
-
When there is a `+` in the path, you have to replace it with the relevant item by yourself before requesting the API. For example, if you want to retrieve the CPU utilization of the SPA, you have to modify the path `kpi.sp.+.utilization` like this `kpi.sp.spa.utilization`
21
+
When there is a `+` in the path, you can replace it with the relevant item by yourself before requesting the API or by a `*` for breaking the results by this item. For example, if you want to specifically retrieve the CPU utilization of the SPA, you have to modify the path `kpi.sp.+.utilization` like this `kpi.sp.spa.utilization`.
18
22
19
23
## How to install it
24
+
20
25
### From prebuilt release
21
26
22
27
You can find prebuilt unitymetrics binaries on the [releases page](https://github.com/equelin/unitymetrics/releases).
@@ -53,26 +58,32 @@ You can build unitymetrics using:
53
58
54
59
See usage with:
55
60
56
-
```
61
+
```bash
57
62
./unitymetrics -h
58
63
```
59
64
60
-
####Run a Dell Unity metrics collection with the default metrics and a sampling interval
65
+
### Run a Dell EMC Unity metrics collection for an historical path
# NOTE json only reads numerical measurements, strings and booleans are ignored.
114
+
data_format = "influx"
115
+
116
+
interval = "60s"
117
+
```
118
+
119
+
If needed, you can specify more than one input plugin. It might be useful if you want to gather different statistics with different intervals or if you want to query different arrays.
0 commit comments