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

Set http address for metrics when http service is disable #4175

Merged
merged 3 commits into from
Apr 7, 2022

Conversation

krishung5
Copy link
Contributor

No description provided.

@@ -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";
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated documentation, please review.

tanmayv25
tanmayv25 previously approved these changes Apr 6, 2022
CoderHam
CoderHam previously approved these changes Apr 6, 2022
@krishung5 krishung5 dismissed stale reviews from CoderHam and tanmayv25 via 64a24f5 April 7, 2022 01:40
@krishung5 krishung5 force-pushed the krish-correct-address-for-metrics branch from 3572cb2 to 64a24f5 Compare April 7, 2022 01:40
@krishung5 krishung5 merged commit 069aedf into main Apr 7, 2022
@krishung5 krishung5 deleted the krish-correct-address-for-metrics branch April 7, 2022 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants