Skip to content

fix(monitors): use monitor_tags API parameter for --tags flag#51

Merged
platinummonkey merged 1 commit into
DataDog:mainfrom
dragon3:fix/monitors/use-monitor-tags
Feb 12, 2026
Merged

fix(monitors): use monitor_tags API parameter for --tags flag#51
platinummonkey merged 1 commit into
DataDog:mainfrom
dragon3:fix/monitors/use-monitor-tags

Conversation

@dragon3
Copy link
Copy Markdown
Contributor

@dragon3 dragon3 commented Feb 12, 2026

What does this PR do?

This pull request fixes monitors list --tags to filter by monitor tags instead of query scope tags by using the correct API parameter.

Motivation

The --tags flag was wired to the Datadog API's tags query parameter, which filters by tags in the monitor's query scope (e.g., avg:cpu{env:prod}). But I/users expect --tags to filter by monitor tags — the organizational tags assigned to monitors for grouping.The correct API parameter for this is monitor_tags.

Additional Notes

N/A

Checklist

  • The code change follows the project conventions (see CONTRIBUTING.md)
  • Tests have been added/updated (if applicable)
  • Documentation has been updated (if applicable)
  • All CI checks pass
  • Code coverage is maintained or improved

Related Issues

@dragon3 dragon3 requested a review from a team as a code owner February 12, 2026 07:10
@platinummonkey platinummonkey merged commit bb52101 into DataDog:main Feb 12, 2026
4 checks passed
@dragon3
Copy link
Copy Markdown
Contributor Author

dragon3 commented Feb 13, 2026

Thanks!

@dragon3 dragon3 deleted the fix/monitors/use-monitor-tags branch February 13, 2026 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants