如何从MuleSoft中获取”interval data”

huangapple go评论57阅读模式
英文:

How to get "interval data" out of MuleSoft

问题

我对 MuleSoft 管理和监控是个完全的新手。我们在 API 提供方那里看到了性能问题,这些问题在一天中的不同时间间隔内强度不同。在 MuleSoft 管理页面的“报告”选项卡上查看时,看起来 API 调用和平均响应时间的数据汇总至少会在过去一天内发生,最长可达 7、30、... 90 天。

我们需要做的是将这些数据映射到一天中的 15 分钟间隔,以便我们可以看到 API 调用率和响应时间如何变化;我们对 API 服务系统的性能数据也希望能与 API 调用率/响应时间数据相对应。

是否有一种方法,也许不同于报告选项卡上的内容,可以提取过去几天的这些数据?

英文:

I am a complete novice to MuleSoft admin and monitoring. We are seeing performance issues in an API provider that vary in intensity during different intervals of the day. In looking at the Report tab on the MuleSoft admin page, It appears that aggregation of data for API calls and average response time occurs, at a minimum, over the last day varying upwards to 7, 30, ... 90 days.

What we need to be able to do is to map this to 15 minute intervals during the day so we can see how API rate and response time vary; we have performance data on the API serving system that we would like to map back to the API rate/response time data.

Is there a way, perhaps other than what's on the report tab, to extract this data for the past few days?

答案1

得分: 1

我认为你正在使用的是Anypoint Monitoring Reports,它提供了整个环境的概述。但是你需要的是Anypoint Monitoring Dashboards,它提供了API和应用程序级别所需的统计信息。

与API相关的统计信息包含与HTTP请求/响应相关的信息,例如平均响应时间。我相信,默认情况下,这些统计信息是按分钟聚合的,但如果你需要自定义,比如15分钟,你可以创建自定义仪表板,这提供了很大的灵活性。<br>
我为你找到了专门针对你的用例的文章,即如何更改聚合间隔,因此你可以查看这个链接以获取帮助如何在Anypoint Monitoring中构建具有时间间隔聚合的仪表板

你可以将来自多个API的统计信息添加到单个自定义仪表板中,以便解决问题。

专业提示:自定义仪表板在其高级模式中提供了许多选项,有时可能会让人感到不知所措,从零开始创建图表。我通常尝试将内置仪表板保存为自定义仪表板,然后调整一些配置。这可以节省一些时间。这仅适用于钛订阅,但由于你能够使用报告,我假设你已经具备了这个权限。

英文:

I think what you are using is the Anypoint Monitoring Reports which gives an overview of the full environment. But what you need is Anypoint Monitoring Dashboards. Which gives the required stats at API and Application level.

The API related stats contains the info related to the HTTP Request/Responses, for example Average response time. I believe, by default, these stats are aggregated per minute, but if you need to customize it, like for 15 minutes you can create a Custom Dashboard, which provides a lot of flexibility. <br>
I found this article specifically for your use case, i.e. to change the aggregation interval so you can check this link for help How to Build a Dashboard with Time Interval Aggregation in Anypoint Monitoring

You can add stats from multiple APIs into a single custom dashboard so you can leverage that to troubleshoot your problem.

Pro Tip: The custom dashboard gives a lot of options in its Advanced mode which can be overwhelming sometimes to create a chart from scratch. I usually try to save a built-in dashboard as custom dashboard and then tweak some configurations. It can save you some time. This is only available with titanium subscription but since you are able to use Reports I am assuming you have that.

huangapple
  • 本文由 发表于 2023年6月2日 04:23:06
  • 转载请务必保留本文链接:https://go.coder-hub.com/76385466.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定