Add prometheus + https in https server configs 81/123481/2
authorjhh <jorge.hernandez-herrero@att.com>
Mon, 23 Aug 2021 23:03:31 +0000 (18:03 -0500)
committerjhh <jorge.hernandez-herrero@att.com>
Mon, 23 Aug 2021 23:34:21 +0000 (18:34 -0500)
Issue-ID: POLICY-3553
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I9d5d36e35b69a7f47efd2cc4b2abfdd0ba8f2192

feature-healthcheck/src/main/feature/config/feature-healthcheck.properties
packages/install/src/files/base.conf
policy-management/src/main/server/config/engine.properties

index 70a010c..7739c6e 100644 (file)
@@ -24,8 +24,8 @@ http.server.services.HEALTHCHECK.port=6969
 http.server.services.HEALTHCHECK.restClasses=org.onap.policy.drools.healthcheck.RestHealthCheck
 http.server.services.HEALTHCHECK.managed=false
 http.server.services.HEALTHCHECK.swagger=true
-http.server.services.HEALTHCHECK.userName=${env:HEALTHCHECK_USER}
-http.server.services.HEALTHCHECK.password=${env:HEALTHCHECK_PASSWORD}
-http.server.services.HEALTHCHECK.https=true
-http.server.services.HEALTHCHECK.aaf=${env:AAF}
+http.server.services.HEALTHCHECK.userName=${envd:HEALTHCHECK_USER}
+http.server.services.HEALTHCHECK.password=${envd:HEALTHCHECK_PASSWORD}
+http.server.services.HEALTHCHECK.https=${envd:HTTP_SERVER_HTTPS:false}
+http.server.services.HEALTHCHECK.aaf=${envd:AAF:false}
 http.server.services.HEALTHCHECK.serialization.provider=org.onap.policy.common.gson.JacksonHandler,org.onap.policy.common.endpoints.http.server.YamlJacksonHandler
index bf9b72e..aac2125 100644 (file)
@@ -81,6 +81,14 @@ AAF_NAMESPACE=org.onap.policy
 AAF_HOST=aaf-onap-test.osaaf.org
 CADI_KEYFILE=/opt/app/policy/config/aaf-cadi.keyfile
 
+# Prometheus
+
+PROMETHEUS=false
+
+# HTTP Servers https enabled
+
+HTTP_SERVER_HTTPS=false
+
 # PDP-D DMaaP configuration channel
 
 PDPD_CONFIGURATION_TOPIC=PDPD-CONFIGURATION
index 85a24f0..89a749c 100644 (file)
@@ -29,8 +29,9 @@ http.server.services.CONFIG.password=${envd:TELEMETRY_PASSWORD}
 http.server.services.CONFIG.restPackages=org.onap.policy.drools.server.restful
 http.server.services.CONFIG.managed=false
 http.server.services.CONFIG.swagger=true
-http.server.services.CONFIG.https=false
+http.server.services.CONFIG.https=${envd:HTTP_SERVER_HTTPS:false}
 http.server.services.CONFIG.aaf=${envd:AAF:false}
+http.server.services.CONFIG.prometheus=${envd:PROMETHEUS:true}
 http.server.services.CONFIG.serialization.provider=org.onap.policy.common.gson.JacksonHandler,org.onap.policy.common.endpoints.http.server.YamlJacksonHandler
 
 aaf.namespace=${envd:AAF_NAMESPACE:false}