Skip to content

Commit deaa77a

Browse files
Add comment about the actix http prometheus server
1 parent 09cc63c commit deaa77a

File tree

1 file changed

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

1 file changed

+2
-0
lines changed

aggregation_mode/gateway/src/http.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ impl GatewayServer {
6161
let port = self.config.port;
6262
let state = self.clone();
6363

64+
// Note: This creates a new Prometheus server different from the one created in GatewayServer::new. The created
65+
// server exposes metrics related to the actix HTTP server, like response codes and response times
6466
let prometheus = PrometheusMetricsBuilder::new("api")
6567
.endpoint("/metrics")
6668
.build()

0 commit comments

Comments
 (0)