1 #######################################################################################
2 # Copyright ETSI Contributors and Others.
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
8 # http://www.apache.org/licenses/LICENSE-2.0
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
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #######################################################################################
17 # Default values for osm.
18 # This is a YAML-formatted file.
19 # Declare variables to be passed into your templates.
26 repositoryBase: docker.io/opensourcemano
27 pullPolicy: IfNotPresent
28 # Overrides the image tag whose default is the chart appVersion.
36 # Specifies whether a service account should be created
38 # Annotations to add to the service account
40 # The name of the service account to use.
41 # If not set and create is true, a name is generated using the fullname template
60 behindHttpProxy: false
62 # HTTP_PROXY: <HTTP_PROXY>
63 # HTTPS_PROXY: <HTTPS_PROXY>
64 # NO_PROXY: <NO_PROXY>
66 oldServiceAssurance: false
76 fullnameOverride: "grafana"
83 name: sc-dashboard-volume-k8s
85 name: sc-dashboard-volume-osm
87 - name: sc-dashboard-volume-k8s
88 mountPath: "/tmp/dashboards/Kubernetes Cluster"
89 - name: sc-dashboard-volume-osm
90 mountPath: "/tmp/dashboards/Open Source MANO"
92 extraClusterRoleRules:
106 - name: osm_prometheus
108 url: http://prometheus:9090
114 url: http://osm-monitoring-kube-promet-prometheus.monitoring:9090
122 - name: 'Kubernetes Cluster'
124 folder: 'Kubernetes Cluster'
126 disableDeletion: false
128 path: '/tmp/dashboards/Kubernetes Cluster'
129 - name: 'Open Source MANO'
131 folder: 'Open Source MANO'
133 disableDeletion: false
135 path: '/tmp/dashboards/Open Source MANO'
139 folder: "/tmp/dashboards/"
143 - name: sc-dashboard-volume-k8s
144 mountPath: "/tmp/dashboards/Kubernetes Cluster"
145 - name: sc-dashboard-volume-osm
146 mountPath: "/tmp/dashboards/Open Source MANO"
152 value: grafana_datasource
154 value: /etc/grafana/provisioning/datasources
157 image: kiwigrid/k8s-sidecar:1.15.6
158 imagePullPolicy: IfNotPresent
159 name: grafana-sc-datasources
161 terminationMessagePath: /dev/termination-log
162 terminationMessagePolicy: File
164 - mountPath: /etc/grafana/provisioning/datasources
171 protocol: "PLAINTEXT"
172 fullnameOverride: "kafka"
180 # repository: opensourcemano/keystone
181 # tag: "testing-daily"
184 # secretName: "keystone-secret"
190 # repository: opensourcemano/lcm
191 # tag: "testing-daily"
194 # secretName: "lcm-secret"
196 OSMLCM_VCA_CLOUD: "lxd-cloud"
197 OSMLCM_VCA_K8S_CLOUD: "k8scloud"
198 # OSMLCM_VCA_APIPROXY: "<VCA API proxy>"
199 # OSMLCM_VCA_ENABLEOSUPGRADE: true
200 # OSMLCM_VCA_APTMIRROR: "http://archive.ubuntu.com/ubuntu/"
206 # repository: opensourcemano/mon
207 # tag: "testing-daily"
210 # secretName: "mon-secret"
217 fullnameOverride: "mysql"
227 # repository: opensourcemano/nbi
228 # tag: "testing-daily"
231 # secretName: "nbi-secret"
240 # repository: opensourcemano/ng-ui
241 # tag: "testing-daily"
244 # pla module is disabled by default unless global.oldServiceAssurance and pla.enabled are set to true
249 # repository: opensourcemano/pla
250 # tag: "testing-daily"
253 # pol module is disabled by default unless global.oldServiceAssurance and pol.enabled are set to true
258 # repository: opensourcemano/pol
259 # tag: "testing-daily"
262 # secretName: "pol-secret"
269 prometheus-node-exporter:
275 - web.enable-lifecycle
278 configPath: /etc/prometheus/prometheus.yml
279 fullnameOverride: "prometheus"
285 prometheus-config-sidecar:
287 # readOnlyRootFilesystem: true
288 allowPrivilegeEscalation: false
290 image: opensourcemano/prometheus:testing-daily
291 imagePullPolicy: IfNotPresent
292 command: ["/bin/sh", "-c"]
293 args: ["sleep 50; python -u ./app.py"]
296 mountPath: /etc/prometheus
297 - name: prom-config-base
298 mountPath: /etc/prometheus_base
306 name: osm-prometheus-sidecar-configmap
308 - name: prometheus-init-config
310 command: ["/bin/sh", "-c"]
311 #args: [' sleep 100000 ']
312 args: ['if [ ! -f "/etc/prometheus/prometheus.yml" ]; then cp /config/prometheus.yml /etc/prometheus; fi; cp /config/osm_metric_rules.yml /config/osm_alert_rules.yml /etc/prometheus']
315 mountPath: /etc/prometheus
316 - name: prom-config-base
320 mountPath: /etc/prometheus
324 - name: prom-config-base
328 name: osm-prom-configmap
330 - key: prometheus.yml
333 name: osm-prometheus-recordingrules-configmap
335 - key: osm_metric_rules.yml
336 path: osm_metric_rules.yml
338 name: osm-prometheus-alertingrules-configmap
340 - key: osm_alert_rules.yml
341 path: osm_alert_rules.yml
347 name: osm-prometheus-alertingrules-configmap
349 osm_alert_rules.yml: |
351 - name: osm_alert_rules
354 expr: vm_status_extended != 1
357 summary: "VDU {{ "{{" }} $labels.vm_id }} in VIM {{ "{{" }} $labels.vim_id }} is down"
358 description: "VDU {{ "{{" }} $labels.vm_id }} in VIM {{ "{{" }} $labels.vim_id }} has been down for more than 3 minutes. NS instance id is {{ "{{" }} $labels.ns_id }}"
363 name: osm-prometheus-recordingrules-configmap
365 osm_metric_rules.yml: |
367 - name: osm_metric_rules
369 - record: vm_status_extended
370 expr: (last_over_time(vm_status[1m]) * on (vm_id, vim_id) group_left(ns_id, vnf_id, vdu_id, project_id, job, vdu_name, vnf_member_index) last_over_time(ns_topology[1m])) or (last_over_time(ns_topology[1m]) * -1)
374 expr: (0 * (count (vm_status_extended==0) by (ns_id, vnf_id)>=0)) or (min by (ns_id, vnf_id) (vm_status_extended))
378 expr: (0 * (count (vm_status_extended==0) by (ns_id)>=0)) or (min by (ns_id) (vm_status_extended))
385 name: osm-prometheus-sidecar-configmap
387 MONGODB_URL: "mongodb://mongodb-k8s:27017/?replicaSet=rs0"
388 PROMETHEUS_CONFIG_FILE: "/etc/prometheus/prometheus.yml"
389 PROMETHEUS_BASE_CONFIG_FILE: "/etc/prometheus_base/prometheus.yml"
390 TARGET_DATABASE: "osm"
391 PROMETHEUS_URL: "http://prometheus:9090"
396 name: osm-prom-configmap
400 scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
401 evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
402 # scrape_timeout is set to the global default (10s).
403 # Alertmanager configuration
410 - "osm_metric_rules.yml"
411 - "osm_alert_rules.yml"
413 - job_name: 'mon_exporter'
415 - targets: ['mon:8000']
416 - job_name: pushgateway
421 - pushgateway-prometheus-pushgateway:9091
422 - job_name: prometheus
428 - targets: ['prometheus-node-exporter:9100']
430 fullnameOverride: "alertmanager"
439 - name: default-receiver
442 - url: http://webhook-translator:9998/vdu_down
443 - name: scaleout-webhook
445 - url: http://webhook-translator:9998/scaleout_vdu
446 - name: scalein-webhook
448 - url: http://webhook-translator:9998/scalein_vdu
449 - name: alarm-webhook
451 - url: http://webhook-translator:9998/vdu_alarm
455 receiver: default-receiver
457 - receiver: vdu-webhook
460 - alertname = "vdu_down"
461 - receiver: 'scaleout-webhook'
464 - alertname =~ "^scaleout_.*"
465 - receiver: 'scalein-webhook'
468 - alertname =~ "^scalein_.*"
469 - receiver: 'alarm-webhook'
472 - alertname =~ "^vdu_alarm_.*"
473 prometheus-pushgateway:
474 fullnameOverride: "pushgateway-prometheus-pushgateway"
482 # repository: opensourcemano/ro
483 # tag: "testing-daily"
486 # secretName: "ro-secret"
502 # repository: opensourcemano/webhook
503 # tag: "testing-daily"