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

added endpoint regex for capabilityCheck metric #147

Merged
merged 3 commits into from
Feb 24, 2020

Conversation

kristinapathak
Copy link
Contributor

@kristinapathak kristinapathak added this to In progress in XMiDT via automation Feb 21, 2020
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())
Copy link
Member

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?

Copy link
Contributor Author

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.

tr1d1um.yaml Outdated Show resolved Hide resolved
@codecov-io
Copy link

codecov-io commented Feb 24, 2020

Codecov Report

Merging #147 into master will increase coverage by 0.31%.
The diff coverage is n/a.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
translation/transport.go 88.19% <0%> (+0.25%) ⬆️
translation/transport_utils.go 78.88% <0%> (+0.72%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7ed4dd0...99e6c2d. Read the comment docs.

@kristinapathak kristinapathak merged commit f59e1c7 into master Feb 24, 2020
XMiDT automation moved this from In progress to Done Feb 24, 2020
@kristinapathak kristinapathak deleted the endpoint-config branch February 24, 2020 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
XMiDT
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants