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

Add support for target_info metric w/ shared label cache #19397

Merged
merged 26 commits into from
Feb 18, 2025

Conversation

UTXOnly
Copy link
Contributor

@UTXOnly UTXOnly commented Jan 14, 2025

What does this PR do?

Motivation

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Add the qa/skip-qa label if the PR doesn't need to be tested during QA.
  • If you need to backport this PR to another branch, you can add the backport/<branch-name> label to the PR and it will automatically open a backport PR once this one is merged

Copy link

codecov bot commented Jan 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.39%. Comparing base (bd8de59) to head (898e55b).
Report is 177 commits behind head on master.

❗ There is a different number of reports uploaded between BASE (bd8de59) and HEAD (898e55b). Click for more details.

HEAD has 10 uploads less than BASE
Flag BASE (bd8de59) HEAD (898e55b)
jboss_wildfly 1 0
presto 1 0
cassandra 1 0
weblogic 1 0
hivemq 1 0
solr 1 0
activemq 1 0
hive 1 0
kafka 1 0
hudi 1 0
Additional details and impacted files
Flag Coverage Δ
activemq ?
cassandra ?
hive ?
hivemq ?
hudi ?
jboss_wildfly ?
kafka ?
presto ?
solr ?
weblogic ?

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

@UTXOnly UTXOnly marked this pull request as ready for review January 16, 2025 15:23
@UTXOnly UTXOnly requested review from a team as code owners January 16, 2025 15:23
@steveny91
Copy link
Contributor

@UTXOnly

is it possible to have more than 1 target_info entry? Or would there always be 1 only per payload?

steveny91
steveny91 previously approved these changes Feb 3, 2025
…_options.py

Co-authored-by: Steven Yuen <steven.yuen@datadoghq.com>
@temporal-github-worker-1 temporal-github-worker-1 bot dismissed steveny91’s stale review February 6, 2025 02:38

Review from steveny91 is dismissed.
Related teams and files:

  • agent-integrations
    • datadog_checks_base/tests/base/checks/openmetrics/test_v2/test_options.py
@Kyle-Neale Kyle-Neale added this pull request to the merge queue Feb 18, 2025
Merged via the queue into master with commit d802c07 Feb 18, 2025
38 checks passed
@Kyle-Neale Kyle-Neale deleted the UTXOnly/openmetrics-target-info-4 branch February 18, 2025 00:40
github-actions bot pushed a commit that referenced this pull request Feb 18, 2025
* Collect target info metric

* Corrected cache error

* Log cleanup

* Debug log cleanup

* Add tests to test cache w/ target_info

* Add test for unordered target info with cache shared labels

* Add transformer for info metric type

* Cleaned but not working first iteration

* Refactor tag caching logic

* Validate type for config options

* Added changelog entry

* Fix validate shared labels failing test

* Fix whitespace causing lint failure

* Fix target info with cache, add tests

* Linting

* Cleanup debug log

* Comment cleanup

* Refactor label population

* Reformat imports

* Reorder target_info_labels definition

* Add consume w/ target info method

* Add comments

* Update datadog_checks_base/tests/base/checks/openmetrics/test_v2/test_options.py

Co-authored-by: Steven Yuen <steven.yuen@datadoghq.com>

* lint test

---------

Co-authored-by: Steven Yuen <steven.yuen@datadoghq.com> d802c07
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.

3 participants