Skip to content

Commit

Permalink
Add support for target_info metric w/ shared label cache (#19397)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
github-merge-queue[bot] committed Feb 18, 2025
1 parent eaca9ce commit 2010a60
Show file tree
Hide file tree
Showing 2 changed files with 779 additions and 736 deletions.
Loading

0 comments on commit 2010a60

Please sign in to comment.