需要创建一个仪表板来监控Spring Batch作业的状态

问题描述 投票:0回答:2

我需要创建一个仪表板来监视由 shell 脚本执行的 Spring 批处理作业的状态。所以我想使用像这样的rest Api从spring批处理表中获取批处理状态,并使用一些UI框架显示该数据。你能帮我如何实施这种方法吗?

java spring-batch spring-batch-job-monitoring
2个回答
0
投票

无需任何 UI 编码即可获得非常直观的 UI 的最简单方法是使用 Grafana + Prometheus Stack。您只需在调用 REST API 时将时间序列数据注入到 Grafana 中即可。

喜欢

Grafana 可以自动在其仪表板中将其可视化。

看看这里https://prometheus.io/docs/visualization/grafana/


0
投票

如果您的批处理作业位于 Spring Boot 中并且您想要添加一个 Web 控制台来管理这些批处理作业,您可以尝试 https://github.com/httpants/spring-batch-admin

https://docs.spring.io/spring-batch-admin/2.x/reference/reference.xhtml

© www.soinside.com 2019 - 2024. All rights reserved.