blob: 47b068270153b3f14b61f49dc7daaa72ed3226e3 [file] [log] [blame]
Matteo Scandolod28ec7b2018-08-21 12:58:04 -07001---
2# Copyright 2018-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
Luca Prete9ca8aea2018-11-14 14:53:51 -080016global:
17 registry: ''
18
19images:
Ganesh Bhure8c7221b2019-08-13 15:59:34 +053020 kpi_exporter:
Luca Prete9ca8aea2018-11-14 14:53:51 -080021 repository: 'opencord/kafka-topic-exporter'
Scott Baker86170b02019-07-03 10:10:03 -070022 tag: '1.2.3'
Luca Prete9ca8aea2018-11-14 14:53:51 -080023 pullPolicy: 'Always'
24
Ganesh Bhure8c7221b2019-08-13 15:59:34 +053025kpi_exporter:
26 nem_kpi_exporter_nodePort: 31080
27 nem_kpi_exporter_replicas: 2
28 kpi_broker: cord-kafka:9092
29 topics:
30 - voltha.kpis
31 - onos.aaa.stats.kpis
32 - onos.kpis
Matteo Scandolod28ec7b2018-08-21 12:58:04 -070033
34prometheus:
35 alertmanager:
36 persistentVolume:
37 enabled: false
Matteo Scandolo56216492019-02-14 12:58:37 -080038 nodeExporter:
39 service:
40 clusterIP: ""
Matteo Scandolod28ec7b2018-08-21 12:58:04 -070041 server:
42 persistentVolume:
43 enabled: false
44 service:
45 type: NodePort
46 nodePort: 31301
47 serverFiles:
48 alerts: {}
49 rules: {}
50
51 prometheus.yml:
52 rule_files:
53 - /etc/config/rules
54 - /etc/config/alerts
55
56 scrape_configs:
57 # voltha KPI
58 - job_name: 'voltha-kpi'
59 metrics_path: /metrics
60 scrape_interval: 15s
61 static_configs:
62 - targets:
Matteo Scandolo374d3092018-10-09 19:56:16 -070063 - kpi-exporter:8080
Matteo Scandolod28ec7b2018-08-21 12:58:04 -070064
Matteo Scandoloe7610092018-10-03 15:53:07 -070065 # XOS-Core
66 - job_name: 'xos-core'
67 metrics_path: /metrics
68 scrape_interval: 15s
69 static_configs:
70 - targets:
71 - xos-core-prometheus:8000
72
Matteo Scandolo56216492019-02-14 12:58:37 -080073 # NodeExporter
74 - job_name: 'node-exporter'
75 metrics_path: /metrics
76 scrape_interval: 15s
77 static_configs:
78 - targets:
79 - nem-monitoring-prometheus-node-exporter:9100
80
Matteo Scandolod28ec7b2018-08-21 12:58:04 -070081 # KB8s monitoring jobs
82 - job_name: prometheus
83 static_configs:
84 - targets:
85 - localhost:9090
86 - job_name: 'kubernetes-apiservers'
87 kubernetes_sd_configs:
88 - role: endpoints
89 scheme: https
90 tls_config:
91 ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
92 insecure_skip_verify: true
93 bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
94 relabel_configs:
95 - source_labels: [__meta_kubernetes_namespace, __meta_kubernetes_service_name, __meta_kubernetes_endpoint_port_name]
96 action: keep
97 regex: default;kubernetes;https
98 - job_name: 'kubernetes-nodes'
99 # Default to scraping over https. If required, just disable this or change to
100 # `http`.
101 scheme: https
102 tls_config:
103 ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
104 insecure_skip_verify: true
105 bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
106 kubernetes_sd_configs:
107 - role: node
108 relabel_configs:
109 - action: labelmap
110 regex: __meta_kubernetes_node_label_(.+)
111 - target_label: __address__
112 replacement: kubernetes.default.svc:443
113 - source_labels: [__meta_kubernetes_node_name]
114 regex: (.+)
115 target_label: __metrics_path__
116 replacement: /api/v1/nodes/${1}/proxy/metrics
117 - job_name: 'kubernetes-nodes-cadvisor'
118 scheme: https
119 tls_config:
120 ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
121 insecure_skip_verify: true
122 bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
123 kubernetes_sd_configs:
124 - role: node
125 relabel_configs:
126 - action: labelmap
127 regex: __meta_kubernetes_node_label_(.+)
128 - target_label: __address__
129 replacement: kubernetes.default.svc:443
130 - source_labels: [__meta_kubernetes_node_name]
131 regex: (.+)
132 target_label: __metrics_path__
133 replacement: /api/v1/nodes/${1}/proxy/metrics/cadvisor
134 - job_name: 'kubernetes-service-endpoints'
135 kubernetes_sd_configs:
136 - role: endpoints
137 relabel_configs:
138 - source_labels: [__meta_kubernetes_service_annotation_prometheus_io_scrape]
139 action: keep
140 regex: true
141 - source_labels: [__meta_kubernetes_service_annotation_prometheus_io_scheme]
142 action: replace
143 target_label: __scheme__
144 regex: (https?)
145 - source_labels: [__meta_kubernetes_service_annotation_prometheus_io_path]
146 action: replace
147 target_label: __metrics_path__
148 regex: (.+)
149 - source_labels: [__address__, __meta_kubernetes_service_annotation_prometheus_io_port]
150 action: replace
151 target_label: __address__
152 regex: ([^:]+)(?::\d+)?;(\d+)
153 replacement: $1:$2
154 - action: labelmap
155 regex: __meta_kubernetes_service_label_(.+)
156 - source_labels: [__meta_kubernetes_namespace]
157 action: replace
158 target_label: kubernetes_namespace
159 - source_labels: [__meta_kubernetes_service_name]
160 action: replace
161 target_label: kubernetes_name
162 - job_name: 'prometheus-pushgateway'
163 honor_labels: true
164 kubernetes_sd_configs:
165 - role: service
166 relabel_configs:
167 - source_labels: [__meta_kubernetes_service_annotation_prometheus_io_probe]
168 action: keep
169 regex: pushgateway
170 - job_name: 'kubernetes-services'
171 metrics_path: /probe
172 params:
173 module: [http_2xx]
174 kubernetes_sd_configs:
175 - role: service
176 relabel_configs:
177 - source_labels: [__meta_kubernetes_service_annotation_prometheus_io_probe]
178 action: keep
179 regex: true
180 - source_labels: [__address__]
181 target_label: __param_target
182 - target_label: __address__
183 replacement: blackbox
184 - source_labels: [__param_target]
185 target_label: instance
186 - action: labelmap
187 regex: __meta_kubernetes_service_label_(.+)
188 - source_labels: [__meta_kubernetes_namespace]
189 target_label: kubernetes_namespace
190 - source_labels: [__meta_kubernetes_service_name]
191 target_label: kubernetes_name
192 - job_name: 'kubernetes-pods'
193 kubernetes_sd_configs:
194 - role: pod
195 relabel_configs:
196 - source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
197 action: keep
198 regex: true
199 - source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_path]
200 action: replace
201 target_label: __metrics_path__
202 regex: (.+)
203 - source_labels: [__address__, __meta_kubernetes_pod_annotation_prometheus_io_port]
204 action: replace
205 regex: ([^:]+)(?::\d+)?;(\d+)
206 replacement: $1:$2
207 target_label: __address__
208 - action: labelmap
209 regex: __meta_kubernetes_pod_label_(.+)
210 - source_labels: [__meta_kubernetes_namespace]
211 action: replace
212 target_label: kubernetes_namespace
213 - source_labels: [__meta_kubernetes_pod_name]
214 action: replace
215 target_label: kubernetes_pod_name
216
217grafana:
218 adminUser: admin
219 adminPassword: strongpassword
220 service:
221 type: NodePort
222 nodePort: 31300
223 sidecar:
224 dashboards:
225 enabled: true
226 label: grafana_dashboard
227 datasources:
228 datasources.yaml:
229 apiVersion: 1
230 datasources:
231 - name: Prometheus
232 type: prometheus
233 url: http://nem-monitoring-prometheus-server.default.svc.cluster.local
234 access: proxy
Luca Prete9ca8aea2018-11-14 14:53:51 -0800235 isDefault: true