如何从Datadog Metric Alert Monitor查询中排除健康检查资源?
我们正在使用Terraforms设置公制警报显示器和其他监视器。查询看起来像这样:
query = "max(last_10m):p95:trace.netty.request{env:${var.env},service:${local.service_name}} >= 4"
我们只想从此特定指标中排除健康检查,例如get /healthcheck < /code>
如何实现?有一些例子吗?
We are setting up a metric alert monitor and other monitors using Terraforms. The query looks like this:
query = "max(last_10m):p95:trace.netty.request{env:${var.env},service:${local.service_name}} >= 4"
We would like to exclude health checks from this particular metric only, e.g. GET /healthcheck
How can this be achieved? Are there some examples?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
诸如健康检查之类的资源具有
Resource_name
标签。此标签可用于排除它们,例如!resource_name:get_/health
以下是查询的示例,不包括健康检查资源:
访问datadog
Resources like the health check have a
resource_name
tag. This tag can be used to exclude them, e.g.!resource_name:get_/health
Here is an example of a query excluding the health check resources:
Visit DataDog documentation for more information.