apiVersion: v1
kind: ConfigMap
metadata:
  name: service-catalog-dashboard
  labels:
    grafana_dashboard: "1"
    app: monitoring-grafana
data:
  service-catalog-dashboard.json: |-
    {
      "annotations": {
        "list": [
        {
          "$$hashKey": "object:124",
          "builtIn": 1,
          "datasource": "-- Grafana --",
          "enable": true,
          "hide": true,
          "iconColor": "rgba(0, 211, 255, 1)",
          "name": "Annotations & Alerts",
          "type": "dashboard"
        }
        ]
      },
      "editable": false,
      "gnetId": null,
      "graphTooltip": 0,
      "id": 28,
      "iteration": 1558253170613,
      "links": [],
      "panels": [
      {
        "collapsed": false,
        "gridPos": {
          "h": 1,
          "w": 24,
          "x": 0,
          "y": 0
        },
        "id": 38,
        "panels": [],
        "title": "[CONTROLLER] Pod Metrics",
        "type": "row"
      },
      {
        "aliasColors": {},
        "bars": false,
        "dashLength": 10,
        "dashes": false,
        "datasource": "Prometheus",
        "editable": true,
        "error": false,
        "fill": 1,
        "grid": {
          "threshold1Color": "rgba(216, 200, 27, 0.27)",
          "threshold2Color": "rgba(234, 112, 112, 0.22)"
        },
        "gridPos": {
          "h": 7,
          "w": 24,
          "x": 0,
          "y": 1
        },
        "id": 39,
        "isNew": false,
        "legend": {
          "alignAsTable": true,
          "avg": true,
          "current": true,
          "hideEmpty": false,
          "hideZero": false,
          "max": false,
          "min": false,
          "rightSide": true,
          "show": true,
          "total": false,
          "values": true
        },
        "lines": true,
        "linewidth": 2,
        "links": [],
        "nullPointMode": "connected",
        "paceLength": 10,
        "percentage": false,
        "pointradius": 5,
        "points": false,
        "renderer": "flot",
        "seriesOverrides": [],
        "spaceLength": 10,
        "stack": false,
        "steppedLine": false,
        "targets": [
        {
          "expr": "sum by(container) (container_memory_usage_bytes{pod=~\"service-catalog-catalog-controller-manager.*\", container!=\"POD\",container!=\"\"})",
          "format": "time_series",
          "instant": false,
          "interval": "10s",
          "intervalFactor": 1,
          "legendFormat": "Current: {{`{{container}}`}}",
          "metric": "container_memory_usage_bytes",
          "refId": "A",
          "step": 15
        },
        {
          "expr": "kube_pod_container_resource_requests_memory_bytes{pod=~\"service-catalog-catalog-controller-manager.*\"}",
          "format": "time_series",
          "interval": "10s",
          "intervalFactor": 2,
              "legendFormat": "Requests: {{`{{container}}`}}",
          "metric": "kube_pod_container_resource_requests_memory_bytes",
          "refId": "B",
          "step": 20
        },
        {
          "expr": "kube_pod_container_resource_limits_memory_bytes{pod=~\"service-catalog-catalog-controller-manager.*\"}",
          "format": "time_series",
          "interval": "10s",
          "intervalFactor": 2,
              "legendFormat": "Limit: {{`{{container}}`}}",
          "metric": "kube_pod_container_resource_limits_memory_bytes",
          "refId": "C",
          "step": 20
        }
        ],
        "thresholds": [],
        "timeFrom": null,
        "timeRegions": [],
        "timeShift": null,
        "title": "Memory Usage",
        "tooltip": {
          "msResolution": true,
          "shared": true,
          "sort": 0,
          "value_type": "cumulative"
        },
        "type": "graph",
        "xaxis": {
          "buckets": null,
          "mode": "time",
          "name": null,
          "show": true,
          "values": []
        },
        "yaxes": [
        {
          "format": "bytes",
          "logBase": 1,
          "show": true
        },
        {
          "format": "short",
          "logBase": 1,
          "show": true
        }
        ],
        "yaxis": {
          "align": false,
          "alignLevel": null
        }
      },
      {
        "aliasColors": {},
        "bars": false,
        "dashLength": 10,
        "dashes": false,
        "datasource": "Prometheus",
        "fill": 1,
        "gridPos": {
          "h": 8,
          "w": 12,
          "x": 0,
          "y": 8
        },
        "id": 12,
        "legend": {
          "avg": false,
          "current": false,
          "max": false,
          "min": false,
          "show": false,
          "total": false,
          "values": false
        },
        "lines": true,
        "linewidth": 1,
        "links": [],
        "nullPointMode": "null",
        "paceLength": 10,
        "percentage": false,
        "pointradius": 5,
        "points": false,
        "renderer": "flot",
        "seriesOverrides": [],
        "spaceLength": 10,
        "stack": false,
        "steppedLine": false,
        "targets": [
        {
          "expr": "sum(rate(container_network_receive_bytes_total{namespace=\"kyma-system\",pod=~\"service-catalog-catalog-controller-manager.*\"}[3m]))",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "",
          "refId": "A"
        }
        ],
        "thresholds": [],
        "timeFrom": null,
        "timeRegions": [],
        "timeShift": null,
        "title": "Network in [kB/s]",
        "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,
        "dashLength": 10,
        "dashes": false,
        "datasource": "Prometheus",
        "editable": true,
        "error": false,
        "fill": 1,
        "grid": {
          "threshold1Color": "rgba(216, 200, 27, 0.27)",
          "threshold2Color": "rgba(234, 112, 112, 0.22)"
        },
        "gridPos": {
          "h": 8,
          "w": 12,
          "x": 12,
          "y": 8
        },
        "id": 8,
        "isNew": false,
        "legend": {
          "alignAsTable": true,
          "avg": true,
          "current": true,
          "hideEmpty": false,
          "hideZero": false,
          "max": false,
          "min": false,
          "rightSide": true,
          "show": true,
          "total": false,
          "values": true
        },
        "lines": true,
        "linewidth": 2,
        "links": [],
        "nullPointMode": "connected",
        "paceLength": 10,
        "percentage": false,
        "pointradius": 5,
        "points": false,
        "renderer": "flot",
        "seriesOverrides": [],
        "spaceLength": 10,
        "stack": false,
        "steppedLine": false,
        "targets": [
        {
          "expr": "sum by (container)(rate(container_cpu_usage_seconds_total{image!=\"\",container!=\"POD\",container!=\"\",pod=~\"service-catalog-catalog-controller-manager.*\"}[1m]))",
          "format": "time_series",
          "intervalFactor": 2,
          "legendFormat": "Current: {{`{{container}}`}}",
          "refId": "A",
          "step": 30
        },
        {
          "expr": "kube_pod_container_resource_requests_cpu_cores{pod=~\"service-catalog-catalog-controller-manager.*\"}",
          "format": "time_series",
          "interval": "10s",
          "intervalFactor": 2,
              "legendFormat": "Requests: {{`{{container}}`}}",
          "metric": "kube_pod_container_resource_requests_cpu_cores",
          "refId": "B",
          "step": 20
        },
        {
          "expr": "kube_pod_container_resource_limits_cpu_cores{pod=~\"service-catalog-catalog-controller-manager.*\"}",
          "format": "time_series",
          "interval": "10s",
          "intervalFactor": 2,
              "legendFormat": "Limit: {{`{{container}}`}}",
          "metric": "kube_pod_container_resource_limits_memory_bytes",
          "refId": "C",
          "step": 20
        }
        ],
        "thresholds": [],
        "timeFrom": null,
        "timeRegions": [],
        "timeShift": null,
        "title": "CPU Usage",
        "tooltip": {
          "msResolution": true,
          "shared": true,
          "sort": 0,
          "value_type": "cumulative"
        },
        "type": "graph",
        "xaxis": {
          "buckets": null,
          "mode": "time",
          "name": null,
          "show": true,
          "values": []
        },
        "yaxes": [
        {
          "format": "short",
          "logBase": 1,
          "show": true
        },
        {
          "format": "short",
          "logBase": 1,
          "show": true
        }
        ],
        "yaxis": {
          "align": false,
          "alignLevel": null
        }
      },
      {
        "collapsed": false,
        "gridPos": {
          "h": 1,
          "w": 24,
          "x": 0,
          "y": 16
        },
        "id": 31,
        "panels": [],
        "title": "[CONTROLLER] Business Metrics",
        "type": "row"
      },
      {
        "aliasColors": {},
        "bars": false,
        "dashLength": 10,
        "dashes": false,
        "datasource": "Prometheus",
        "description": "This diagram represent the number of service classes and service plans by Broker",
        "fill": 1,
        "gridPos": {
          "h": 7,
          "w": 24,
          "x": 0,
          "y": 17
        },
        "id": 34,
        "legend": {
          "alignAsTable": true,
          "avg": false,
          "current": true,
          "hideEmpty": true,
          "hideZero": true,
          "max": false,
          "min": false,
          "rightSide": true,
          "show": true,
          "total": false,
          "values": true
        },
        "lines": true,
        "linewidth": 1,
        "links": [],
        "nullPointMode": "null",
        "paceLength": 10,
        "percentage": false,
        "pointradius": 5,
        "points": false,
        "renderer": "flot",
        "seriesOverrides": [
        {
          "alias": "plans from helm-broker ",
          "yaxis": 2
        },
        {
          "alias": "plans from application-broker ",
          "yaxis": 2
        }
        ],
        "spaceLength": 10,
        "stack": false,
        "steppedLine": false,
        "targets": [
        {
          "expr": "servicecatalog_broker_service_class_count",
          "format": "time_series",
          "interval": "",
          "intervalFactor": 1,
              "legendFormat": "classes from {{`{{broker}}`}} in namespace {{`{{exported_namespace}}`}}",
          "refId": "A"
        },
        {
          "expr": "servicecatalog_broker_service_plan_count",
          "format": "time_series",
          "intervalFactor": 1,
              "legendFormat": "plans from {{`{{broker}}`}} in namespace {{`{{exported_namespace}}`}}",
          "refId": "B"
        }
        ],
        "thresholds": [],
        "timeFrom": null,
        "timeRegions": [],
        "timeShift": null,
        "title": "No. of classes and plans by Broker",
        "tooltip": {
          "shared": true,
          "sort": 0,
          "value_type": "individual"
        },
        "type": "graph",
        "xaxis": {
          "buckets": null,
          "mode": "time",
          "name": null,
          "show": true,
          "values": []
        },
        "yaxes": [
        {
          "decimals": 0,
          "format": "short",
          "label": "No. of classes",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "decimals": 0,
          "format": "short",
          "label": "No. of plans",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
        ],
        "yaxis": {
          "align": false,
          "alignLevel": null
        }
      },
      {
        "aliasColors": {},
        "bars": false,
        "dashLength": 10,
        "dashes": false,
        "datasource": "Prometheus",
        "description": "",
          "fill": 1,
        "gridPos": {
          "h": 9,
          "w": 24,
          "x": 0,
          "y": 24
        },
        "id": 33,
        "interval": "",
        "legend": {
          "alignAsTable": true,
          "avg": false,
          "current": false,
          "hideEmpty": false,
          "hideZero": false,
          "max": false,
          "min": false,
          "rightSide": true,
          "show": true,
          "total": false,
          "values": false
        },
        "lines": true,
        "linewidth": 1,
        "links": [],
        "nullPointMode": "null",
        "paceLength": 10,
        "percentage": false,
        "pointradius": 2,
        "points": true,
        "renderer": "flot",
        "seriesOverrides": [],
        "spaceLength": 10,
        "stack": false,
        "steppedLine": false,
        "targets": [
        {
          "expr": "(rate(servicecatalog_osb_request_count[1m]) * 60) / 2",
          "format": "time_series",
          "hide": false,
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "{{`{{broker}}`}} {{`{{method}}`}} {{`{{status}}`}}",
          "refId": "A"
        }
        ],
        "thresholds": [],
        "timeFrom": null,
        "timeRegions": [],
        "timeShift": null,
        "title": "Requests by API Method [req/min]",
        "tooltip": {
          "shared": true,
          "sort": 0,
          "value_type": "individual"
        },
        "type": "graph",
        "xaxis": {
          "buckets": null,
          "mode": "time",
          "name": null,
          "show": true,
          "values": []
        },
        "yaxes": [
        {
          "decimals": null,
          "format": "req/min",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
        ],
        "yaxis": {
          "align": false,
          "alignLevel": null
        }
      },
      {
        "collapsed": false,
        "datasource": null,
        "gridPos": {
          "h": 1,
          "w": 24,
          "x": 0,
          "y": 33
        },
        "id": 41,
        "panels": [],
        "title": "[WEBHOOK] Pod Metrics",
        "type": "row"
      },
      {
        "aliasColors": {},
        "bars": false,
        "dashLength": 10,
        "dashes": false,
        "datasource": "Prometheus",
        "editable": true,
        "error": false,
        "fill": 1,
        "grid": {
          "threshold1Color": "rgba(216, 200, 27, 0.27)",
          "threshold2Color": "rgba(234, 112, 112, 0.22)"
        },
        "gridPos": {
          "h": 7,
          "w": 24,
          "x": 0,
          "y": 34
        },
        "id": 10,
        "isNew": false,
        "legend": {
          "alignAsTable": true,
          "avg": true,
          "current": true,
          "hideEmpty": false,
          "hideZero": false,
          "max": false,
          "min": false,
          "rightSide": true,
          "show": true,
          "total": false,
          "values": true
        },
        "lines": true,
        "linewidth": 2,
        "links": [],
        "nullPointMode": "connected",
        "paceLength": 10,
        "percentage": false,
        "pointradius": 5,
        "points": false,
        "renderer": "flot",
        "seriesOverrides": [],
        "spaceLength": 10,
        "stack": false,
        "steppedLine": false,
        "targets": [
        {
          "expr": "sum by(container) (container_memory_usage_bytes{pod=~\"service-catalog-catalog-webhook.*\", container!=\"POD\"})",
          "format": "time_series",
          "instant": false,
          "interval": "10s",
          "intervalFactor": 1,
          "legendFormat": "Current: {{`{{container}}`}}",
          "metric": "container_memory_usage_bytes",
          "refId": "A",
          "step": 15
        },
        {
          "expr": "kube_pod_container_resource_requests_memory_bytes{pod=~\"service-catalog-catalog-webhook.*\"}",
          "format": "time_series",
          "interval": "10s",
          "intervalFactor": 2,
                  "legendFormat": "Requests: {{`{{container}}`}}",
          "metric": "kube_pod_container_resource_requests_memory_bytes",
          "refId": "B",
          "step": 20
        },
        {
          "expr": "kube_pod_container_resource_limits_memory_bytes{pod=~\"service-catalog-catalog-webhook.*\"}",
          "format": "time_series",
          "interval": "10s",
          "intervalFactor": 2,
                  "legendFormat": "Limit: {{`{{container}}`}}",
          "metric": "kube_pod_container_resource_limits_memory_bytes",
          "refId": "C",
          "step": 20
        }
        ],
        "thresholds": [],
        "timeFrom": null,
        "timeRegions": [],
        "timeShift": null,
        "title": "Memory Usage",
        "tooltip": {
          "msResolution": true,
          "shared": true,
          "sort": 0,
          "value_type": "cumulative"
        },
        "type": "graph",
        "xaxis": {
          "buckets": null,
          "mode": "time",
          "name": null,
          "show": true,
          "values": []
        },
        "yaxes": [
        {
          "format": "bytes",
          "logBase": 1,
          "show": true
        },
        {
          "format": "short",
          "logBase": 1,
          "show": true
        }
        ],
        "yaxis": {
          "align": false,
          "alignLevel": null
        }
      },
      {
        "aliasColors": {},
        "bars": false,
        "dashLength": 10,
        "dashes": false,
        "datasource": "Prometheus",
        "fill": 1,
        "gridPos": {
          "h": 8,
          "w": 12,
          "x": 0,
                "y": 8
        },
        "id": 42,
        "legend": {
          "avg": false,
          "current": false,
          "max": false,
          "min": false,
          "show": false,
          "total": false,
          "values": false
        },
        "lines": true,
        "linewidth": 1,
        "links": [],
        "nullPointMode": "null",
        "paceLength": 10,
        "percentage": false,
        "pointradius": 5,
        "points": false,
        "renderer": "flot",
        "seriesOverrides": [],
        "spaceLength": 10,
        "stack": false,
        "steppedLine": false,
        "targets": [
        {
          "expr": "sum(rate(container_network_receive_bytes_total{namespace=\"kyma-system\",pod=~\"service-catalog-catalog-webhook.*\"}[3m]))",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "",
          "refId": "A"
        }
        ],
        "thresholds": [],
        "timeFrom": null,
        "timeRegions": [],
        "timeShift": null,
        "title": "Network in [kB/s]",
        "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,
        "dashLength": 10,
        "dashes": false,
        "datasource": "Prometheus",
        "editable": true,
        "error": false,
        "fill": 1,
        "grid": {
          "threshold1Color": "rgba(216, 200, 27, 0.27)",
          "threshold2Color": "rgba(234, 112, 112, 0.22)"
        },
        "gridPos": {
          "h": 8,
          "w": 12,
          "x": 12,
                "y": 8
        },
        "id": 43,
        "isNew": false,
        "legend": {
          "alignAsTable": true,
          "avg": true,
          "current": true,
          "hideEmpty": false,
          "hideZero": false,
          "max": false,
          "min": false,
          "rightSide": true,
          "show": true,
          "total": false,
          "values": true
        },
        "lines": true,
        "linewidth": 2,
        "links": [],
        "nullPointMode": "connected",
        "paceLength": 10,
        "percentage": false,
        "pointradius": 5,
        "points": false,
        "renderer": "flot",
        "seriesOverrides": [],
        "spaceLength": 10,
        "stack": false,
        "steppedLine": false,
        "targets": [
        {
          "expr": "sum by (container)(rate(container_cpu_usage_seconds_total{image!=\"\",container!=\"POD\",pod=~\"service-catalog-catalog-webhook.*\"}[1m]))",
          "format": "time_series",
          "intervalFactor": 2,
          "legendFormat": "{{`{{container}}`}}",
          "refId": "A",
          "step": 30
        },
        {
          "expr": "kube_pod_container_resource_requests_cpu_cores{pod=~\"service-catalog-catalog-webhook.*\"}",
          "format": "time_series",
          "interval": "10s",
          "intervalFactor": 2,
                  "legendFormat": "Requests: {{`{{container}}`}}",
          "metric": "kube_pod_container_resource_requests_cpu_cores",
          "refId": "B",
          "step": 20
        },
        {
          "expr": "kube_pod_container_resource_limits_cpu_cores{pod=~\"service-catalog-catalog-webhook.*\"}",
          "format": "time_series",
          "interval": "10s",
          "intervalFactor": 2,
                  "legendFormat": "Limit: {{`{{container}}`}}",
          "metric": "kube_pod_container_resource_limits_memory_bytes",
          "refId": "C",
          "step": 20
        }
        ],
        "thresholds": [],
        "timeFrom": null,
        "timeRegions": [],
        "timeShift": null,
        "title": "CPU Usage",
        "tooltip": {
          "msResolution": true,
          "shared": true,
          "sort": 0,
          "value_type": "cumulative"
        },
        "type": "graph",
        "xaxis": {
          "buckets": null,
          "mode": "time",
          "name": null,
          "show": true,
          "values": []
        },
        "yaxes": [
        {
          "format": "short",
          "logBase": 1,
          "show": true
        },
        {
          "format": "short",
          "logBase": 1,
          "show": true
        }
        ],
        "yaxis": {
          "align": false,
          "alignLevel": null
        }
      }
      ],
      "refresh": "10s",
      "schemaVersion": 18,
      "style": "dark",
      "tags": [
        "service-catalog",
        "kyma"
      ],
      "templating": {
        "list": [
        {
          "current": {
            "text": "service-catalog-apiserver",
            "value": "service-catalog-apiserver"
          },
          "hide": 2,
          "label": null,
          "name": "apiserverdeploy",
          "options": [
          {
            "selected": true,
            "text": "service-catalog-apiserver",
            "value": "service-catalog-apiserver"
          }
          ],
          "query": "service-catalog-apiserver",
          "skipUrlSync": false,
          "type": "constant"
        },
        {
          "current": {
            "text": "service-catalog-controller-manager",
            "value": "service-catalog-controller-manager"
          },
          "hide": 2,
          "label": null,
          "name": "controllerdeploy",
          "options": [
          {
            "selected": true,
            "text": "service-catalog-controller-manager",
            "value": "service-catalog-controller-manager"
          }
          ],
          "query": "service-catalog-controller-manager",
          "skipUrlSync": false,
          "type": "constant"
        },
        {
          "current": {
            "text": "service-catalog-etcd-stateful-client",
            "value": "service-catalog-etcd-stateful-client"
          },
          "hide": 2,
          "label": null,
          "name": "etcd_cluster",
          "options": [
          {
            "selected": true,
            "text": "service-catalog-etcd-stateful-client",
            "value": "service-catalog-etcd-stateful-client"
          }
          ],
          "query": "service-catalog-etcd-stateful-client",
          "skipUrlSync": false,
          "type": "constant"
        },
        {
          "current": {
            "text": "service-catalog-etcd-stateful",
            "value": "service-catalog-etcd-stateful"
          },
          "hide": 2,
          "label": null,
          "name": "etcddeploy",
          "options": [
          {
            "selected": true,
            "text": "service-catalog-etcd-stateful",
            "value": "service-catalog-etcd-stateful"
          }
          ],
          "query": "service-catalog-etcd-stateful",
          "skipUrlSync": false,
          "type": "constant"
        }
        ]
      },
      "time": {
        "from": "now-1h",
        "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": "Kyma / Service Catalog",
      "uid": "t9EmddWWz",
      "version": 6
    }
