-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Set http address for metrics when http service is disable #4175
Conversation
@@ -133,6 +133,10 @@ std::unique_ptr<triton::server::HTTPServer> metrics_service_; | |||
bool allow_metrics_ = true; | |||
int32_t metrics_port_ = 8002; | |||
float metrics_interval_ms_ = 2000; | |||
#ifndef TRITON_ENABLE_HTTP | |||
// Need to set http address for metrics when http service is disable | |||
std::string http_address_ = "0.0.0.0"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are assuming the http address and metrics address is always the same? I guess that works fine but I would recommend adding a comment about the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, right now we are using the same address for http and metrics. Comment added, please review. Please also let me know if we want to use a different address for metrics. I can make changes for that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I think for now we can use the same http address for metrics. Let's worry about that only when we have future requests.
For now make sure the docs / help indicates that http address is reused for metrics endpoint as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated documentation, please review.
3572cb2
to
64a24f5
Compare
No description provided.