在Springboot应用程序中使用Prometheus的请求身体参数计数组

发布于 2025-01-20 18:16:53 字数 215 浏览 2 评论 0原文

示例请求

{
"ScenarioId":12,
"type":"t1"
}

这里的类型可以是 t1,t2,t3....等

我们可以在 Prometheus 中使用 group by 来计算类型参数的数量吗?

请在这里帮助理解 Prometheus 自定义指标

是否可以读取 json 请求并计算请求参数的数量?

Sample Request

{
"ScenarioId":12,
"type":"t1"
}

Here type can be t1,t2,t3....etc

Can we take count of type param using group by in Prometheus?

Kindly help here to understand the Prometheus custom metric

Is it possible to read json request and take a count of request param?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文