summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdheli Tavares <adheli.tavares@est.tech>2023-11-29 13:06:59 +0000
committerGerrit Code Review <gerrit@onap.org>2023-11-29 13:06:59 +0000
commit5a933e9b61471e552e21dc1df3d220f7d8fa4156 (patch)
treeb241ba1af8881df447872217942f1a96bcf3ea23
parent2dfbd9392673d8b8b76e44ccb94be0c961c8e9d1 (diff)
parent27979cf989b6767b2a328a5b9b3c7ad93eb11c0c (diff)
Merge "Add policy participant in prometheus configuration"
-rw-r--r--helm/policy/components/policy-clamp-ac-pf-ppnt/resources/config/PolicyParticipantParameters.yaml4
-rw-r--r--helm/policy/components/policy-clamp-ac-pf-ppnt/templates/deployment.yaml2
-rw-r--r--helm/policy/components/policy-clamp-ac-pf-ppnt/values.yaml2
-rw-r--r--helm/prometheus/resources/prometheus.yml9
4 files changed, 13 insertions, 4 deletions
diff --git a/helm/policy/components/policy-clamp-ac-pf-ppnt/resources/config/PolicyParticipantParameters.yaml b/helm/policy/components/policy-clamp-ac-pf-ppnt/resources/config/PolicyParticipantParameters.yaml
index 3d0a0a5a..713105bc 100644
--- a/helm/policy/components/policy-clamp-ac-pf-ppnt/resources/config/PolicyParticipantParameters.yaml
+++ b/helm/policy/components/policy-clamp-ac-pf-ppnt/resources/config/PolicyParticipantParameters.yaml
@@ -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
-
diff --git a/helm/policy/components/policy-clamp-ac-pf-ppnt/templates/deployment.yaml b/helm/policy/components/policy-clamp-ac-pf-ppnt/templates/deployment.yaml
index 2717f986..0924d445 100644
--- a/helm/policy/components/policy-clamp-ac-pf-ppnt/templates/deployment.yaml
+++ b/helm/policy/components/policy-clamp-ac-pf-ppnt/templates/deployment.yaml
@@ -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
diff --git a/helm/policy/components/policy-clamp-ac-pf-ppnt/values.yaml b/helm/policy/components/policy-clamp-ac-pf-ppnt/values.yaml
index 37f5244c..bb7be33c 100644
--- a/helm/policy/components/policy-clamp-ac-pf-ppnt/values.yaml
+++ b/helm/policy/components/policy-clamp-ac-pf-ppnt/values.yaml
@@ -75,7 +75,7 @@ service:
useNodePortExt: true
ports:
name: http-api
- port: 8085
+ port: 6969
nodePort: 42
flavor: small
diff --git a/helm/prometheus/resources/prometheus.yml b/helm/prometheus/resources/prometheus.yml
index 70041c97..04451de3 100644
--- a/helm/prometheus/resources/prometheus.yml
+++ b/helm/prometheus/resources/prometheus.yml
@@ -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"