summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancescoFioraEst <francesco.fiora@est.tech>2024-03-11 09:21:04 +0000
committerFrancesco Fiora <francesco.fiora@est.tech>2024-03-11 10:04:46 +0000
commit9e33a52d0cf03c0458911330fb72037d01b07a4a (patch)
tree7d131ce0965d7691dd76c436fb67cf80603d0341
parent5582cd406c8414919c4d5d7f5b116f4f1e5a971d (diff)
Add Prometheus config for http and k8s participants in csit
Issue-ID: POLICY-4944 Change-Id: I1e0e5795c166f532960a0e6c104b35eec32f685e Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
-rw-r--r--helm/policy/components/policy-clamp-ac-http-ppnt/resources/config/HttpParticipantParameters.yaml3
-rw-r--r--helm/policy/components/policy-clamp-ac-k8s-ppnt/resources/config/KubernetesParticipantParameters.yaml3
-rw-r--r--helm/prometheus/resources/prometheus.yml20
3 files changed, 23 insertions, 3 deletions
diff --git a/helm/policy/components/policy-clamp-ac-http-ppnt/resources/config/HttpParticipantParameters.yaml b/helm/policy/components/policy-clamp-ac-http-ppnt/resources/config/HttpParticipantParameters.yaml
index c3c4f98e..17e10334 100644
--- a/helm/policy/components/policy-clamp-ac-http-ppnt/resources/config/HttpParticipantParameters.yaml
+++ b/helm/policy/components/policy-clamp-ac-http-ppnt/resources/config/HttpParticipantParameters.yaml
@@ -57,12 +57,13 @@ participant:
management:
endpoints:
web:
+ base-path: /
exposure:
include: health, metrics, prometheus
server:
port: 8084
servlet:
- context-path: /onap/policy/clamp/acm/httpparticipant
+ context-path: /onap/httpparticipant
ssl:
enabled: false
diff --git a/helm/policy/components/policy-clamp-ac-k8s-ppnt/resources/config/KubernetesParticipantParameters.yaml b/helm/policy/components/policy-clamp-ac-k8s-ppnt/resources/config/KubernetesParticipantParameters.yaml
index 070ec50f..08ed5940 100644
--- a/helm/policy/components/policy-clamp-ac-k8s-ppnt/resources/config/KubernetesParticipantParameters.yaml
+++ b/helm/policy/components/policy-clamp-ac-k8s-ppnt/resources/config/KubernetesParticipantParameters.yaml
@@ -61,6 +61,7 @@ participant:
management:
endpoints:
web:
+ base-path: /
exposure:
include: health, metrics, prometheus
@@ -69,7 +70,7 @@ server:
# See springboot documentation.
port: 8083
servlet:
- context-path: /onap/policy/clamp/acm/k8sparticipant
+ context-path: /onap/k8sparticipant
ssl:
enabled: false
diff --git a/helm/prometheus/resources/prometheus.yml b/helm/prometheus/resources/prometheus.yml
index 04451de3..b3f656fe 100644
--- a/helm/prometheus/resources/prometheus.yml
+++ b/helm/prometheus/resources/prometheus.yml
@@ -95,7 +95,7 @@ scrape_configs:
username: "runtimeUser"
password: "zb!XztG34"
- - job_name: "acm-participant-metrics"
+ - job_name: "acm-participant-policy-metrics"
metrics_path: "/onap/policyparticipant/prometheus"
static_configs:
- targets:
@@ -103,3 +103,21 @@ scrape_configs:
basic_auth:
username: "participantUser"
password: "zb!XztG34"
+
+ - job_name: "acm-participant-http-metrics"
+ metrics_path: "/onap/httpparticipant/prometheus"
+ static_configs:
+ - targets:
+ - "policy-clamp-ac-http-ppnt:8084"
+ basic_auth:
+ username: "participantUser"
+ password: "zb!XztG34"
+
+ - job_name: "acm-participant-k8s-metrics"
+ metrics_path: "/onap/k8sparticipant/prometheus"
+ static_configs:
+ - targets:
+ - "policy-clamp-ac-k8s-ppnt:8083"
+ basic_auth:
+ username: "participantUser"
+ password: "zb!XztG34"