我对使用Prometheus和datadog进行微服务监视非常陌生。我正在尝试使用PromQL查询和datadog查询来监视事件回调请求的每秒速率,但是当我比较这两个工具的值时,它们却大不相同。我想知道两个值是否需要相同。如果是,那么我该如何编写查询以获取正确的值
PromQL查询
sum by (service)(rate(service_event_callback_processing_seconds_count[1m]))
Datadog查询(json文件)
{
"viz": "timeseries",
"requests": [
{
"q": "per_second(avg:prod.service_event_callback_processing_seconds.count{$service,team:callai})",
"type": "line",
"style": {
"palette": "dog_classic",
"type": "solid",
"width": "normal"
},
"aggregator": "avg",
"conditional_formats": []
}
],
"autoscale": true
}
请告诉我如何使两个查询等效?