Skip to content

Commit

Permalink
Print the metric list when parsing a prometheus endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorentClarret committed Aug 16, 2023
1 parent fc38712 commit b357c27
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions datadog_checks_dev/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
* Remove files in datadog_checks_dev for `validate ci, http, and metadata` ([#15546](https://github.com/DataDog/integrations-core/pull/15546))
* Migrate documentation commands to ddev ([#15582](https://github.com/DataDog/integrations-core/pull/15582))

***Added***:

* Print the metric list when parsing a prometheus endpoint ([#15586](https://github.com/DataDog/integrations-core/pull/15586))

***Fixed***:

* Stop using the TOX_ENV_NAME variable ([#15528](https://github.com/DataDog/integrations-core/pull/15528))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,3 +250,9 @@ def parse(ctx, endpoint, fh, check, here):
)

echo_info(metric_map)

metric_list = (
'\nMETRICS = [\n' '{}\n' ']'.format('\n'.join(" '{}',".format(data['dd_name']) for _, data in metric_items))
)

echo_info(metric_list)

0 comments on commit b357c27

Please sign in to comment.