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