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 1d4a73f
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,3 +250,11 @@ 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 1d4a73f

Please sign in to comment.