-
Notifications
You must be signed in to change notification settings - Fork 70
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
metadata: add configuration_options for varnish and add validation #565
Conversation
6697ef1
to
3ba5285
Compare
@@ -1,5 +1,6 @@ | |||
short_name: varnish | |||
long_name: Varnish HTTP Cache | |||
supported_app_version: ["6.0+", "7.0+"] |
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.
@JonathanWamsley Could you confirm that this is the correct supported version for Varnish?
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.
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.
Done.
// Validate the metadata. | ||
validate := validator.New() | ||
if err = validate.Struct(metadata); err != nil { | ||
return nonRetryable, err | ||
} | ||
|
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 am also working on this :) It needs to do quite much to get it work in the we intended it to be.😮💨
metadata parsed by unmarshallstrict will allocate any substruct as {} instead of nill thus the required tag won't work. I will send a PR soon. For now you can restore this file back, i will handle the work in my PR :)
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.
Here is the PR: #567
@@ -1,5 +1,6 @@ | |||
short_name: varnish | |||
long_name: Varnish HTTP Cache |
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.
It also needs Description from the scope doc, it will start failing the test once #567 is in
The Varnish integration collects cache and session metrics. It monitors the number of objects entering and exiting the cache, as well as the number of sessions and backend connections. The integration also collects Varnish access logs and parses them into a standardized json payload.
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.
Added
Signed-off-by: Ridwan Sharif <[email protected]>
Signed-off-by: Ridwan Sharif <[email protected]>
3ba5285
to
f1d3d55
Compare
This change adds in the configuration option for Varnish and adds validation enforcement for new receivers.