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 "ee.sm.ti.teis:service-common-lib:${commonsVersion}"
compile "ee.sm.ti.teis:gateway-common-lib:${commonsVersion}"
implementation "io.micrometer:micrometer-registry-prometheus"
compile project(':common-api-gateway-lib')
}
......
......@@ -45,6 +45,8 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
.antMatchers("/actuator/**").permitAll()
.antMatchers("/v2/api-docs", "/configuration/ui", "/swagger-resources/**", "/configuration/**", "/swagger-ui/**", "/swagger-ui.html", "/test-role-definitions/**", "/role-definitions/**", "/webjars/**", "/csrf",
"/").permitAll()
.antMatchers("/actuator").permitAll()
.antMatchers("/applications/prometheus").permitAll()
.anyRequest().not().anonymous() // any authenticated user except anonymous
.and()
.oauth2ResourceServer()
......
......@@ -25,6 +25,9 @@ management:
enabled: true
show-details: always
info.enabled: true
endpoints:
web:
exposure.include: health, info, prometheus, metrics
teis:
database:
......
Markdown is supported
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