JMeter 的 PHP 接口
我们正在考虑使用 JMeter 在我们的服务器上进行基准测试和负载测试,但希望将报告中的数据自动转储到我们的数据库中以便与 JCharts 一起使用,甚至可能将其导入到 munin 中进行绘图和分析。有谁知道可以帮助我们实现目标的界面吗?如果已经有一种方法可以做到这一点,我们宁愿不花时间自己编写一个。通过阅读,我发现 JMeter 的数据可以以 XML 格式输出,我们可以直接解析它,但我们正在寻找更好的选择。欢迎任何建议或反馈。提前致谢!
如果有人有其他方法的建议,请告诉我!
We are looking into using JMeter for benchmarking and load testing on our servers but would like to have the data from the reports automatically dumped into our database to be used with JCharts or perhaps even importing it into munin for graphing and analysis. Does anyone know of an interface that could help us achieve our goal? We would rather not spend the time writing one ourselves if there already is a way to do this. Through reading I've seen that the data from JMeter can be outputted in XML format and we could just parse that but were looking for a better option. Any suggestions or feedback is welcome. Thanks in advance!
If anyone has a suggestion for another way to go about this please let me know!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
也许 CSV 对您来说是更好的选择。它是两种格式之一,然后导入数据库应该很简单。需要指点吗?如果是这样,请告诉我哪个数据库等..
Maybe CSV is the better option for you. It's one of two formats and then it should be trivial to import into a database. Do you need pointers? If so, let me know which database etc..
除了 @Till 之外,您还可以将结果保存为 XML 文件,以便由 php 程序进行处理。
In addition to @Till you can save results as an XML file for processing by your php program.
好吧,你现在就可以尝试这样的服务:Loadosophia.org
Well, you can try such service now: Loadosophia.org
CSV 是最好的选择。您可以将 report.csv 转换为 HTML,也可以转储到数据库中(您的要求)。
CSV is the best option. You can convert the report.csv to HTML or you can dump into your database(your requirement).