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

Allow customization of the metrics path #354

Merged

Conversation

QuentinBisson
Copy link
Contributor

Allow configuring promxy's metrics path

Copy link
Owner

@jacksontj jacksontj left a comment

Choose a reason for hiding this comment

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

Thanks for picking up this TODO! :) one minor change requested; but otherwise looks great!

@@ -74,6 +74,8 @@ type cliOpts struct {
WebCORSOriginRegex string `long:"web.cors.origin" description:"Regex for CORS origin. It is fully anchored." default:".*"`
WebReadTimeout time.Duration `long:"web.read-timeout" description:"Maximum duration before timing out read of the request, and closing idle connections." default:"5m"`

MetricsPath string `long:"metrics-path" description:"url path" default:"/metrics"`
Copy link
Owner

Choose a reason for hiding this comment

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

nit: the description here should specify that this is the path for the prometheus metrics endpoint.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My latest change should address that :)

@jacksontj
Copy link
Owner

Perfect, Thanks for the contribution!

@jacksontj jacksontj merged commit 61d7e6e into jacksontj:master Oct 8, 2020
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.

2 participants