diff --git a/dashboards/google-cloud-agent-for-sap/agent-for-sap-hana-availability-monitoring.01.png b/dashboards/google-cloud-agent-for-sap/agent-for-sap-hana-availability-monitoring.01.png index 81713b296d..8e83a88de4 100644 Binary files a/dashboards/google-cloud-agent-for-sap/agent-for-sap-hana-availability-monitoring.01.png and b/dashboards/google-cloud-agent-for-sap/agent-for-sap-hana-availability-monitoring.01.png differ diff --git a/dashboards/google-cloud-agent-for-sap/agent-for-sap-hana-availability-monitoring.json b/dashboards/google-cloud-agent-for-sap/agent-for-sap-hana-availability-monitoring.json index 9282326f13..c4907ca806 100644 --- a/dashboards/google-cloud-agent-for-sap/agent-for-sap-hana-availability-monitoring.json +++ b/dashboards/google-cloud-agent-for-sap/agent-for-sap-hana-availability-monitoring.json @@ -1,41 +1,24 @@ { - "displayName": "SAP HANA Availability Monitoring", - "dashboardFilters": [ - { - "filterType": "SYSTEM_METADATA_LABEL", - "labelKey": "name", - "stringValue": "", - "templateVariable": "" - }, - { - "filterType": "METRIC_LABEL", - "labelKey": "sid", - "stringValue": "", - "templateVariable": "" - } - ], + "displayName": "SAP HANA Interactive Playbook - Availability", "mosaicLayout": { "columns": 48, "tiles": [ { - "width": 24, - "height": 16, + "yPos": 19, + "width": 47, + "height": 8, "widget": { - "title": "HANA System Availability", + "title": "System Outage per node", "xyChart": { "chartOptions": { "mode": "COLOR" }, "dataSets": [ { - "breakdowns": [], - "dimensions": [], - "legendTemplate": "${labels.metadata\\.system\\.name} ${labels.metric\\.sid}:${labels.metric\\.instance_nr} ${labels.status}", - "measures": [], "plotType": "LINE", "targetAxis": "Y1", "timeSeriesQuery": { - "timeSeriesQueryLanguage": "fetch gce_instance\n| metric 'workload.googleapis.com/sap/hana/availability'\n| group_by [metadata.system_labels.name, metric.sid,metric.instance_nr], \n| map add[status:\n if(val() == 1, 'All processes are active','One or more processes are not active')]", + "prometheusQuery": "label_replace((min(workload_googleapis_com:sap_cluster_nodes{monitored_resource=\"gce_instance\"}) by (node,sid) < 2) != bool 2, \"status\", \"Node is offline\", \"\",\"\")\nor \nlabel_replace((max(workload_googleapis_com:sap_hana_availability{monitored_resource=\"gce_instance\"}) by (metadata_system_name,sid) < 1)