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 a configurable http metrics interface #90

Merged
merged 1 commit into from
Nov 6, 2020

Conversation

edevil
Copy link
Contributor

@edevil edevil commented Oct 27, 2020

Expose http endpoint so that metrics can be collected. Only used
for Prometheus metrics for now.

Adresses #89

@edevil edevil force-pushed the metrics_interface branch 3 times, most recently from 896d01e to d0f849d Compare October 27, 2020 17:26
@lornasong lornasong self-assigned this Oct 29, 2020
Copy link
Member

@lornasong lornasong left a comment

Choose a reason for hiding this comment

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

@edevil thanks for all your work here! This feature is looking good. I left a couple of comments and questions.

README.md Outdated Show resolved Hide resolved
agent.go Outdated Show resolved Hide resolved
agent.go Show resolved Hide resolved
agent.go Outdated Show resolved Hide resolved
Copy link
Member

@lornasong lornasong left a comment

Choose a reason for hiding this comment

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

@edevil thanks for your updates here and the conversation. This looks great! I left one last suggestion to add a little more information to the configuration documentation.

README.md Outdated
@@ -242,6 +242,9 @@ https_cert_file = ""
// The client key file to use for talking to HTTPS checks.
https_key_file = ""

// Client address. Example: "127.0.0.1:8080"
Copy link
Member

Choose a reason for hiding this comment

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

I'd like to add a little more information here so that users will know when they should configure this. Maybe something like: "Client address to expose API endpoints. Required in order to expose /metrics endpoint for Prometheus." Feel free to use any other language you prefer!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree, I followed your language suggestion.

Expose http endpoint so that metrics can be collected. Only used
for Prometheus metrics for now.
@edevil edevil force-pushed the metrics_interface branch from 2e210bd to d532578 Compare November 5, 2020 09:55
Copy link
Member

@lornasong lornasong left a comment

Choose a reason for hiding this comment

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

@edevil, thanks for adding the documentation. This looks great. Thanks for contributing this feature!

@lornasong lornasong merged commit 3d682a1 into hashicorp:master Nov 6, 2020
@lornasong lornasong added this to the 0.5.0 milestone Nov 6, 2020
@lornasong lornasong linked an issue Nov 6, 2020 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose HTTP endpoint for metrics scraping (Prometheus)
2 participants