-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 runtime configuration validation #8943
Conversation
3aaee8a
to
a8bc90a
Compare
kerberos_hostname: Optional[str] | ||
kerberos_keytab: Optional[str] | ||
kerberos_principal: Optional[str] | ||
kong_status_url: str |
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.
kong_status_url: str | |
kong_status_url: Optional[str] |
Since the check also offers an openmetrics option. The spec.yaml will also need updating.
The |
Codecov Report
Flags with carried forward coverage won't be shown. Click here to find out more. |
* Sync config models * re-sync * address * sync 2fa18b7
@@ -8,13 +8,13 @@ files: | |||
- template: instances | |||
options: | |||
- name: kong_status_url | |||
required: true |
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.
But it is required
integrations-core/kong/datadog_checks/kong/kong.py
Lines 49 to 50 in e668209
if 'kong_status_url' not in instance: | |
raise Exception('missing "kong_status_url" value') |
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.
Oh, but only if openmetrics_endpoint is not defined
What does this PR do?
Adds config models from #8675