summaryrefslogtreecommitdiffstats
path: root/a1-policy-management/config/prometheus.yml
diff options
context:
space:
mode:
authorhalil.cakal <halil.cakal@est.tech>2022-09-29 09:47:09 +0100
committerhalil.cakal <halil.cakal@est.tech>2022-10-17 10:28:51 +0100
commit8eadcb635a4d3dfaa7f2ac83f4081120a62e1781 (patch)
treeb9a872c2c8982381209a2c506181d7174ef8cf82 /a1-policy-management/config/prometheus.yml
parent36f9bf4305ef193089330242c94d229f9310f69d (diff)
Metrics and statistics for A1 PMS
Enable app metrics to be collected by Prometheus Patch set 2: Remove hardcoded defines ccsdk.sli dependency Issue-ID: CCSDK-3766 Change-Id: I58f05390007b74e58427b9be2711912c551d6e1e Signed-off-by: halil.cakal <halil.cakal@est.tech>
Diffstat (limited to 'a1-policy-management/config/prometheus.yml')
-rw-r--r--a1-policy-management/config/prometheus.yml37
1 files changed, 37 insertions, 0 deletions
diff --git a/a1-policy-management/config/prometheus.yml b/a1-policy-management/config/prometheus.yml
new file mode 100644
index 00000000..9219c7f4
--- /dev/null
+++ b/a1-policy-management/config/prometheus.yml
@@ -0,0 +1,37 @@
+#
+# ============LICENSE_START=======================================================
+# ONAP : ccsdk oran
+# ================================================================================
+# Copyright (C) 2022 Nordix Foundation. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+#
+
+# Sample Prometheus config
+# This assumes that your Prometheus instance can access this application on localhost:8081
+# host.docker.internal could be overridden as per the application's end-point e.g. localhost
+
+global:
+ scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
+ evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
+ # scrape_timeout is set to the global default (10s).
+
+scrape_configs:
+ - job_name: 'A1 PMS scrape'
+ metrics_path: '/actuator/prometheus'
+ scrape_interval: 15s
+ static_configs:
+ - targets: ['host.docker.internal:8081']