-
Notifications
You must be signed in to change notification settings - Fork 13
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
added endpoint regex for capabilityCheck metric #147
Conversation
main.go
Outdated
for _, e := range capabilityCheck.EndpointBuckets { | ||
r, err := regexp.Compile(e) | ||
if err != nil { | ||
logging.Warn(logger).Log(logging.MessageKey(), "failed to compile regular expression", "regex", e, logging.ErrorKey(), err.Error()) |
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.
do we want to continue starting tr1d1um even when some endpoints were not loaded?
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.
I think so - a metric not configured quite correctly won't stop tr1d1um from doing its main job. What do you think? I'm open to erroring out; I can also change the log to error, to make sure it gets picked up.
Codecov Report
@@ Coverage Diff @@
## master #147 +/- ##
==========================================
+ Coverage 78.01% 78.33% +0.31%
==========================================
Files 11 11
Lines 414 420 +6
==========================================
+ Hits 323 329 +6
+ Misses 90 89 -1
- Partials 1 2 +1
Continue to review full report at Codecov.
|
builds off of xmidt-org/webpa-common#459