summaryrefslogtreecommitdiffstats
path: root/src/main/resources
diff options
context:
space:
mode:
authorputhuparambil.aditya <aditya.puthuparambil@bell.ca>2021-07-13 11:52:13 +0100
committerputhuparambil.aditya <aditya.puthuparambil@bell.ca>2021-07-13 11:52:13 +0100
commit08fe971ba3012e913b9c9f28aee688a5c581756a (patch)
treea9092f6ece2974764682ec673467f1b816626fce /src/main/resources
parentb208aeb1904a95ebd08466908ae6e222d5a7a75a (diff)
Expose Prometheus metrics for monitoring ncmp-dmi-plugin
Issue-ID: CPS-492 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: Id8e91883973aec2654ae0e6cc0a859bc1121018a
Diffstat (limited to 'src/main/resources')
-rw-r--r--src/main/resources/application.yml11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index a8e765e2..ad1c8a3c 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -1,5 +1,6 @@
# ============LICENSE_START=======================================================
-# Modification (C) 2021 Nordix Foundation
+# Copyright (C) 2021 Nordix Foundation
+# Modifications Copyright (C) 2021 Bell Canada.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -24,23 +25,23 @@ rest:
dmi-base-path: /dmi/api
security:
- permit-uri: /manage/health/**,/manage/info,/swagger-ui/**,/swagger-resources/**,/v3/api-docs
+ permit-uri: /manage/**,/swagger-ui/**,/swagger-resources/**,/v3/api-docs
auth:
username: ${CPS_USERNAME}
password: ${CPS_PASSWORD}
# Actuator
management:
+ server:
+ port: 8081
endpoints:
web:
base-path: /manage
exposure:
- include: info,health,loggers
+ include: info,health,loggers,prometheus
endpoint:
health:
show-details: always
# kubernetes probes: liveness and readiness
probes:
enabled: true
- loggers:
- enabled: true