go.d ipfs fix tests (#18074)
Ilya Mashchenko committed
Jul 5, 2024 at 10:43 UTC
1c62a5668824ce94c438cb8dc8cce2dfa80d97e9
3 files changed
+11
-5
src/go/plugin/go.d/modules/ipfs/charts.go
+1
-1
@@ -58,7 +58,7 @@ var (
58
Units: "percent",
59
Fam: "size",
60
Ctx: "ipfs.datastore_space_utilization",
61
- Type: module.Line,
61
+ Type: module.Area,
62
Priority: prioDatastoreSpaceUtilization,
63
Dims: module.Dims{
64
{ID: "used_percent", Name: "used"},
src/go/plugin/go.d/modules/ipfs/ipfs_test.go
-1
@@ -136,7 +136,6 @@ func TestIPFS_Collect(t *testing.T) {
136
"success all queries enabled": {
137
prepare: prepareCaseOkAllQueriesEnabled,
138
wantMetrics: map[string]int64{
139
- "avail": 10000000000,
139
"in": 20113594,
140
"objects": 1,
141
"out": 3113852,
src/go/plugin/go.d/modules/ipfs/metadata.yaml
+10
-3
@@ -187,7 +187,7 @@ modules:
187
- name: ipfs.bandwidth
188
description: IPFS Bandwidth
189
unit: "bytes/s"
190
- chart_type: line
190
+ chart_type: area
191
dimensions:
192
- name: in
193
- name: out
@@ -197,10 +197,16 @@ modules:
197
chart_type: line
198
dimensions:
199
- name: peers
200
+ - name: ipfs.datastore_space_utilization
201
+ description: IPFS Datastore Space Utilization
202
+ unit: "percent"
203
+ chart_type: area
204
+ dimensions:
205
+ - name: used
206
- name: ipfs.repo_size
207
description: IPFS Repo Size
202
- unit: "GiB"
203
- chart_type: area
208
+ unit: "bytes"
209
+ chart_type: line
210
dimensions:
211
- name: size
212
- name: ipfs.repo_objects
@@ -214,4 +220,5 @@ modules:
220
unit: "objects"
221
chart_type: line
222
dimensions:
223
+ - name: pinned
224
- name: recursive_pins