02 Feb 2026
11:27 AM
- last edited on
03 Feb 2026
07:32 AM
by
MaciejNeumann
02 Feb 2026 03:59 PM
Hi,
I think that you can’t directly “push” the result of a DQL query to Microsoft Teams, but There are two supported ways to achieve this in Dynatrace, depending on whether you really need a stored custom metric or just want to use DQL results to post to Teams.
If your DQL is based on logs, create a log metric using DQL matchers, then alert on that metric using Metric events, and finally send the notification to Microsoft Teams.
1. Settings → Log Monitoring → Metrics extraction → Add log metric). This uses a DQL-based matcher
https://docs.dynatrace.com/docs/analyze-explore-automate/logs/lma-log-processing/lma-log-metrics
2. Create alerting using Metric events https://docs.dynatrace.com/docs/dynatrace-intelligence/anomaly-detection/metric-events
3. Send to Teams using webhook.
On the other hand, ifyour goal is simply “run a DQL query and post the result to Teams”, you can do it directly with Workflows. Use Workflows action: Execute DQL Query to run your query and get results for subsequent steps
https://docs.dynatrace.com/docs/analyze-explore-automate/workflows/default-workflow-actions/dql-quer...
and add Microsoft Teams Connector → Send message and format the message https://docs.dynatrace.com/docs/analyze-explore-automate/workflows/actions/microsoft-teams
Featured Posts