问题描述
我正在使用Spring Cloud Data Flow运行批处理任务。 SCDF和我的任务都运行良好。 我有使用docker在本地运行的SCDF,详细here 我想了解一些有关任务执行的指标,因此我遵循了this guide,让我在任务应用程序中添加了以下内容:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>io.micrometer.prometheus</groupId>
<artifactId>prometheus-rsocket-spring</artifactId>
</dependency>
接下来,我使用this guide
安装了prometheus和Grafana我启动了docker docker-compose -f ./docker-compose.yml -f ./docker-compose-prometheus.yml up
,一切顺利。我发现的任何日志中都没有错误。我可以在端口3000上打开Grafana控制台,这里有一些东西。
Grafana上的Prometheus仪表板有一个带有指标的框,其余为空白:
“应用程序”仪表板显示一些系统指标
我在最后的努力中将management.metrics.enable.all=true
添加到了application.properties中,但没有任何改变。我可能会缺少什么以及如何调试它。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)