Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

Make the address on which metrics are served by adding a flag `server… #83

Merged
merged 3 commits into from
Dec 11, 2017
Merged

Make the address on which metrics are served by adding a flag `server… #83

merged 3 commits into from
Dec 11, 2017

Conversation

apuchitnis
Copy link
Contributor

…_metrics_address`.

flagHttpTlsPort = sharedflags.Set.Int("server_http_tls_port", 8443, "TCP port to listen on for HTTPS. If gRPC call will hit it will bounce to gRPC handler. If 0, no TLS will be open.")
flagHttpPort = sharedflags.Set.Int("server_http_port", 8080, "TCP port to listen on for HTTP1.1/REST calls for debug endpoints like metrics, flagz page or optional pprof (insecure, but private only IP are allowed). If 0, no insecure HTTP will be open.")
flagBindAddr = sharedflags.Set.String("server_bind_address", "0.0.0.0", "address to bind the server to")
flagMetricsAddress = sharedflags.Set.String("server_metrics_address", "/debug/metrics", "address on which to serve metrics")
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you change "address" to "URL" in both variable and flag name?

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 think path should be the correct name here

flagHttpTlsPort = sharedflags.Set.Int("server_http_tls_port", 8443, "TCP port to listen on for HTTPS. If gRPC call will hit it will bounce to gRPC handler. If 0, no TLS will be open.")
flagHttpPort = sharedflags.Set.Int("server_http_port", 8080, "TCP port to listen on for HTTP1.1/REST calls for debug endpoints like metrics, flagz page or optional pprof (insecure, but private only IP are allowed). If 0, no insecure HTTP will be open.")
flagBindAddr = sharedflags.Set.String("server_bind_address", "0.0.0.0", "address to bind the server to")
flagMetricsAddress = sharedflags.Set.String("server_metrics_path", "/debug/metrics", "path on which to serve metrics")
Copy link
Contributor

Choose a reason for hiding this comment

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

Same with var name (: s/flagMetricsAddress/flagMetricsPath

@apuchitnis apuchitnis closed this Dec 11, 2017
@apuchitnis
Copy link
Contributor Author

Oops accidentally closed.

@apuchitnis apuchitnis reopened this Dec 11, 2017
@bwplotka bwplotka merged commit 1efd44a into improbable-eng:master Dec 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants