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