3

我目前正在使用 grails 3.1。请分享任何监控插件的详细信息,例如 grails 2.* 中使用的 grails-melody。据我所知,grails-melody 插件不适用于 grails 3+ 版本。任何帮助表示赞赏。

4

2 回答 2

1

JavaMelody 插件与 Grails 3.1 完美配合。

源文档是最新的,在这里:

https://github.com/javamelody/grails-melody-plugin

只需将其包含在您的 build.gradle 中:

dependencies {
    runtime 'org.grails.plugins:grails-melody-plugin:1.60.1'
}

截至 2016 年 9 月,当前版本为 1.60.1。

只需构建并运行您的项目,然后转到http://localhost:8080/monitoring即可查看您的监控信息。当然,根据您的配置替换http://localhost:8080位。

于 2016-09-11T16:15:55.753 回答
0

由于 Grails 3 是基于 Spring Boot 构建的,因此您可以立即使用 Actuator。有关更多信息,请参阅本文

于 2016-04-10T16:14:45.600 回答