Skip to content

Commit 32168f2

Browse files
authored
Merge pull request #2533 from RomanLabGit/main
Histogram buckets updated, misplaced metric descriptions fixed
2 parents 978b354 + c74f327 commit 32168f2

File tree

1 file changed

+13
-13
lines changed
  • crates/subspace-farmer/src/bin/subspace-farmer/commands/farm

1 file changed

+13
-13
lines changed

crates/subspace-farmer/src/bin/subspace-farmer/commands/farm/metrics.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ impl FarmerMetrics {
5454
let sub_registry = registry.sub_registry_with_prefix("subspace_farmer");
5555

5656
let auditing_time = Family::<_, _>::new_with_constructor(|| {
57-
Histogram::new(exponential_buckets(0.0001, 2.0, 15))
57+
Histogram::new(exponential_buckets(0.0002, 2.0, 15))
5858
});
5959

6060
sub_registry.register_with_unit(
@@ -65,7 +65,7 @@ impl FarmerMetrics {
6565
);
6666

6767
let proving_time = Family::<_, _>::new_with_constructor(|| {
68-
Histogram::new(exponential_buckets(0.0001, 2.0, 15))
68+
Histogram::new(exponential_buckets(0.0002, 2.0, 15))
6969
});
7070

7171
sub_registry.register_with_unit(
@@ -84,7 +84,7 @@ impl FarmerMetrics {
8484
);
8585

8686
let sector_downloading_time = Family::<_, _>::new_with_constructor(|| {
87-
Histogram::new(exponential_buckets(0.0001, 2.0, 15))
87+
Histogram::new(exponential_buckets(0.1, 2.0, 15))
8888
});
8989

9090
sub_registry.register_with_unit(
@@ -95,7 +95,7 @@ impl FarmerMetrics {
9595
);
9696

9797
let sector_encoding_time = Family::<_, _>::new_with_constructor(|| {
98-
Histogram::new(exponential_buckets(0.0001, 2.0, 15))
98+
Histogram::new(exponential_buckets(0.1, 2.0, 15))
9999
});
100100

101101
sub_registry.register_with_unit(
@@ -106,7 +106,7 @@ impl FarmerMetrics {
106106
);
107107

108108
let sector_writing_time = Family::<_, _>::new_with_constructor(|| {
109-
Histogram::new(exponential_buckets(0.0001, 2.0, 15))
109+
Histogram::new(exponential_buckets(0.0002, 2.0, 15))
110110
});
111111

112112
sub_registry.register_with_unit(
@@ -117,7 +117,7 @@ impl FarmerMetrics {
117117
);
118118

119119
let sector_plotting_time = Family::<_, _>::new_with_constructor(|| {
120-
Histogram::new(exponential_buckets(0.0001, 2.0, 15))
120+
Histogram::new(exponential_buckets(0.1, 2.0, 15))
121121
});
122122

123123
sub_registry.register_with_unit(
@@ -149,7 +149,7 @@ impl FarmerMetrics {
149149

150150
sub_registry.register_with_unit(
151151
"sector_downloaded_counter",
152-
"Number of sectors being downloaded",
152+
"Number of downloaded sectors",
153153
Unit::Other("sectors".to_string()),
154154
sector_downloaded.clone(),
155155
);
@@ -158,7 +158,7 @@ impl FarmerMetrics {
158158

159159
sub_registry.register_with_unit(
160160
"sector_encoding_counter",
161-
"Number of sectors being downloaded",
161+
"Number of sectors being encoded",
162162
Unit::Other("sectors".to_string()),
163163
sector_encoding.clone(),
164164
);
@@ -167,7 +167,7 @@ impl FarmerMetrics {
167167

168168
sub_registry.register_with_unit(
169169
"sector_encoded_counter",
170-
"Number of sectors being downloaded",
170+
"Number of encoded sectors",
171171
Unit::Other("sectors".to_string()),
172172
sector_encoded.clone(),
173173
);
@@ -176,7 +176,7 @@ impl FarmerMetrics {
176176

177177
sub_registry.register_with_unit(
178178
"sector_writing_counter",
179-
"Number of sectors being downloaded",
179+
"Number of sectors being written",
180180
Unit::Other("sectors".to_string()),
181181
sector_writing.clone(),
182182
);
@@ -185,7 +185,7 @@ impl FarmerMetrics {
185185

186186
sub_registry.register_with_unit(
187187
"sector_written_counter",
188-
"Number of sectors being downloaded",
188+
"Number of written sectors",
189189
Unit::Other("sectors".to_string()),
190190
sector_written.clone(),
191191
);
@@ -194,7 +194,7 @@ impl FarmerMetrics {
194194

195195
sub_registry.register_with_unit(
196196
"sector_plotting_counter",
197-
"Number of sectors being downloaded",
197+
"Number of sectors being plotted",
198198
Unit::Other("sectors".to_string()),
199199
sector_plotting.clone(),
200200
);
@@ -203,7 +203,7 @@ impl FarmerMetrics {
203203

204204
sub_registry.register_with_unit(
205205
"sector_plotted_counter",
206-
"Number of sectors being downloaded",
206+
"Number of plotted sectors",
207207
Unit::Other("sectors".to_string()),
208208
sector_plotted.clone(),
209209
);

0 commit comments

Comments
 (0)