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