Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Prometheus server #1098

Merged
5 commits merged into from
May 12, 2021
Merged

Add Prometheus server #1098

5 commits merged into from
May 12, 2021

Conversation

ghost
Copy link

@ghost ghost commented May 10, 2021

Summary of changes

Adds a Prometheus HTTP server to the forest process to support the collection of metrics.
This PR does not add metrics to forest, it only sets up the metrics scaffolding.

Reference issue to close (if applicable)

Closes #1095

Other information and links

Copy link
Member

@ec2 ec2 left a comment

Choose a reason for hiding this comment

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

Remember to run the license script :p

forest/src/cli/mod.rs Outdated Show resolved Hide resolved
use std::io::prelude::*;
use std::path::PathBuf;
use std::sync::Arc;

Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you for separating these out! I usually do them in the opposite order, though, but either way, it really helps vs mixing them in. I also do similar in Cargo.toml and use # to separate them.

Copy link
Author

Choose a reason for hiding this comment

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

Yeah, I would really like it if this was part of our style guide

@ghost ghost merged commit 36a1865 into main May 12, 2021
@ghost ghost deleted the metrics-server branch May 12, 2021 17:33
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Prometheus Metrics Server
3 participants