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