kind: ConfigMap
apiVersion: v1
metadata:
  name: custom-dashboard
  namespace: open-cluster-management-observability
  annotations:
    observability.open-cluster-management.io/dashboard-folder: Custom
  labels:
    grafana-custom-dashboard: "true"
data:
  custom-dashboard.json: |
    {"style": "dark", "templating": {"list": [{"regex": "", "skipUrlSync": false, "hide": 0, "description": null, "multi": false, "refresh": 1, "label": null, "current": {"text": "Observatorium", "selected": false, "value": "Observatorium"}, "error": null, "query": "prometheus", "includeAll": true, "type": "datasource", "options": [], "name": "datasource"}, {"query": {"query": "label_values(node_cpu_seconds_total, cluster)", "refId": "StandardVariableQuery"}, "regex": "", "skipUrlSync": false, "hide": 2, "allValue": null, "label": null, "current": {"text": "local-cluster", "selected": false, "value": "local-cluster"}, "useTags": false, "type": "query", "sort": 1, "description": null, "tags": [], "definition": "label_values(node_cpu_seconds_total, cluster)", "multi": false, "name": "cluster", "refresh": 2, "tagValuesQuery": "", "datasource": null, "error": null, "tagsQuery": "", "options": [], "includeAll": false}]}, "links": [], "tags": [], "graphTooltip": 0, "hideControls": false, "title": "Custom Dashboard", "editable": true, "id": 24, "gnetId": null, "timepicker": {}, "version": 1, "time": {"to": "now", "from": "now-6h"}, "timezone": "utc", "schemaVersion": 27, "panels": [{"bars": false, "timeFrom": null, "hiddenSeries": false, "thresholds": [], "spaceLength": 10, "nullPointMode": "null as zero", "pluginVersion": "7.4.2", "renderer": "flot", "gridPos": {"y": 0, "h": 9, "w": 12, "x": 0}, "linewidth": 1, "steppedLine": false, "targets": [{"expr": "avg(irate(container_network_receive_bytes_total{cluster=\"$cluster\", namespace=~\".+\"}[$__interval])) by (namespace)", "interval": "", "refId": "A", "legendFormat": "{{namespace}}"}], "fill": 1, "title": "Average Container Bandwidth by Namespace: Received", "tooltip": {"sort": 0, "shared": true, "value_type": "individual"}, "id": 2, "points": false, "xaxis": {"buckets": null, "values": [], "mode": "time", "name": null, "show": true}, "seriesOverrides": [], "percentage": false, "type": "graph", "dashes": false, "interval": "1m", "dashLength": 10, "stack": true, "fieldConfig": {"overrides": [], "defaults": {"custom": {}}}, "yaxis": {"align": false, "alignLevel": null}, "timeShift": null, "aliasColors": {}, "lines": true, "legend": {"avg": false, "min": false, "max": false, "show": true, "current": false, "values": false, "total": false}, "yaxes": [{"logBase": 1, "format": "short", "max": null, "min": null, "label": null, "show": true}, {"logBase": 1, "format": "short", "max": null, "min": null, "label": null, "show": true}], "datasource": null, "pointradius": 2, "timeRegions": [], "options": {"alertThreshold": true}, "fillGradient": 0}], "annotations": {"list": [{"enable": true, "hide": true, "name": "Annotations & Alerts", "builtIn": 1, "datasource": "-- Grafana --", "type": "dashboard", "iconColor": "rgba(0, 211, 255, 1)"}]}}
