summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
+}