Commit 1eb24f98 authored by Jyrgen Hannus's avatar Jyrgen Hannus
Browse files

TEIS-2037: added Prometheus for common-api-gateway to enable hardware monitoring

parent d917f719
......@@ -15,6 +15,8 @@ dependencies {
compile "${commonsVersion}"
compile "${commonsVersion}"
implementation "io.micrometer:micrometer-registry-prometheus"
compile project(':common-api-gateway-lib')
......@@ -45,6 +45,8 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
.antMatchers("/v2/api-docs", "/configuration/ui", "/swagger-resources/**", "/configuration/**", "/swagger-ui/**", "/swagger-ui.html", "/test-role-definitions/**", "/role-definitions/**", "/webjars/**", "/csrf",
.anyRequest().not().anonymous() // any authenticated user except anonymous
......@@ -25,6 +25,9 @@ management:
enabled: true
show-details: always
info.enabled: true
exposure.include: health, info, prometheus, metrics
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment