ATS-126 : Expose JVM metrics - eg. CPU & Memory (within jvm process / container)

- added actuator & micrometer
   - enabled /health, /metrics & /prometheus
   - disabled some of the default metrics (subject to be discussed)
This commit is contained in:
DenisGabriela 2018-10-10 11:41:57 +03:00
parent 71f0598115
commit 7c2cb2f768
2 changed files with 28 additions and 1 deletions

View File

@ -21,6 +21,14 @@
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId> <artifactId>spring-boot-starter-web</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
</dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId> <artifactId>spring-boot-starter-test</artifactId>

View File

@ -16,4 +16,23 @@ logging:
org.alfresco.transformer.ImageMagickController: debug org.alfresco.transformer.ImageMagickController: debug
org.alfresco.transformer.TikaController: debug org.alfresco.transformer.TikaController: debug
fileStoreUrl: ${FILE_STORE_URL:http://localhost:8099/alfresco/api/-default-/private/sfs/versions/1/file} fileStoreUrl: ${FILE_STORE_URL:http://localhost:8099/alfresco/api/-default-/private/sfs/versions/1/file}
management:
endpoints:
web:
exposure:
include:
- metrics
- prometheus
- health
metrics:
enable[go]: false
enable[http]: false
enable[net]: false
enable[logback]: false
enable[prometheus]: false
enable[promhttp]: false
enable[tomcat]: false
enable[scrape]: false
enable[jvm.classes]: false