789cfc2a85cb8c37baaa2a9e5f5f0e46a803a65e
[policy/docker.git] / compose / metrics / prometheus.yml
1 #
2 # ===========LICENSE_START====================================================
3 #  Copyright (C) 2022-2023 Nordix Foundation.
4 # ============================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 #      http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 # ============LICENSE_END=====================================================
17 #
18
19 # global config
20 global:
21   scrape_interval: 60s
22   evaluation_interval: 60s
23
24 # Alertmanager configuration
25 alerting:
26   alertmanagers:
27     - static_configs:
28         - targets:
29           # - alertmanager:9093
30
31 # scrape config
32 scrape_configs:
33
34   - job_name: "api-metrics"
35     metrics_path: /policy/api/v1/metrics
36     static_configs:
37       - targets: ["policy-api:6969"]
38     basic_auth:
39       username: "policyadmin"
40       password: "zb!XztG34"
41
42   - job_name: "pap-metrics"
43     metrics_path: /policy/pap/v1/metrics
44     static_configs:
45       - targets: ["policy-pap:6969"]
46     basic_auth:
47       username: "policyadmin"
48       password: "zb!XztG34"
49
50   - job_name: "apex-pdp-metrics"
51     static_configs:
52       - targets:
53           - "policy-apex-pdp:6969"
54     basic_auth:
55       username: "policyadmin"
56       password: "zb!XztG34"
57
58   - job_name: "drools-apps-metrics"
59     static_configs:
60       - targets:
61           - "drools-apps:9696"
62     basic_auth:
63       username: "demo@people.osaaf.org"
64       password: "demo123456!"
65
66   - job_name: "drools-pdp-metrics"
67     static_configs:
68       - targets:
69           - "drools:9696"
70     basic_auth:
71       username: "demo@people.osaaf.org"
72       password: "demo123456!"
73
74   - job_name: "distribution-metrics"
75     static_configs:
76       - targets:
77           - "policy-distribution:6969"
78     basic_auth:
79       username: "policyadmin"
80       password: "zb!XztG34"
81
82   - job_name: "xacml-pdp-metrics"
83     static_configs:
84       - targets:
85           - "policy-xacml-pdp:6969"
86     basic_auth:
87       username: "policyadmin"
88       password: "zb!XztG34"
89
90   - job_name: "acm-metrics"
91     metrics_path: "/onap/policy/clamp/acm/prometheus"
92     static_configs:
93       - targets:
94           - "policy-clamp-runtime-acm:6969"
95     basic_auth:
96       username: "runtimeUser"
97       password: "zb!XztG34"
98
99   - job_name: "node"
100     static_configs:
101     - targets: ["node-exporter:9100"]