summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2022-02-10 14:39:40 +0100
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2022-02-10 14:17:38 +0000
commitebab68196de1693cf5bd987597da1949b4640b6c (patch)
tree87aaedb26f615a296a3ee46ab59680ee4c5e4db1
parent69a9449e18b2c82988e0fa9717b43a292da18ce0 (diff)
[ANSIBLE] Add new dashboard for ONAP services monitoring in Grafana
Change-Id: Ibeb18c82b945a2adbde044f3db40d77076aa3d01 Issue-ID: OOM-2924 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
-rw-r--r--ansible/roles/kube-prometheus-stack/defaults/main.yml10
-rw-r--r--ansible/roles/kube-prometheus-stack/files/grafana_dashboard_onap.json45
2 files changed, 55 insertions, 0 deletions
diff --git a/ansible/roles/kube-prometheus-stack/defaults/main.yml b/ansible/roles/kube-prometheus-stack/defaults/main.yml
index 681f5c0e..ffe43a39 100644
--- a/ansible/roles/kube-prometheus-stack/defaults/main.yml
+++ b/ansible/roles/kube-prometheus-stack/defaults/main.yml
@@ -4,6 +4,7 @@ kube_prometheus_stack:
grafana_dashboards:
- { src: "grafana_dashboard.json", dest: "{{ nfs_mount_path }}/kube-prometheus/kube-prometheus-grafana/dashboards/custom/" }
- { src: "grafana_home.json", dest: "{{ nfs_mount_path }}/kube-prometheus/kube-prometheus-grafana/dashboards/" }
+ - { src: "grafana_dashboard_onap.json", dest: "{{ nfs_mount_path }}/kube-prometheus/kube-prometheus-grafana/dashboards/onap/" }
helm_release_name: kube-prometheus-stack
helm_timeout: "240s"
helm_values_file: "{{ app_data_path }}/kube_prometheus_values.yaml"
@@ -25,6 +26,15 @@ kube_prometheus_stack:
updateIntervalSeconds: 60
options:
path: /var/lib/grafana/dashboards/custom
+ - name: 'onap'
+ orgId: 1
+ folder: 'ONAP'
+ type: file
+ disableDeletion: false
+ editable: true
+ updateIntervalSeconds: 60
+ options:
+ path: /var/lib/grafana/dashboards/onap
persistence:
type: pvc
enabled: true
diff --git a/ansible/roles/kube-prometheus-stack/files/grafana_dashboard_onap.json b/ansible/roles/kube-prometheus-stack/files/grafana_dashboard_onap.json
new file mode 100644
index 00000000..941f7280
--- /dev/null
+++ b/ansible/roles/kube-prometheus-stack/files/grafana_dashboard_onap.json
@@ -0,0 +1,45 @@
+{
+ "annotations": {
+ "list": [
+ {
+ "builtIn": 1,
+ "datasource": "-- Grafana --",
+ "enable": true,
+ "hide": true,
+ "iconColor": "rgba(0, 211, 255, 1)",
+ "name": "Annotations & Alerts",
+ "target": {
+ "limit": 100,
+ "matchAny": false,
+ "tags": [],
+ "type": "dashboard"
+ },
+ "type": "dashboard"
+ }
+ ]
+ },
+ "editable": true,
+ "gnetId": null,
+ "graphTooltip": 0,
+ "id": 30,
+ "links": [],
+ "panels": [],
+ "schemaVersion": 30,
+ "style": "dark",
+ "tags": [
+ "onap",
+ "mariadb"
+ ],
+ "templating": {
+ "list": []
+ },
+ "time": {
+ "from": "now-6h",
+ "to": "now"
+ },
+ "timepicker": {},
+ "timezone": "",
+ "title": "Mariadb-galera",
+ "uid": "PB4-fB-7k",
+ "version": 1
+}