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

update custom_queries configuration to support optional collection_interval #16957

Merged
merged 7 commits into from
Feb 26, 2024

Conversation

lu-zhengda
Copy link
Contributor

What does this PR do?

PR #16765 introduced support of customizable collection_interval for custom queries. This PR adds an optional config option collection_interval to the custom_queries configuration template.

Motivation

custom_queries now supports optional collection_interval. This option can be useful to have a custom query that does not need to be executed on every check run.

Additional Notes

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Changelog entries must be created for modifications to shipped code
  • Add the qa/skip-qa label if the PR doesn't need to be tested during QA.

Copy link

The validations job has failed; please review the Files changed tab for possible suggestions to resolve.

@lu-zhengda lu-zhengda added the qa/skip-qa Automatically skip this PR for the next QA label Feb 23, 2024
Copy link

The validations job has failed; please review the Files changed tab for possible suggestions to resolve.

Copy link

The validations job has failed; please review the Files changed tab for possible suggestions to resolve.

Copy link

codecov bot commented Feb 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.71%. Comparing base (6012bdf) to head (5492f35).
Report is 12 commits behind head on master.

Additional details and impacted files
Flag Coverage Δ
activemq ?
cassandra ?
clickhouse 95.65% <ø> (ø)
confluent_platform ?
hive ?
hivemq ?
hudi ?
ignite ?
jboss_wildfly ?
kafka ?
mysql 87.45% <ø> (-0.04%) ⬇️
oracle 88.44% <ø> (ø)
presto ?
sap_hana 91.37% <ø> (ø)
singlestore 90.81% <ø> (ø)
snowflake 96.27% <ø> (ø)
solr ?
sqlserver 89.99% <ø> (+0.01%) ⬆️
teradata 94.05% <ø> (ø)
vertica 98.34% <ø> (ø)
voltdb 97.27% <ø> (ø)
weblogic ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Copy link

github-actions bot commented Feb 23, 2024

Test Results

  105 files    105 suites   1h 21m 15s ⏱️
  654 tests   639 ✅  15 💤 0 ❌
4 935 runs  4 608 ✅ 327 💤 0 ❌

Results for commit 5492f35.

♻️ This comment has been updated with latest results.

hestonhoffman
hestonhoffman previously approved these changes Feb 23, 2024
Kyle-Neale
Kyle-Neale previously approved these changes Feb 23, 2024
nenadnoveljic
nenadnoveljic previously approved these changes Feb 26, 2024
Copy link
Member

@FlorentClarret FlorentClarret left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left one tiny comment related to the changelog but LGTM!

datadog_checks_dev/changelog.d/16957.added.1 Outdated Show resolved Hide resolved
@lu-zhengda lu-zhengda merged commit ad7cd5d into master Feb 26, 2024
54 checks passed
@lu-zhengda lu-zhengda deleted the zhengda.lu/custom-query-collection-interval branch February 26, 2024 16:25
FlorentClarret pushed a commit that referenced this pull request Mar 1, 2024
…terval (#16957)

* update custom_queries configuration to support optional collection_interval

* add changelog

* update config

* sync config

* sync models

* update collection_interval description

* remove duplicate changelog
NouemanKHAL pushed a commit that referenced this pull request Mar 4, 2024
…terval (#16957)

* update custom_queries configuration to support optional collection_interval

* add changelog

* update config

* sync config

* sync models

* update collection_interval description

* remove duplicate changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants