You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在Datadog查询中排除任意位置含to_redshift的id标签?

解决方案

要排除id标签任意位置包含"to_redshift"的条目,需在Datadog查询中使用前后带通配符的否定匹配规则,将原查询里的!id:to_redshift*替换为!id:*to_redshift*。

调整后的完整查询:

max(last_1h):airflow.dagrun.duration.success.max{namespace: text,!id:*to_redshift*} by {id}

规则说明

  • *是Datadog标签匹配的通配符,可匹配任意长度的任意字符(包括空字符)
  • !id:*to_redshift*会排除所有id标签中包含"to_redshift"子串的条目,无论该子串位于id的前缀、中间还是后缀

内容的提问来源于stack exchange,提问作者johndoe1839

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.06 16:05:43