-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
rds: add config reload time stat for rds #17033
Changes from 4 commits
e689648
fb93b82
76b7b97
3a7bdc7
3da6e9a
781161d
8918683
84053c1
e7e7e41
a7763fc
d799538
3502b60
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -290,6 +290,10 @@ TEST_F(RdsImplTest, Basic) { | |
// Old config use count should be 1 now. | ||
EXPECT_EQ(1, config.use_count()); | ||
EXPECT_EQ(2UL, scope_.counter("foo.rds.foo_route_config.config_reload").value()); | ||
EXPECT_NE(0, scope_ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. could this flake if the test runs in <1ms? If you are just trying to ensure that the gauge exists, you can use findGaugeByString, which is on class TestStore, which is the base class of MockIsolatedStatsStore. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure.. Will change to ensure gauge exists. |
||
.gauge("foo.rds.foo_route_config.config_reload_time", | ||
Stats::Gauge::ImportMode::NeverImport) | ||
.value()); | ||
} | ||
|
||
// validate there will be exception throw when unknown factory found for per virtualhost typed | ||
|
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.
config_reload is only applicable/implemented for RDS/SRDS and VHDS - but added here generically. I followed the same pattern and added this new stat here even though it is implemented only for RDS and SRDS. If it is better to move to rds stats page - I can move.
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.
can you name this stat
config_reload_time_ms
?