Add policy participant in prometheus configuration 01/136701/1
authorFrancescoFioraEst <francesco.fiora@est.tech>
Tue, 28 Nov 2023 13:45:25 +0000 (13:45 +0000)
committerFrancesco Fiora <francesco.fiora@est.tech>
Wed, 29 Nov 2023 10:43:07 +0000 (10:43 +0000)
Issue-ID: POLICY-4891
Change-Id: I9dc733ed8680302f19d6a029592911f987e83e92
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
helm/policy/components/policy-clamp-ac-pf-ppnt/resources/config/PolicyParticipantParameters.yaml
helm/policy/components/policy-clamp-ac-pf-ppnt/templates/deployment.yaml
helm/policy/components/policy-clamp-ac-pf-ppnt/values.yaml
helm/prometheus/resources/prometheus.yml

index 3d0a0a5..713105b 100644 (file)
@@ -115,13 +115,13 @@ participant:
 management:
   endpoints:
     web:
+      base-path: /
       exposure:
         include: health, metrics, prometheus
 
 server:
-  port: 8085
+  port: 6969
   servlet:
     context-path: /onap/policyparticipant
   ssl:
     enabled: false
-
index 2717f98..0924d44 100644 (file)
@@ -102,7 +102,7 @@ spec:
           command: ["/opt/app/policy/clamp/bin/policy-participant.sh"]
           args: ["/opt/app/policy/clamp/etc/mounted/PolicyParticipantParameters.yaml"]
           ports:
-            - containerPort: 8085
+            - containerPort: 6969
               name: http-api
           # disable liveness probe when breakpoints set in debugger
           # so K8s doesn't restart unresponsive container
index 37f5244..bb7be33 100644 (file)
@@ -75,7 +75,7 @@ service:
   useNodePortExt: true
   ports:
     name: http-api
-    port: 8085
+    port: 6969
     nodePort: 42
 
 flavor: small
index 70041c9..04451de 100644 (file)
@@ -94,3 +94,12 @@ scrape_configs:
     basic_auth:
       username: "runtimeUser"
       password: "zb!XztG34"
+
+  - job_name: "acm-participant-metrics"
+    metrics_path: "/onap/policyparticipant/prometheus"
+    static_configs:
+      - targets:
+          - "policy-clamp-ac-pf-ppnt:6969"
+    basic_auth:
+      username: "participantUser"
+      password: "zb!XztG34"