Grafana dashboard: CF SPACE Overview
Description: Space Overview of Cloud Foundry By Naveen Goswami, @SpringerNature engineering-enablement

This dashboard need firehouse_exporter, cf_exporter from [Prometheus bosh-release](https://github.com/bosh-prometheus/prometheus-boshrelease)

{
  "__inputs": [
    {
      "name": "DS_PROMETHEUS",
      "label": "Prometheus",
      "description": "",
      "type": "datasource",
      "pluginId": "prometheus",
      "pluginName": "Prometheus"
    }
  ],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "6.1.2"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "singlestat",
      "name": "Singlestat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": ""
    },
    {
      "type": "panel",
      "id": "yesoreyeram-boomtable-panel",
      "name": "Boom Table",
      "version": "1.0.0"
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": 10063,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1555500980095,
  "links": [],
  "panels": [
    {
      "cacheTimeout": null,
      "colorBackground": true,
      "colorValue": false,
      "colors": [
        "#FA6400",
        "#37872D",
        "#d44a3a"
      ],
      "decimals": null,
      "format": "percent",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 2,
        "w": 12,
        "x": 0,
        "y": 0
      },
      "id": 13,
      "interval": "",
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "nullText": null,
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
      },
      "tableColumn": "",
      "targets": [
        {
          "expr": "avg((sum(min(firehose_container_metric_memory_bytes/1024/1024) by (instance_index, application_id)) by (application_id) / on(application_id) group_right(space_name) (cf_application_memory_mb{organization_name=\"$OrgName\", space_name=\"$SpaceName\"} * on (application_id) group_left(space_name) sum(cf_application_instances) by (application_id)))*100) by (organization_name)",
          "format": "time_series",
          "instant": true,
          "intervalFactor": 1,
          "refId": "A"
        }
      ],
      "thresholds": "40,85",
      "timeFrom": null,
      "timeShift": null,
      "title": "Average assigned memory utilization in space $SpaceName",
      "type": "singlestat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "current"
    },
    {
      "cacheTimeout": null,
      "colorBackground": true,
      "colorValue": false,
      "colors": [
        "rgba(112, 103, 95, 0.89)",
        "rgba(112, 103, 95, 0.89)",
        "rgba(112, 103, 95, 0.89)"
      ],
      "format": "decmbytes",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 2,
        "w": 12,
        "x": 12,
        "y": 0
      },
      "id": 19,
      "interval": null,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "nullText": null,
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
      },
      "tableColumn": "",
      "targets": [
        {
          "expr": "sum(cf_application_memory_mb{organization_name=\"$OrgName\", space_name=\"$SpaceName\"} * on (application_id) group_right(space_name) sum(cf_application_instances{state=\"STARTED\"}) by (application_id)) ",
          "format": "time_series",
          "instant": true,
          "intervalFactor": 1,
          "refId": "A"
        }
      ],
      "thresholds": "",
      "timeFrom": null,
      "timeShift": null,
      "title": "Total Memory Used by space $SpaceName in org $OrgName",
      "type": "singlestat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "avg"
    },
    {
      "cacheTimeout": null,
      "colorBackground": true,
      "colorValue": false,
      "colors": [
        "#73BF69",
        "rgba(112, 103, 95, 0.89)",
        "rgba(112, 103, 95, 0.89)"
      ],
      "decimals": null,
      "format": "decmbytes",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 2,
        "w": 12,
        "x": 0,
        "y": 2
      },
      "id": 21,
      "interval": "",
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "nullText": null,
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
      },
      "tableColumn": "",
      "targets": [
        {
          "expr": "cf_organization_total_memory_mb_quota{organization_name=\"$OrgName\"}*(1000/1024)",
          "format": "time_series",
          "instant": true,
          "intervalFactor": 1,
          "refId": "A"
        }
      ],
      "thresholds": "1,100000",
      "timeFrom": null,
      "timeShift": null,
      "title": "Total memory quota for $OrgName",
      "type": "singlestat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "current"
    },
    {
      "cacheTimeout": null,
      "colorBackground": true,
      "colorValue": false,
      "colors": [
        "#C4162A",
        "#FF9830",
        "#37872D"
      ],
      "decimals": null,
      "description": "Scale the quota when turned red",
      "format": "percent",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 2,
        "w": 12,
        "x": 12,
        "y": 2
      },
      "id": 23,
      "interval": "",
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "nullText": null,
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
      },
      "tableColumn": "",
      "targets": [
        {
          "expr": "100-sum(cf_application_memory_mb{organization_name=\"$OrgName\"} * on (application_id) group_right(space_name) sum(cf_application_instances{state=\"STARTED\"}) by (application_id)) / min(cf_organization_total_memory_mb_quota{organization_name=\"$OrgName\"}*(1000/1024)) * 100",
          "format": "time_series",
          "instant": true,
          "intervalFactor": 1,
          "refId": "A"
        }
      ],
      "thresholds": "10,15",
      "timeFrom": null,
      "timeShift": null,
      "title": "Total memory quota left for $OrgName",
      "type": "singlestat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "current"
    },
    {
      "columns": [],
      "description": "",
      "fontSize": "100%",
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 0,
        "y": 4
      },
      "id": 8,
      "links": [],
      "pageSize": null,
      "scroll": true,
      "showHeader": true,
      "sort": {
        "col": 10,
        "desc": false
      },
      "styles": [
        {
          "alias": "Time",
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "pattern": "Time",
          "type": "hidden"
        },
        {
          "alias": "",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "application_id",
          "thresholds": [],
          "type": "hidden",
          "unit": "short"
        },
        {
          "alias": "",
          "colorMode": "cell",
          "colors": [
            "rgba(50, 172, 45, 0.97)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(245, 54, 54, 0.9)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "link": true,
          "linkTargetBlank": true,
          "linkTooltip": "memory recommendation for ${__cell}",
          "linkUrl": "https://mission-control.snpaas.eu/d/sf7EqRgZzrs/cf-app-overview?orgId=1&var-interval=5m&var-OrgName=$OrgName&var-SpaceName=$SpaceName&var-AppName=${__cell}&var-AppId=${__cell_1}&fullscreen&panelId=26",
          "mappingType": 1,
          "pattern": "application_name",
          "thresholds": [
            "40",
            "85"
          ],
          "type": "number",
          "unit": "short"
        },
        {
          "alias": "",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        },
        {
          "alias": "assigned_memory_utilized",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "Value #A",
          "thresholds": [],
          "type": "number",
          "unit": "percent"
        },
        {
          "alias": "",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "Value #B",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        },
        {
          "alias": "assigned_memory_utilized",
          "colorMode": "cell",
          "colors": [
            "#FA6400",
            "#37872D",
            "rgba(245, 54, 54, 0.9)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "Value",
          "thresholds": [
            "40",
            "85"
          ],
          "type": "number",
          "unit": "percent"
        },
        {
          "alias": "",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "decimals": 2,
          "pattern": "/.*/",
          "thresholds": [],
          "type": "hidden",
          "unit": "short"
        }
      ],
      "targets": [
        {
          "expr": "(sum(min(firehose_container_metric_memory_bytes/1024/1024) by (instance_index, application_id)) by (application_id) / on(application_id) group_right(space_name) (cf_application_memory_mb{organization_name=\"$OrgName\", space_name=\"$SpaceName\"} * on (application_id) group_left(space_name) sum(cf_application_instances) by (application_id)))*100 < 40",
          "format": "table",
          "instant": true,
          "intervalFactor": 1,
          "legendFormat": "{{application_name}}",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Applications recommended Scaling Down",
      "transform": "table",
      "type": "table"
    },
    {
      "activePatternIndex": 0,
      "defaultPattern": {
        "bgColors": "orange|green|red",
        "bgColors_overrides": "0->green|2->red|1->yellow",
        "clickable_cells_link": "",
        "col_name": "assigned_memory_utilized",
        "decimals": 2,
        "delimiter": ".",
        "enable_bgColor": true,
        "enable_bgColor_overrides": false,
        "enable_clickable_cells": false,
        "enable_textColor": false,
        "enable_textColor_overrides": false,
        "enable_time_based_thresholds": false,
        "enable_transform": true,
        "enable_transform_overrides": false,
        "filter": {
          "value_above": "",
          "value_below": ""
        },
        "format": "percent",
        "name": "Default Pattern",
        "null_color": "darkred",
        "null_textcolor": "black",
        "null_value": "No data",
        "pattern": "*",
        "row_col_wrapper": "_",
        "row_name": "_series_",
        "textColors": "red|orange|green",
        "textColors_overrides": "0->red|2->green|1->yellow",
        "thresholds": "40,85",
        "time_based_thresholds": [],
        "tooltipTemplate": "Series : _series_ <br/>Row Name : _row_name_ <br/>Col Name : _col_name_ <br/>Value : _value_",
        "transform_values": "_value_|_value_|_value_",
        "transform_values_overrides": "0->down|1->up",
        "valueName": "avg"
      },
      "default_title_for_rows": "app_name",
      "description": "",
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 12,
        "y": 4
      },
      "id": 24,
      "links": [],
      "patterns": [],
      "row_col_wrapper": "_",
      "targets": [
        {
          "expr": "(sum(min(firehose_container_metric_memory_bytes/1024/1024) by (instance_index, application_id)) by (application_id) / on(application_id) group_right(space_name) (cf_application_memory_mb{organization_name=\"$OrgName\", space_name=\"$SpaceName\"} * on (application_id) group_left(space_name) sum(cf_application_instances) by (application_id)))*100 > 85",
          "format": "time_series",
          "instant": true,
          "intervalFactor": 1,
          "legendFormat": "{{application_name}}",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Applications recommended Scaling Up",
      "type": "yesoreyeram-boomtable-panel"
    },
    {
      "columns": [],
      "description": "",
      "fontSize": "100%",
      "gridPos": {
        "h": 10,
        "w": 12,
        "x": 0,
        "y": 13
      },
      "id": 30,
      "links": [],
      "pageSize": null,
      "scroll": true,
      "showHeader": true,
      "sort": {
        "col": 3,
        "desc": true
      },
      "styles": [
        {
          "alias": "Time",
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "pattern": "Time",
          "type": "hidden"
        },
        {
          "alias": "",
          "colorMode": null,
          "colors": [
            "#1F60C4",
            "#1F60C4",
            "rgba(245, 54, 54, 0.9)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "link": true,
          "linkTargetBlank": true,
          "linkTooltip": "go to ${__cell} overview",
          "linkUrl": "https://mission-control.snpaas.eu/d/sf7EqRgZzrs/cf-app-overview?orgId=1&var-interval=5m&var-OrgName=$OrgName&var-SpaceName=$SpaceName&var-AppName=${__cell}",
          "mappingType": 1,
          "pattern": "application_name",
          "thresholds": [
            ""
          ],
          "type": "number",
          "unit": "short"
        },
        {
          "alias": "assigned_memory_utilized",
          "colorMode": "cell",
          "colors": [
            "#FA6400",
            "#37872D",
            "rgba(245, 54, 54, 0.9)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "Value",
          "thresholds": [
            "40",
            "85"
          ],
          "type": "hidden",
          "unit": "percent"
        },
        {
          "alias": "",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "/.*/",
          "thresholds": [],
          "type": "hidden",
          "unit": "short"
        }
      ],
      "targets": [
        {
          "expr": "sort(cf_application_info{organization_name=\"$OrgName\", space_name=\"$SpaceName\", state=\"STOPPED\"})",
          "format": "table",
          "instant": true,
          "intervalFactor": 1,
          "legendFormat": "{{application_name}}",
          "refId": "A"
        },
        {
          "expr": "",
          "format": "table",
          "intervalFactor": 1,
          "refId": "B"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "In-active Applications",
      "transform": "table",
      "type": "table"
    },
    {
      "columns": [],
      "description": "",
      "fontSize": "100%",
      "gridPos": {
        "h": 10,
        "w": 12,
        "x": 12,
        "y": 13
      },
      "id": 29,
      "links": [],
      "pageSize": null,
      "scroll": true,
      "showHeader": true,
      "sort": {
        "col": 3,
        "desc": true
      },
      "styles": [
        {
          "alias": "Time",
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "pattern": "Time",
          "type": "hidden"
        },
        {
          "alias": "",
          "colorMode": null,
          "colors": [
            "#1F60C4",
            "#1F60C4",
            "rgba(245, 54, 54, 0.9)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "link": true,
          "linkTargetBlank": true,
          "linkTooltip": "go to ${__cell} overview",
          "linkUrl": "https://mission-control.snpaas.eu/d/sf7EqRgZzrs/cf-app-overview?orgId=1&var-interval=5m&var-OrgName=$OrgName&var-SpaceName=$SpaceName&var-AppName=${__cell}",
          "mappingType": 1,
          "pattern": "application_name",
          "thresholds": [
            ""
          ],
          "type": "number",
          "unit": "short"
        },
        {
          "alias": "assigned_memory_utilized",
          "colorMode": "cell",
          "colors": [
            "#FA6400",
            "#37872D",
            "rgba(245, 54, 54, 0.9)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "Value",
          "thresholds": [
            "40",
            "85"
          ],
          "type": "hidden",
          "unit": "percent"
        },
        {
          "alias": "",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "/.*/",
          "thresholds": [],
          "type": "hidden",
          "unit": "short"
        }
      ],
      "targets": [
        {
          "expr": "sort(cf_application_info{organization_name=\"$OrgName\", space_name=\"$SpaceName\", state=\"STARTED\"})",
          "format": "table",
          "instant": true,
          "intervalFactor": 1,
          "legendFormat": "{{application_name}}",
          "refId": "A"
        },
        {
          "expr": "",
          "format": "table",
          "intervalFactor": 1,
          "refId": "B"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Active Applications",
      "transform": "table",
      "type": "table"
    },
    {
      "activePatternIndex": 0,
      "defaultPattern": {
        "bgColors": "green|red|red",
        "bgColors_overrides": "0->green|2->red|1->yellow",
        "clickable_cells_link": "",
        "col_name": "number of dead instances",
        "decimals": 2,
        "delimiter": ".",
        "enable_bgColor": true,
        "enable_bgColor_overrides": false,
        "enable_clickable_cells": false,
        "enable_textColor": false,
        "enable_textColor_overrides": false,
        "enable_time_based_thresholds": false,
        "enable_transform": false,
        "enable_transform_overrides": false,
        "filter": {
          "value_above": "",
          "value_below": ""
        },
        "format": "none",
        "name": "Default Pattern",
        "null_color": "",
        "null_textcolor": "o",
        "null_value": "No data",
        "pattern": "*",
        "row_col_wrapper": "_",
        "row_name": "_series_",
        "textColors": "red|orange|green",
        "textColors_overrides": "0->red|2->green|1->yellow",
        "thresholds": "1,100",
        "time_based_thresholds": [],
        "tooltipTemplate": "Series : _series_ <br/>Row Name : _row_name_ <br/>Col Name : _col_name_ <br/>Value : _value_",
        "transform_values": "_value_|_value_|_value_",
        "transform_values_overrides": "0->down|1->up",
        "valueName": "avg"
      },
      "default_title_for_rows": "application_name",
      "description": "No Data is good ;) here. Shows application whose desired number of instance are greater than number of running instances",
      "gridPos": {
        "h": 10,
        "w": 12,
        "x": 0,
        "y": 23
      },
      "hide_first_column": false,
      "hide_headers": false,
      "id": 11,
      "links": [],
      "patterns": [],
      "row_col_wrapper": "_",
      "targets": [
        {
          "expr": "min(cf_application_instances{organization_name=~\"$OrgName\",space_name=\"$SpaceName\", state=\"STARTED\"} - cf_application_instances_running{organization_name=~\"engineering-enablement\"}>0) by (application_name)",
          "format": "time_series",
          "instant": true,
          "intervalFactor": 1,
          "legendFormat": "{{application_name}}",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "#Number of desired instances != #Number of running instances ",
      "type": "yesoreyeram-boomtable-panel"
    },
    {
      "aliasColors": {},
      "bars": false,
      "cacheTimeout": null,
      "dashLength": 10,
      "dashes": false,
      "fill": 1,
      "gridPos": {
        "h": 5,
        "w": 12,
        "x": 12,
        "y": 23
      },
      "id": 26,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "sum(cf_application_info{organization_name=\"$OrgName\", space_name=\"$SpaceName\",state=\"STARTED\"}) by (organization_name)",
          "format": "time_series",
          "instant": false,
          "intervalFactor": 1,
          "legendFormat": "{{organization_name}}-$SpaceName",
          "refId": "A"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Number of applications active",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "cacheTimeout": null,
      "dashLength": 10,
      "dashes": false,
      "fill": 1,
      "gridPos": {
        "h": 5,
        "w": 12,
        "x": 12,
        "y": 28
      },
      "id": 28,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "sum(sum(cf_application_instances{organization_name=\"$OrgName\", space_name=\"$SpaceName\",state=\"STARTED\"}) by (space_name))",
          "format": "time_series",
          "instant": false,
          "intervalFactor": 1,
          "legendFormat": "$OrgName-$SpaceName",
          "refId": "A"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Total Number of Instances",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    }
  ],
  "refresh": false,
  "schemaVersion": 18,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PROMETHEUS}",
        "definition": "label_values(cf_application_info, organization_name)",
        "hide": 0,
        "includeAll": false,
        "label": "OrgName",
        "multi": false,
        "name": "OrgName",
        "options": [],
        "query": "label_values(cf_application_info, organization_name)",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PROMETHEUS}",
        "definition": "label_values(cf_application_info{organization_name=~\"$OrgName\",},organization_id)",
        "hide": 2,
        "includeAll": false,
        "label": "OrgId",
        "multi": false,
        "name": "OrgId",
        "options": [],
        "query": "label_values(cf_application_info{organization_name=~\"$OrgName\",},organization_id)",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PROMETHEUS}",
        "definition": "label_values(cf_application_info{organization_name=~\"$OrgName\"},space_name)",
        "hide": 0,
        "includeAll": false,
        "label": "SpaceName",
        "multi": false,
        "name": "SpaceName",
        "options": [],
        "query": "label_values(cf_application_info{organization_name=~\"$OrgName\"},space_name)",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-15m",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "timezone": "",
  "title": "CF SPACE Overview",
  "uid": "eF19g4RZk",
  "version": 1,
  "description": "Space Overview of Cloud Foundry By Naveen Goswami, @SpringerNature engineering-enablement"
}