blob: 2e90f6e201ac7d01fdb8bc606bb04c3024b12d03 [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:
20 voltha_kpi_exporter:
21 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
Dinesh Belwalkar9325a842019-05-23 21:58:11 +000025 device_management:
26 repository: 'opencord/device-management'
27 tag: 'master'
28 pullPolicy: 'Always'
29
Matteo Scandolod28ec7b2018-08-21 12:58:04 -070030nem_voltha_kpi_exporter_nodePort: 31080
Matteo Scandolo374d3092018-10-09 19:56:16 -070031nem_voltha_kpi_exporter_replicas: 2
mc43cc9b22019-07-18 21:32:37 +000032nem_device_management_grpcPort: 31085
33nem_device_management_httpPort: 30180
34nem_device_management_replicas: 1
Matteo Scandolod28ec7b2018-08-21 12:58:04 -070035args:
Matteo Scandolo0906d3f2018-09-17 17:12:01 -070036 voltha_kpi_broker: cord-kafka:9092
Matteo Scandolod28ec7b2018-08-21 12:58:04 -070037
38prometheus:
39 alertmanager:
40 persistentVolume:
41 enabled: false
Matteo Scandolo56216492019-02-14 12:58:37 -080042 nodeExporter:
43 service:
44 clusterIP: ""
Matteo Scandolod28ec7b2018-08-21 12:58:04 -070045 server:
46 persistentVolume:
47 enabled: false
48 service:
49 type: NodePort
50 nodePort: 31301
51 serverFiles:
52 alerts: {}
53 rules: {}
54
55 prometheus.yml:
56 rule_files:
57 - /etc/config/rules
58 - /etc/config/alerts
59
60 scrape_configs:
61 # voltha KPI
62 - job_name: 'voltha-kpi'
63 metrics_path: /metrics
64 scrape_interval: 15s
65 static_configs:
66 - targets:
Matteo Scandolo374d3092018-10-09 19:56:16 -070067 - kpi-exporter:8080
Matteo Scandolod28ec7b2018-08-21 12:58:04 -070068
Matteo Scandoloe7610092018-10-03 15:53:07 -070069 # XOS-Core
70 - job_name: 'xos-core'
71 metrics_path: /metrics
72 scrape_interval: 15s
73 static_configs:
74 - targets:
75 - xos-core-prometheus:8000
76
Matteo Scandolo56216492019-02-14 12:58:37 -080077 # NodeExporter
78 - job_name: 'node-exporter'
79 metrics_path: /metrics
80 scrape_interval: 15s
81 static_configs:
82 - targets:
83 - nem-monitoring-prometheus-node-exporter:9100
84
Matteo Scandolod28ec7b2018-08-21 12:58:04 -070085 # KB8s monitoring jobs
86 - job_name: prometheus
87 static_configs:
88 - targets:
89 - localhost:9090
90 - job_name: 'kubernetes-apiservers'
91 kubernetes_sd_configs:
92 - role: endpoints
93 scheme: https
94 tls_config:
95 ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
96 insecure_skip_verify: true
97 bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
98 relabel_configs:
99 - source_labels: [__meta_kubernetes_namespace, __meta_kubernetes_service_name, __meta_kubernetes_endpoint_port_name]
100 action: keep
101 regex: default;kubernetes;https
102 - job_name: 'kubernetes-nodes'
103 # Default to scraping over https. If required, just disable this or change to
104 # `http`.
105 scheme: https
106 tls_config:
107 ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
108 insecure_skip_verify: true
109 bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
110 kubernetes_sd_configs:
111 - role: node
112 relabel_configs:
113 - action: labelmap
114 regex: __meta_kubernetes_node_label_(.+)
115 - target_label: __address__
116 replacement: kubernetes.default.svc:443
117 - source_labels: [__meta_kubernetes_node_name]
118 regex: (.+)
119 target_label: __metrics_path__
120 replacement: /api/v1/nodes/${1}/proxy/metrics
121 - job_name: 'kubernetes-nodes-cadvisor'
122 scheme: https
123 tls_config:
124 ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
125 insecure_skip_verify: true
126 bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
127 kubernetes_sd_configs:
128 - role: node
129 relabel_configs:
130 - action: labelmap
131 regex: __meta_kubernetes_node_label_(.+)
132 - target_label: __address__
133 replacement: kubernetes.default.svc:443
134 - source_labels: [__meta_kubernetes_node_name]
135 regex: (.+)
136 target_label: __metrics_path__
137 replacement: /api/v1/nodes/${1}/proxy/metrics/cadvisor
138 - job_name: 'kubernetes-service-endpoints'
139 kubernetes_sd_configs:
140 - role: endpoints
141 relabel_configs:
142 - source_labels: [__meta_kubernetes_service_annotation_prometheus_io_scrape]
143 action: keep
144 regex: true
145 - source_labels: [__meta_kubernetes_service_annotation_prometheus_io_scheme]
146 action: replace
147 target_label: __scheme__
148 regex: (https?)
149 - source_labels: [__meta_kubernetes_service_annotation_prometheus_io_path]
150 action: replace
151 target_label: __metrics_path__
152 regex: (.+)
153 - source_labels: [__address__, __meta_kubernetes_service_annotation_prometheus_io_port]
154 action: replace
155 target_label: __address__
156 regex: ([^:]+)(?::\d+)?;(\d+)
157 replacement: $1:$2
158 - action: labelmap
159 regex: __meta_kubernetes_service_label_(.+)
160 - source_labels: [__meta_kubernetes_namespace]
161 action: replace
162 target_label: kubernetes_namespace
163 - source_labels: [__meta_kubernetes_service_name]
164 action: replace
165 target_label: kubernetes_name
166 - job_name: 'prometheus-pushgateway'
167 honor_labels: true
168 kubernetes_sd_configs:
169 - role: service
170 relabel_configs:
171 - source_labels: [__meta_kubernetes_service_annotation_prometheus_io_probe]
172 action: keep
173 regex: pushgateway
174 - job_name: 'kubernetes-services'
175 metrics_path: /probe
176 params:
177 module: [http_2xx]
178 kubernetes_sd_configs:
179 - role: service
180 relabel_configs:
181 - source_labels: [__meta_kubernetes_service_annotation_prometheus_io_probe]
182 action: keep
183 regex: true
184 - source_labels: [__address__]
185 target_label: __param_target
186 - target_label: __address__
187 replacement: blackbox
188 - source_labels: [__param_target]
189 target_label: instance
190 - action: labelmap
191 regex: __meta_kubernetes_service_label_(.+)
192 - source_labels: [__meta_kubernetes_namespace]
193 target_label: kubernetes_namespace
194 - source_labels: [__meta_kubernetes_service_name]
195 target_label: kubernetes_name
196 - job_name: 'kubernetes-pods'
197 kubernetes_sd_configs:
198 - role: pod
199 relabel_configs:
200 - source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
201 action: keep
202 regex: true
203 - source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_path]
204 action: replace
205 target_label: __metrics_path__
206 regex: (.+)
207 - source_labels: [__address__, __meta_kubernetes_pod_annotation_prometheus_io_port]
208 action: replace
209 regex: ([^:]+)(?::\d+)?;(\d+)
210 replacement: $1:$2
211 target_label: __address__
212 - action: labelmap
213 regex: __meta_kubernetes_pod_label_(.+)
214 - source_labels: [__meta_kubernetes_namespace]
215 action: replace
216 target_label: kubernetes_namespace
217 - source_labels: [__meta_kubernetes_pod_name]
218 action: replace
219 target_label: kubernetes_pod_name
220
221grafana:
222 adminUser: admin
223 adminPassword: strongpassword
224 service:
225 type: NodePort
226 nodePort: 31300
227 sidecar:
228 dashboards:
229 enabled: true
230 label: grafana_dashboard
231 datasources:
232 datasources.yaml:
233 apiVersion: 1
234 datasources:
235 - name: Prometheus
236 type: prometheus
237 url: http://nem-monitoring-prometheus-server.default.svc.cluster.local
238 access: proxy
Luca Prete9ca8aea2018-11-14 14:53:51 -0800239 isDefault: true