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 stats for overload manager #4001

Merged
merged 2 commits into from
Aug 1, 2018

Conversation

eziskind
Copy link
Contributor

Add the following stats for monitoring the overload manager (issue #373):

  1. gauge for each resource being monitored (showing pressure as a percent)
  2. gauge for each overload action (0=inactive, 1=active)
  3. counters for skipped and failed resource update attempts

Risk Level: low
Testing: unit tests

Signed-off-by: Elisha Ziskind eziskind@google.com

Signed-off-by: Elisha Ziskind <eziskind@google.com>
Copy link
Member

@mattklein123 mattklein123 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 adding stats!

@@ -31,7 +33,9 @@ class ThresholdTriggerImpl : public OverloadAction::Trigger {

} // namespace

OverloadAction::OverloadAction(const envoy::config::overload::v2alpha::OverloadAction& config) {
OverloadAction::OverloadAction(const envoy::config::overload::v2alpha::OverloadAction& config,
Stats::Scope& stats_scope)
Copy link
Member

Choose a reason for hiding this comment

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

What is the planned lifetime of of this overload action? I assume the manager will be global? Will actions be global also? Just trying to understand which scope this is going to use. Will it be the global scope? If so so we need an "overload." prefix? Will it be per-listener? (Probably not).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actions will be global like the manager so I think it makes sense to use global scope for stats. I'll add an "overload." prefix to the stats names.

@mattklein123 mattklein123 self-assigned this Jul 31, 2018
Signed-off-by: Elisha Ziskind <eziskind@google.com>
Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Looks good, thanks for adding stats!

@mattklein123 mattklein123 merged commit c2f204c into envoyproxy:master Aug 1, 2018
@eziskind eziskind deleted the overloadstats branch August 1, 2018 16:50
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.

None yet

2 participants