Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Add /metrics endpoint for Prometheus [MOD-545] #724

Merged
merged 1 commit into from
Oct 6, 2023

Conversation

OmegaJak
Copy link
Contributor

@OmegaJak OmegaJak commented Oct 6, 2023

No description provided.

@@ -18,6 +18,7 @@ actix-multipart = "0.6.0"
actix-cors = "0.6.4"
actix-ws = "0.2.5"
actix-files = "0.6.2"
actix-web-prom = "0.7.0"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of the changes besides this were just auto-formats, do we mind?

@@ -101,6 +107,7 @@ async fn main() -> std::io::Result<()> {
// Init App
HttpServer::new(move || {
App::new()
.wrap(prometheus.clone())
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't play nice with the compression middleware, so I had to put it above it. Didn't investigate why, could if we want.

@Geometrically Geometrically merged commit dfa43f3 into master Oct 6, 2023
9 of 11 checks passed
@Geometrically Geometrically deleted the expose-prometheus-metrics branch October 6, 2023 22:58
thesuzerain pushed a commit that referenced this pull request Dec 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants