Skip to content

Commit 710ff46

Browse files
Remove unnecessary labeling on actix prometheus metrics builder
1 parent 77fc789 commit 710ff46

File tree

1 file changed

+0
-4
lines changed
  • aggregation_mode/gateway/src

1 file changed

+0
-4
lines changed

aggregation_mode/gateway/src/http.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use std::{
2-
collections::HashMap,
32
str::FromStr,
43
time::{Instant, SystemTime, UNIX_EPOCH},
54
};
@@ -62,11 +61,8 @@ impl GatewayServer {
6261
let port = self.config.port;
6362
let state = self.clone();
6463

65-
let mut labels = HashMap::new();
66-
labels.insert("label1".to_string(), "value1".to_string());
6764
let prometheus = PrometheusMetricsBuilder::new("api")
6865
.endpoint("/metrics")
69-
.const_labels(labels)
7066
.build()
7167
.unwrap();
7268

0 commit comments

Comments
 (0)