Grafana dashboard: Workload Overview Dashboard
Description: Example of Prodstack's PromQL Datasource Powers


{
  "__inputs": [],
  "__elements": [],
  "__requires": [
    {
      "type": "panel",
      "id": "bargauge",
      "name": "Bar gauge",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "8.3.6"
    },
    {
      "type": "panel",
      "id": "piechart",
      "name": "Pie chart",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "postgres",
      "name": "PostgreSQL",
      "version": "1.0.0"
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": ""
    },
    {
      "type": "panel",
      "id": "timeseries",
      "name": "Time series",
      "version": ""
    }
  ],
  "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"
      },
      {
        "datasource": "${ds_prom}",
        "enable": true,
        "expr": "changes(groundcover_deployment_event_total_counter{namespace='$namespace', deployment_name='$workload'} > 0)",
        "iconColor": "semi-dark-green",
        "name": "Deployments",
        "rawQuery": "SELECT\n  extract(epoch from time_column) AS time,\n  text_column as text,\n  tags_column as tags\nFROM\n  metric_table\nWHERE\n  $__timeFilter(time_column)\n",
        "step": "10s",
        "tagKeys": "namespace,deployment_name,deployment_event_type"
      },
      {
        "datasource": "${ds_prom}",
        "enable": true,
        "expr": "changes(groundcover_container_state_error_counter{namespace='$namespace', workload_name='$workload'})",
        "iconColor": "red",
        "name": "Container Errors",
        "rawQuery": "SELECT\n  extract(epoch from time_column) AS time,\n  text_column as text,\n  tags_column as tags\nFROM\n  metric_table\nWHERE\n  $__timeFilter(time_column)\n",
        "step": "10s",
        "tagKeys": "namespace,container_name,state,state_reason"
      }
    ]
  },
  "description": "Example of Prodstack's PromQL Datasource Powers",
  "editable": true,
  "fiscalYearStartMonth": 0,
  "gnetId": 15749,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1645997722103,
  "links": [],
  "liveNow": false,
  "panels": [
    {
      "datasource": "${ds_prom}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "fixedColor": "#cdc9ce",
            "mode": "fixed"
          },
          "custom": {
            "align": "center",
            "displayMode": "color-background",
            "filterable": false
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 10,
        "x": 0,
        "y": 0
      },
      "id": 83,
      "options": {
        "footer": {
          "fields": "",
          "reducer": [
            "sum"
          ],
          "show": false
        },
        "showHeader": false
      },
      "pluginVersion": "8.3.6",
      "targets": [
        {
          "exemplar": true,
          "expr": "count(groundcover_container_info_total_counter{namespace='$namespace', workload_name='$workload'}) by (container_name, container_image)",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "{{container_image}}",
          "refId": "A"
        }
      ],
      "title": "Deployed Images",
      "transformations": [
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "container_name",
                "container_image"
              ]
            }
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {},
            "indexByName": {
              "container_image": 1,
              "container_name": 0
            },
            "renameByName": {}
          }
        }
      ],
      "type": "table"
    },
    {
      "datasource": "${ds_prom}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "fixedColor": "#6e6174",
            "mode": "fixed"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 4,
        "x": 10,
        "y": 0
      },
      "id": 73,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.3.6",
      "targets": [
        {
          "exemplar": true,
          "expr": "count(count(groundcover_container_info_total_counter{namespace='$namespace', workload_name='$workload'}) by (pod_name))",
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "Num of Pods",
      "transformations": [],
      "type": "stat"
    },
    {
      "datasource": "${ds_prom}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "continuous-GrYlRd"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 1000
              }
            ]
          },
          "unit": "mCPU"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 5,
        "x": 14,
        "y": 0
      },
      "id": 86,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.3.6",
      "targets": [
        {
          "exemplar": true,
          "expr": "sum(groundcover_container_info_cpu_usage_m_cpu{namespace='$namespace', workload_name='$workload'})",
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "CPU",
      "type": "stat"
    },
    {
      "datasource": "${ds_prom}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 100000000
              }
            ]
          },
          "unit": "decbytes"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 5,
        "x": 19,
        "y": 0
      },
      "id": 85,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.3.6",
      "targets": [
        {
          "exemplar": true,
          "expr": "sum(groundcover_container_info_resident_set_size_bytes{namespace='$namespace', workload_name='$workload'})",
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "Memory ",
      "type": "stat"
    },
    {
      "datasource": "${ds_prom}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "fixedColor": "#4671b2",
            "mode": "fixed"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "reqps"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 10,
        "x": 0,
        "y": 5
      },
      "id": 77,
      "options": {
        "displayMode": "lcd",
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showUnfilled": true,
        "text": {}
      },
      "pluginVersion": "8.3.6",
      "targets": [
        {
          "exemplar": true,
          "expr": "sum(rate({__name__=~\"groundcover_http_total_counter\", namespace='$namespace', workload_name='$workload'}[$__rate_interval])) by (protocol)",
          "hide": false,
          "instant": false,
          "interval": "",
          "legendFormat": "{{protocol}}",
          "refId": "A"
        },
        {
          "exemplar": true,
          "expr": "sum(rate({__name__=~\"groundcover_sql_total_counter\", namespace='$namespace', workload_name='$workload'}[$__rate_interval])) by (dialect)",
          "hide": true,
          "interval": "",
          "legendFormat": "{{dialect}}",
          "refId": "B"
        },
        {
          "exemplar": true,
          "expr": "sum(rate({__name__=~\"groundcover_dns_total_counter\", namespace='$namespace', workload_name='$workload'}[$__rate_interval]))",
          "hide": true,
          "interval": "",
          "legendFormat": "DNS",
          "refId": "C"
        },
        {
          "exemplar": true,
          "expr": "sum(rate({__name__=~\"groundcover_kafka_total_counter\", namespace='$namespace', workload_name='$workload'}[$__rate_interval]))",
          "hide": false,
          "interval": "",
          "legendFormat": "Kafka",
          "refId": "D"
        }
      ],
      "title": "Detected Protocols",
      "transformations": [],
      "type": "bargauge"
    },
    {
      "datasource": "${ds_prom}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "continuous-RdYlGr"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "percentunit"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 4,
        "x": 10,
        "y": 5
      },
      "id": 76,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.3.6",
      "targets": [
        {
          "exemplar": true,
          "expr": "sum(increase({__name__=~\"groundcover_.*_success_counter\", namespace='$namespace', workload_name='$workload'}[$__range])) / sum(increase({__name__=~\"groundcover_.*_total_counter\", namespace='$namespace', workload_name='$workload'}[$__range]))",
          "instant": false,
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "Success Rate",
      "transformations": [],
      "type": "stat"
    },
    {
      "datasource": "${ds_prom}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "continuous-BlPu"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "s"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 5,
        "x": 14,
        "y": 5
      },
      "id": 74,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.3.6",
      "targets": [
        {
          "exemplar": true,
          "expr": "avg({__name__=~\"groundcover_http_latency_seconds|groundcover_sql_latency_seconds\", namespace='$namespace', workload_name='$workload', role=\"server\", quantile=\"0.50\"})",
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "Latency P50",
      "transformations": [],
      "type": "stat"
    },
    {
      "datasource": "${ds_prom}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "continuous-BlPu"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "s"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 5,
        "x": 19,
        "y": 5
      },
      "id": 75,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.3.6",
      "targets": [
        {
          "exemplar": true,
          "expr": "avg({__name__=~\"groundcover_http_latency_seconds|groundcover_sql_latency_seconds\", namespace='$namespace', workload_name='$workload', role=\"server\", quantile=\"0.99\"})",
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "Latency P99",
      "transformations": [],
      "type": "stat"
    },
    {
      "datasource": "${ds_prom}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "left",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 11,
            "gradientMode": "opacity",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "smooth",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "never",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "reqps"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byFrameRefID",
              "options": "A"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "semi-dark-red",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byFrameRefID",
              "options": "B"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "light-orange",
                  "mode": "fixed"
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 7,
        "w": 24,
        "x": 0,
        "y": 10
      },
      "id": 51,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "single"
        }
      },
      "targets": [
        {
          "datasource": "${ds_prom}",
          "exemplar": true,
          "expr": "alias(sum(rate(groundcover_http_error_counter{namespace='$namespace', workload_name='$workload'}[$__rate_interval])), 'HTTP')",
          "hide": false,
          "instant": false,
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        },
        {
          "datasource": "${ds_prom}",
          "exemplar": true,
          "expr": "alias(sum(rate(groundcover_dns_error_counter{namespace='$namespace', workload_name='$workload'}[$__rate_interval])), 'DNS')",
          "hide": false,
          "interval": "",
          "legendFormat": "",
          "refId": "B"
        },
        {
          "datasource": "${ds_prom}",
          "exemplar": true,
          "expr": "",
          "hide": false,
          "interval": "",
          "legendFormat": "",
          "refId": "C"
        }
      ],
      "title": "Error Rate",
      "type": "timeseries"
    },
    {
      "collapsed": true,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 17
      },
      "id": 47,
      "panels": [
        {
          "datasource": "${ds_prom}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "continuous-BlPu"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 11,
                "gradientMode": "hue",
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                },
                "lineInterpolation": "smooth",
                "lineStyle": {
                  "fill": "solid"
                },
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "never",
                "spanNulls": false,
                "stacking": {
                  "group": "A",
                  "mode": "none"
                },
                "thresholdsStyle": {
                  "mode": "off"
                }
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green"
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "mCPU"
            },
            "overrides": [
              {
                "matcher": {
                  "id": "byFrameRefID",
                  "options": "B"
                },
                "properties": [
                  {
                    "id": "color",
                    "value": {
                      "fixedColor": "red",
                      "mode": "fixed"
                    }
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byFrameRefID",
                  "options": "C"
                },
                "properties": [
                  {
                    "id": "color",
                    "value": {
                      "fixedColor": "#b9b9b9",
                      "mode": "fixed"
                    }
                  },
                  {
                    "id": "custom.lineStyle",
                    "value": {
                      "dash": [
                        10,
                        10
                      ],
                      "fill": "dash"
                    }
                  }
                ]
              }
            ]
          },
          "gridPos": {
            "h": 10,
            "w": 19,
            "x": 0,
            "y": 19
          },
          "id": 43,
          "options": {
            "legend": {
              "calcs": [],
              "displayMode": "list",
              "placement": "right"
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "targets": [
            {
              "datasource": "${ds_prom}",
              "exemplar": true,
              "expr": "sum(groundcover_container_info_cpu_usage_m_cpu{namespace='$namespace', workload_name='$workload'})",
              "hide": false,
              "interval": "",
              "legendFormat": "utilisation",
              "refId": "A"
            },
            {
              "exemplar": true,
              "expr": "sum(groundcover_container_info_cpu_limit_m_cpu{namespace='$namespace', workload_name='$workload'})",
              "hide": false,
              "interval": "",
              "legendFormat": "limit",
              "refId": "B"
            },
            {
              "exemplar": true,
              "expr": "sum(groundcover_container_info_cpu_request_m_cpu{namespace='$namespace', workload_name='$workload'})",
              "hide": false,
              "interval": "",
              "legendFormat": "request",
              "refId": "C"
            }
          ],
          "title": "CPU Utilisation",
          "transformations": [],
          "type": "timeseries"
        },
        {
          "datasource": "${ds_prom}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "fixedColor": "dark-blue",
                "mode": "continuous-BlPu"
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green"
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "mCPU"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 10,
            "w": 5,
            "x": 19,
            "y": 19
          },
          "id": 49,
          "options": {
            "displayMode": "gradient",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "showUnfilled": false,
            "text": {}
          },
          "pluginVersion": "8.1.8",
          "targets": [
            {
              "datasource": "${ds_prom}",
              "exemplar": false,
              "expr": "topk(10, (avg (groundcover_container_info_cpu_usage_m_cpu{namespace='$namespace', workload_name='$workload'}) by (container_name)))",
              "instant": true,
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            }
          ],
          "title": "CPU Utilization by Container",
          "transformations": [
            {
              "id": "labelsToFields",
              "options": {
                "valueLabel": "container_name"
              }
            },
            {
              "id": "merge",
              "options": {}
            }
          ],
          "type": "bargauge"
        },
        {
          "datasource": "${ds_prom}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "continuous-GrYlRd"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 11,
                "gradientMode": "hue",
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                },
                "lineInterpolation": "smooth",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "never",
                "spanNulls": false,
                "stacking": {
                  "group": "A",
                  "mode": "none"
                },
                "thresholdsStyle": {
                  "mode": "off"
                }
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green"
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "decbytes"
            },
            "overrides": [
              {
                "matcher": {
                  "id": "byFrameRefID",
                  "options": "B"
                },
                "properties": [
                  {
                    "id": "color",
                    "value": {
                      "fixedColor": "red",
                      "mode": "fixed"
                    }
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byFrameRefID",
                  "options": "C"
                },
                "properties": [
                  {
                    "id": "color",
                    "value": {
                      "mode": "fixed"
                    }
                  },
                  {
                    "id": "custom.lineStyle",
                    "value": {
                      "dash": [
                        10,
                        10
                      ],
                      "fill": "dash"
                    }
                  }
                ]
              }
            ]
          },
          "gridPos": {
            "h": 10,
            "w": 19,
            "x": 0,
            "y": 29
          },
          "id": 48,
          "options": {
            "legend": {
              "calcs": [],
              "displayMode": "list",
              "placement": "right"
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "targets": [
            {
              "datasource": "${ds_prom}",
              "exemplar": true,
              "expr": "sum(groundcover_container_info_resident_set_size_bytes{namespace='$namespace', workload_name='$workload'})",
              "interval": "",
              "legendFormat": "utilisation",
              "refId": "A"
            },
            {
              "exemplar": true,
              "expr": "sum(groundcover_container_info_memory_limit_bytes{namespace='$namespace', workload_name='$workload'})",
              "hide": false,
              "interval": "",
              "legendFormat": "limit",
              "refId": "B"
            },
            {
              "exemplar": true,
              "expr": "sum(groundcover_container_info_memory_request_bytes{namespace='$namespace', workload_name='$workload'})",
              "hide": false,
              "interval": "",
              "legendFormat": "request",
              "refId": "C"
            }
          ],
          "title": "Memory Utilisation",
          "transformations": [],
          "type": "timeseries"
        },
        {
          "datasource": "${ds_prom}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "fixedColor": "dark-blue",
                "mode": "continuous-YlRd"
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green"
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "decbytes"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 10,
            "w": 5,
            "x": 19,
            "y": 29
          },
          "id": 50,
          "options": {
            "displayMode": "gradient",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "showUnfilled": false,
            "text": {}
          },
          "pluginVersion": "8.1.8",
          "targets": [
            {
              "datasource": "${ds_prom}",
              "exemplar": false,
              "expr": "topk(10, avg(groundcover_container_info_resident_set_size_bytes{namespace='$namespace', workload_name='$workload'}) by (container_name))",
              "instant": true,
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            }
          ],
          "title": "Memory Utilisation by Container",
          "transformations": [
            {
              "id": "labelsToFields",
              "options": {
                "valueLabel": "container_name"
              }
            },
            {
              "id": "merge",
              "options": {}
            }
          ],
          "type": "bargauge"
        }
      ],
      "title": "CPU / Memory",
      "type": "row"
    },
    {
      "collapsed": true,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 18
      },
      "id": 79,
      "panels": [
        {
          "datasource": "${ds_prom}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "fixedColor": "semi-dark-red",
                "mode": "fixed"
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "reqps"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 13,
            "w": 17,
            "x": 0,
            "y": 19
          },
          "id": 71,
          "options": {
            "colorMode": "value",
            "graphMode": "area",
            "justifyMode": "auto",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "text": {},
            "textMode": "auto"
          },
          "pluginVersion": "8.3.6",
          "targets": [
            {
              "datasource": "${ds_prom}",
              "exemplar": false,
              "expr": "sum(rate({__name__=~\"groundcover_.*_error_counter\", namespace='$namespace', workload_name=~'$related_workloads'}[$__rate_interval])) by(workload_name)",
              "format": "time_series",
              "hide": false,
              "instant": false,
              "interval": "",
              "legendFormat": "{{workload_name}}",
              "refId": "A"
            }
          ],
          "title": "Errors by Related Workload",
          "transformations": [],
          "type": "stat"
        },
        {
          "datasource": "${ds_prom}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "fixedColor": "dark-blue",
                "mode": "continuous-BlPu"
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "reqps"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 13,
            "w": 7,
            "x": 17,
            "y": 19
          },
          "id": 70,
          "options": {
            "displayMode": "gradient",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "showUnfilled": true,
            "text": {}
          },
          "pluginVersion": "8.3.6",
          "targets": [
            {
              "datasource": "${ds_prom}",
              "exemplar": false,
              "expr": "topk(10, (sum(rate(groundcover_http_total_counter{namespace='$namespace', workload_name='$workload'}[$__rate_interval])) by (protocol, remote_service_name) != 0))",
              "format": "time_series",
              "hide": false,
              "instant": true,
              "interval": "",
              "legendFormat": "{{remote_service_name}} ({{protocol}})",
              "refId": "A"
            },
            {
              "exemplar": true,
              "expr": "topk(5, (sum(rate(groundcover_sql_total_counter{namespace='$namespace', workload_name='$workload'}[$__rate_interval])) by (dialect, remote_service_name) != 0))",
              "format": "time_series",
              "hide": false,
              "instant": true,
              "interval": "",
              "legendFormat": "{{remote_service_name}} ({{dialect}})",
              "refId": "B"
            },
            {
              "exemplar": true,
              "expr": "topk(3, (sum(rate(groundcover_dns_total_counter{namespace='$namespace', workload_name='$workload'}[$__rate_interval])) by (remote_addr) != 0))",
              "hide": false,
              "interval": "",
              "legendFormat": "{{remote_addr}} (DNS)",
              "refId": "C"
            }
          ],
          "title": "Top Related Workloads",
          "transformations": [],
          "type": "bargauge"
        }
      ],
      "title": "Related Workloads",
      "type": "row"
    },
    {
      "collapsed": true,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 19
      },
      "id": 2,
      "panels": [
        {
          "datasource": "${ds_prom}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "left",
                "barAlignment": 0,
                "drawStyle": "bars",
                "fillOpacity": 37,
                "gradientMode": "hue",
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                },
                "lineInterpolation": "smooth",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "never",
                "spanNulls": false,
                "stacking": {
                  "group": "A",
                  "mode": "none"
                },
                "thresholdsStyle": {
                  "mode": "off"
                }
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "reqps"
            },
            "overrides": [
              {
                "matcher": {
                  "id": "byName",
                  "options": "OK"
                },
                "properties": [
                  {
                    "id": "color",
                    "value": {
                      "fixedColor": "green",
                      "mode": "fixed"
                    }
                  },
                  {
                    "id": "custom.drawStyle",
                    "value": "line"
                  },
                  {
                    "id": "custom.fillOpacity",
                    "value": 8
                  },
                  {
                    "id": "custom.axisLabel",
                    "value": "OK"
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byName",
                  "options": "Error"
                },
                "properties": [
                  {
                    "id": "color",
                    "value": {
                      "fixedColor": "red",
                      "mode": "fixed"
                    }
                  },
                  {
                    "id": "custom.axisPlacement",
                    "value": "right"
                  },
                  {
                    "id": "custom.axisLabel",
                    "value": "Error"
                  }
                ]
              }
            ]
          },
          "gridPos": {
            "h": 9,
            "w": 24,
            "x": 0,
            "y": 20
          },
          "id": 4,
          "options": {
            "legend": {
              "calcs": [],
              "displayMode": "list",
              "placement": "bottom"
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "targets": [
            {
              "datasource": "${ds_prom}",
              "exemplar": true,
              "expr": "sum(rate (groundcover_http_total_counter{namespace='$namespace', workload_name='$workload'}[$__rate_interval])) by (response_status_code)",
              "hide": false,
              "interval": "",
              "legendFormat": "",
              "refId": "B"
            }
          ],
          "title": "Requests by Status Code",
          "transformations": [
            {
              "id": "labelsToFields",
              "options": {
                "valueLabel": "response_status_code"
              }
            },
            {
              "id": "merge",
              "options": {}
            }
          ],
          "type": "timeseries"
        },
        {
          "datasource": "${ds_prom}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 20,
                "gradientMode": "hue",
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                },
                "lineInterpolation": "smooth",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "never",
                "spanNulls": false,
                "stacking": {
                  "group": "A",
                  "mode": "none"
                },
                "thresholdsStyle": {
                  "mode": "off"
                }
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 1
                  }
                ]
              },
              "unit": "reqps"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 9,
            "w": 17,
            "x": 0,
            "y": 29
          },
          "id": 22,
          "options": {
            "legend": {
              "calcs": [],
              "displayMode": "list",
              "placement": "right"
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "targets": [
            {
              "datasource": "${ds_prom}",
              "exemplar": true,
              "expr": "sum(rate(groundcover_http_error_counter{namespace='$namespace', workload_name='$workload', role=\"server\"}[$__rate_interval])) by (remote_service_name)",
              "interval": "",
              "legendFormat": "{{remote_service_name}} (client)",
              "refId": "A"
            }
          ],
          "title": "Error Rate as Server",
          "transformations": [],
          "type": "timeseries"
        },
        {
          "datasource": "${ds_prom}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "fixedColor": "dark-blue",
                "mode": "continuous-BlPu"
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "reqps"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 9,
            "w": 7,
            "x": 17,
            "y": 29
          },
          "id": 12,
          "options": {
            "displayMode": "gradient",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "showUnfilled": false,
            "text": {}
          },
          "pluginVersion": "8.3.6",
          "targets": [
            {
              "datasource": "${ds_prom}",
              "exemplar": false,
              "expr": "topk(10, (sum(rate(groundcover_http_total_counter{namespace='$namespace', workload_name='$workload', role=\"server\"}[$__rate_interval])) by (clustered_path) != 0))",
              "instant": true,
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            }
          ],
          "title": "Top Served APIs",
          "transformations": [
            {
              "id": "labelsToFields",
              "options": {
                "valueLabel": "clustered_path"
              }
            },
            {
              "id": "merge",
              "options": {}
            }
          ],
          "type": "bargauge"
        },
        {
          "datasource": "${ds_prom}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 20,
                "gradientMode": "hue",
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                },
                "lineInterpolation": "smooth",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "never",
                "spanNulls": false,
                "stacking": {
                  "group": "A",
                  "mode": "none"
                },
                "thresholdsStyle": {
                  "mode": "off"
                }
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 1
                  }
                ]
              },
              "unit": "reqps"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 9,
            "w": 17,
            "x": 0,
            "y": 38
          },
          "id": 80,
          "options": {
            "legend": {
              "calcs": [],
              "displayMode": "list",
              "placement": "right"
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "targets": [
            {
              "datasource": "${ds_prom}",
              "exemplar": true,
              "expr": "sum(rate(groundcover_http_error_counter{namespace='$namespace', workload_name='$workload', role=\"client\"}[$__rate_interval])) by (remote_service_name)",
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            }
          ],
          "title": "Error Rate as Client",
          "transformations": [
            {
              "id": "labelsToFields",
              "options": {
                "valueLabel": "remote_service_name"
              }
            },
            {
              "id": "merge",
              "options": {}
            }
          ],
          "type": "timeseries"
        },
        {
          "datasource": "${ds_prom}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "fixedColor": "dark-blue",
                "mode": "continuous-BlPu"
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "reqps"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 9,
            "w": 7,
            "x": 17,
            "y": 38
          },
          "id": 81,
          "options": {
            "displayMode": "gradient",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "showUnfilled": false,
            "text": {}
          },
          "pluginVersion": "8.3.6",
          "targets": [
            {
              "datasource": "${ds_prom}",
              "exemplar": false,
              "expr": "topk(10, (sum(rate(groundcover_http_total_counter{namespace='$namespace', workload_name='$workload', role=\"client\"}[$__rate_interval])) by (clustered_path) != 0))",
              "instant": true,
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            }
          ],
          "title": "Top Outgoing APIs",
          "transformations": [
            {
              "id": "labelsToFields",
              "options": {
                "valueLabel": "clustered_path"
              }
            },
            {
              "id": "merge",
              "options": {}
            }
          ],
          "type": "bargauge"
        },
        {
          "datasource": "${ds_prom}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 18,
                "gradientMode": "hue",
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                },
                "lineInterpolation": "smooth",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "never",
                "spanNulls": false,
                "stacking": {
                  "group": "A",
                  "mode": "none"
                },
                "thresholdsStyle": {
                  "mode": "off"
                }
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "reqps"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 10,
            "w": 17,
            "x": 0,
            "y": 47
          },
          "id": 24,
          "options": {
            "legend": {
              "calcs": [],
              "displayMode": "list",
              "placement": "right"
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "targets": [
            {
              "datasource": "${ds_prom}",
              "exemplar": true,
              "expr": "sum(rate(groundcover_http_error_counter{namespace='$namespace', workload_name='$workload'}[$__rate_interval])) by (clustered_path)",
              "hide": false,
              "interval": "",
              "legendFormat": "",
              "refId": "B"
            }
          ],
          "title": "Error Rate by API",
          "transformations": [
            {
              "id": "labelsToFields",
              "options": {
                "valueLabel": "clustered_path"
              }
            },
            {
              "id": "merge",
              "options": {}
            }
          ],
          "type": "timeseries"
        },
        {
          "datasource": "${ds_prom}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "continuous-GrYlRd"
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "s"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 21,
            "w": 7,
            "x": 17,
            "y": 47
          },
          "id": 14,
          "options": {
            "displayMode": "basic",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "showUnfilled": false,
            "text": {}
          },
          "pluginVersion": "8.3.6",
          "targets": [
            {
              "datasource": "${ds_prom}",
              "exemplar": false,
              "expr": "topk(10, (avg(groundcover_http_latency_seconds{namespace='$namespace', workload_name='$workload', quantile=\"0.50\"}) by (clustered_path) != 0))",
              "instant": true,
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            }
          ],
          "title": "Slowest APIs",
          "transformations": [
            {
              "id": "labelsToFields",
              "options": {
                "valueLabel": "clustered_path"
              }
            },
            {
              "id": "merge",
              "options": {}
            }
          ],
          "type": "bargauge"
        },
        {
          "datasource": "${ds_prom}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 13,
                "gradientMode": "hue",
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                },
                "lineInterpolation": "smooth",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "never",
                "spanNulls": false,
                "stacking": {
                  "group": "A",
                  "mode": "none"
                },
                "thresholdsStyle": {
                  "mode": "off"
                }
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "s"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 11,
            "w": 17,
            "x": 0,
            "y": 57
          },
          "id": 26,
          "options": {
            "legend": {
              "calcs": [],
              "displayMode": "list",
              "placement": "right"
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "targets": [
            {
              "datasource": "${ds_prom}",
              "exemplar": true,
              "expr": "topk(25, avg(groundcover_http_latency_seconds{namespace='$namespace', workload_name='$workload', quantile=\"0.50\"}) by (clustered_path))",
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            }
          ],
          "title": "Latency by API",
          "transformations": [
            {
              "id": "labelsToFields",
              "options": {
                "valueLabel": "clustered_path"
              }
            },
            {
              "id": "merge",
              "options": {}
            }
          ],
          "type": "timeseries"
        }
      ],
      "title": "HTTP",
      "type": "row"
    },
    {
      "collapsed": true,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 20
      },
      "id": 16,
      "panels": [
        {
          "datasource": "${ds_prom}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "continuous-YlRd"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 33,
                "gradientMode": "hue",
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                },
                "lineInterpolation": "smooth",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "never",
                "spanNulls": false,
                "stacking": {
                  "group": "A",
                  "mode": "none"
                },
                "thresholdsStyle": {
                  "mode": "off"
                }
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "s"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 10,
            "w": 13,
            "x": 0,
            "y": 21
          },
          "id": 18,
          "options": {
            "legend": {
              "calcs": [],
              "displayMode": "list",
              "placement": "bottom"
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "targets": [
            {
              "datasource": "${ds_prom}",
              "exemplar": true,
              "expr": "topk(20, avg(groundcover_sql_latency_seconds{namespace='$namespace', workload_name='$workload', role=\"client\", quantile=\"0.50\"}) by (remote_service_name))",
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            }
          ],
          "title": "Latency by SQL Server",
          "transformations": [
            {
              "id": "labelsToFields",
              "options": {
                "valueLabel": "remote_service_name"
              }
            },
            {
              "id": "merge",
              "options": {}
            }
          ],
          "type": "timeseries"
        },
        {
          "datasource": "-- Mixed --",
          "fieldConfig": {
            "defaults": {
              "color": {
                "fixedColor": "dark-blue",
                "mode": "continuous-GrYlRd"
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "s"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 10,
            "w": 11,
            "x": 13,
            "y": 21
          },
          "id": 28,
          "options": {
            "displayMode": "basic",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "limit": 10,
              "values": true
            },
            "showUnfilled": true,
            "text": {}
          },
          "pluginVersion": "8.3.6",
          "targets": [
            {
              "datasource": "${ds_prom}",
              "exemplar": true,
              "expr": "topk(10, avg (groundcover_sql_latency_seconds{namespace='$namespace', workload_name='$workload', role=\"client\", quantile=\"0.50\"}) by (query_id))",
              "format": "table",
              "hide": false,
              "instant": true,
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            },
            {
              "datasource": "${ds_sql}",
              "format": "table",
              "group": [],
              "hide": false,
              "metricColumn": "none",
              "rawQuery": true,
              "rawSql": "SELECT\n  query_id,\n  query_fingerprint\nFROM sql_samples\nWHERE namespace like '$namespace'\nand workload_name like '$workload'\n\ngroup by 1,2",
              "refId": "B",
              "select": [
                [
                  {
                    "params": [
                      "percentile"
                    ],
                    "type": "column"
                  }
                ]
              ],
              "table": "conn_stats_samples",
              "timeColumn": "\"time\"",
              "timeColumnType": "timestamp",
              "where": [
                {
                  "name": "$__timeFilter",
                  "params": [],
                  "type": "macro"
                }
              ]
            }
          ],
          "title": "Slowest Queries",
          "transformations": [
            {
              "id": "merge",
              "options": {}
            },
            {
              "id": "filterFieldsByName",
              "options": {
                "include": {
                  "names": [
                    "Value",
                    "query_fingerprint"
                  ]
                }
              }
            }
          ],
          "type": "bargauge"
        },
        {
          "datasource": "${ds_prom}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "continuous-BlPu"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 25,
                "gradientMode": "hue",
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                },
                "lineInterpolation": "linear",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "never",
                "spanNulls": false,
                "stacking": {
                  "group": "A",
                  "mode": "none"
                },
                "thresholdsStyle": {
                  "mode": "off"
                }
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "reqps"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 10,
            "w": 13,
            "x": 0,
            "y": 31
          },
          "id": 20,
          "options": {
            "legend": {
              "calcs": [],
              "displayMode": "list",
              "placement": "bottom"
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "pluginVersion": "8.3.3",
          "targets": [
            {
              "datasource": "${ds_prom}",
              "exemplar": true,
              "expr": "topk(20, sum(rate(groundcover_sql_total_counter{namespace='$namespace', workload_name='$workload', role=\"client\"}[$__rate_interval])) by (remote_service_name))",
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            }
          ],
          "title": "Query Rate by Server",
          "transformations": [
            {
              "id": "labelsToFields",
              "options": {
                "valueLabel": "remote_service_name"
              }
            },
            {
              "id": "merge",
              "options": {}
            }
          ],
          "type": "timeseries"
        },
        {
          "datasource": "-- Mixed --",
          "fieldConfig": {
            "defaults": {
              "color": {
                "fixedColor": "dark-blue",
                "mode": "continuous-BlPu"
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "reqps"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 10,
            "w": 11,
            "x": 13,
            "y": 31
          },
          "id": 31,
          "options": {
            "displayMode": "gradient",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "limit": 10,
              "values": true
            },
            "showUnfilled": true,
            "text": {}
          },
          "pluginVersion": "8.3.6",
          "targets": [
            {
              "datasource": "${ds_prom}",
              "exemplar": true,
              "expr": "topk(10, sort_desc(sum (rate(groundcover_sql_total_counter{namespace='$namespace', workload_name='$workload'})) by (query_id) != 0))",
              "format": "table",
              "hide": false,
              "instant": true,
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            },
            {
              "datasource": "${ds_sql}",
              "format": "table",
              "group": [],
              "hide": false,
              "metricColumn": "none",
              "rawQuery": true,
              "rawSql": "SELECT\n  query_id,\n  query_fingerprint\nFROM sql_samples\nWHERE namespace like '$namespace'\nand workload_name like '$workload'\n\ngroup by 1,2",
              "refId": "B",
              "select": [
                [
                  {
                    "params": [
                      "percentile"
                    ],
                    "type": "column"
                  }
                ]
              ],
              "table": "conn_stats_samples",
              "timeColumn": "\"time\"",
              "timeColumnType": "timestamp",
              "where": [
                {
                  "name": "$__timeFilter",
                  "params": [],
                  "type": "macro"
                }
              ]
            }
          ],
          "title": "Most Common Queries",
          "transformations": [
            {
              "id": "merge",
              "options": {}
            },
            {
              "id": "filterFieldsByName",
              "options": {
                "include": {
                  "names": [
                    "Value",
                    "query_fingerprint"
                  ]
                }
              }
            }
          ],
          "type": "bargauge"
        },
        {
          "datasource": "${ds_prom}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "continuous-BlPu"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 25,
                "gradientMode": "hue",
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                },
                "lineInterpolation": "linear",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "never",
                "spanNulls": false,
                "stacking": {
                  "group": "A",
                  "mode": "none"
                },
                "thresholdsStyle": {
                  "mode": "off"
                }
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "reqps"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 10,
            "w": 13,
            "x": 0,
            "y": 41
          },
          "id": 69,
          "options": {
            "legend": {
              "calcs": [],
              "displayMode": "list",
              "placement": "bottom"
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "pluginVersion": "8.3.3",
          "targets": [
            {
              "datasource": "${ds_prom}",
              "exemplar": true,
              "expr": "sum(rate(groundcover_sql_error_counter{namespace='$namespace', workload_name='$workload', role=\"client\"}[$__rate_interval])) by (remote_service_name)",
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            }
          ],
          "title": "Error Rate by Server",
          "transformations": [
            {
              "id": "labelsToFields",
              "options": {
                "valueLabel": "remote_service_name"
              }
            },
            {
              "id": "merge",
              "options": {}
            }
          ],
          "type": "timeseries"
        },
        {
          "datasource": "${ds_prom}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "axisSoftMax": 2,
                "barAlignment": 0,
                "drawStyle": "bars",
                "fillOpacity": 25,
                "gradientMode": "hue",
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                },
                "lineInterpolation": "smooth",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "never",
                "spanNulls": false,
                "stacking": {
                  "group": "A",
                  "mode": "none"
                },
                "thresholdsStyle": {
                  "mode": "off"
                }
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "bytes"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 10,
            "w": 11,
            "x": 13,
            "y": 41
          },
          "id": 30,
          "options": {
            "legend": {
              "calcs": [],
              "displayMode": "list",
              "placement": "bottom"
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "targets": [
            {
              "datasource": "${ds_prom}",
              "exemplar": true,
              "expr": "sum(rate(groundcover_sql_resp_size_bytes{namespace='$namespace', workload_name='$workload', role=\"client\"}[$__rate_interval])) by (remote_service_name)",
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            }
          ],
          "title": "Response Size by Server",
          "transformations": [
            {
              "id": "labelsToFields",
              "options": {
                "valueLabel": "remote_service_name"
              }
            },
            {
              "id": "merge",
              "options": {}
            }
          ],
          "type": "timeseries"
        }
      ],
      "title": "SQL",
      "type": "row"
    },
    {
      "collapsed": true,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 21
      },
      "id": 54,
      "panels": [
        {
          "datasource": "${ds_prom}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 14,
                "gradientMode": "hue",
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                },
                "lineInterpolation": "smooth",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "never",
                "spanNulls": false,
                "stacking": {
                  "group": "A",
                  "mode": "none"
                },
                "thresholdsStyle": {
                  "mode": "off"
                }
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "s"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 10,
            "w": 19,
            "x": 0,
            "y": 22
          },
          "id": 57,
          "options": {
            "legend": {
              "calcs": [],
              "displayMode": "list",
              "placement": "right"
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "targets": [
            {
              "datasource": "${ds_prom}",
              "exemplar": true,
              "expr": "topk(20, avg by (remote_addr) (groundcover_dns_latency_seconds{namespace='$namespace', workload_name='$workload', role=\"client\", quantile=\"0.50\"}))",
              "instant": false,
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            }
          ],
          "title": "Latency by Server",
          "transformations": [
            {
              "id": "labelsToFields",
              "options": {
                "valueLabel": "remote_addr"
              }
            },
            {
              "id": "merge",
              "options": {}
            }
          ],
          "type": "timeseries"
        },
        {
          "datasource": "${ds_prom}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                }
              },
              "mappings": []
            },
            "overrides": []
          },
          "gridPos": {
            "h": 10,
            "w": 5,
            "x": 19,
            "y": 22
          },
          "id": 58,
          "options": {
            "displayLabels": [
              "name"
            ],
            "legend": {
              "displayMode": "list",
              "placement": "bottom",
              "values": [
                "percent"
              ]
            },
            "pieType": "donut",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "tooltip": {
              "mode": "multi"
            }
          },
          "targets": [
            {
              "datasource": "${ds_prom}",
              "exemplar": true,
              "expr": "sum by (query_type) (groundcover_dns_total_counter{namespace='$namespace', workload_name='$workload', role=\"client\"})",
              "instant": false,
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            }
          ],
          "title": "Query Types",
          "transformations": [
            {
              "id": "labelsToFields",
              "options": {
                "valueLabel": "query_type"
              }
            },
            {
              "id": "merge",
              "options": {}
            }
          ],
          "type": "piechart"
        },
        {
          "datasource": "${ds_prom}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "continuous-BlPu"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 8,
                "gradientMode": "hue",
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                },
                "lineInterpolation": "smooth",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "never",
                "spanNulls": false,
                "stacking": {
                  "group": "A",
                  "mode": "none"
                },
                "thresholdsStyle": {
                  "mode": "off"
                }
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "reqps"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 10,
            "w": 19,
            "x": 0,
            "y": 32
          },
          "id": 62,
          "options": {
            "legend": {
              "calcs": [],
              "displayMode": "list",
              "placement": "bottom"
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "targets": [
            {
              "datasource": "${ds_prom}",
              "exemplar": true,
              "expr": "sum by (response_return_code) (rate(groundcover_dns_error_counter{namespace='$namespace', workload_name='$workload', role=\"client\" ,response_return_code!=\"NoError\"}[$__rate_interval]))",
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            }
          ],
          "title": "Error Rate by Type",
          "transformations": [
            {
              "id": "labelsToFields",
              "options": {
                "valueLabel": "response_return_code"
              }
            },
            {
              "id": "merge",
              "options": {}
            }
          ],
          "type": "timeseries"
        },
        {
          "datasource": "${ds_prom}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "fixedColor": "super-light-purple",
                "mode": "fixed"
              },
              "custom": {
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                }
              },
              "mappings": [
                {
                  "options": {
                    "NoError": {
                      "index": 0,
                      "text": "OK"
                    }
                  },
                  "type": "value"
                }
              ]
            },
            "overrides": []
          },
          "gridPos": {
            "h": 10,
            "w": 5,
            "x": 19,
            "y": 32
          },
          "id": 63,
          "options": {
            "displayLabels": [
              "percent",
              "name"
            ],
            "legend": {
              "displayMode": "hidden",
              "placement": "right",
              "values": []
            },
            "pieType": "pie",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "pluginVersion": "8.3.4",
          "targets": [
            {
              "datasource": "${ds_prom}",
              "exemplar": false,
              "expr": "sum by (response_return_code) (groundcover_dns_total_counter{namespace='$namespace', workload_name='$workload', role=\"client\"})",
              "instant": true,
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            }
          ],
          "title": "Return Codes",
          "transformations": [
            {
              "id": "labelsToFields",
              "options": {
                "valueLabel": "response_return_code"
              }
            },
            {
              "id": "merge",
              "options": {}
            }
          ],
          "type": "piechart"
        }
      ],
      "title": "DNS",
      "type": "row"
    }
  ],
  "refresh": "",
  "schemaVersion": 34,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "current": {
          "selected": false,
          "text": "groundcover",
          "value": "groundcover"
        },
        "hide": 0,
        "includeAll": false,
        "label": "cluster",
        "multi": false,
        "name": "ds_prom",
        "options": [],
        "query": "prometheus",
        "queryValue": "",
        "refresh": 1,
        "regex": "(.*GC.*|.*gc.*|.*groundcover.*|.*Groundcover.*|.*GroundCover.*)",
        "skipUrlSync": false,
        "type": "datasource"
      },
      {
        "current": {},
        "datasource": "${ds_prom}",
        "definition": "label_values(groundcover_container_info_total_counter{}, namespace)",
        "description": "",
        "hide": 0,
        "includeAll": false,
        "multi": false,
        "name": "namespace",
        "options": [],
        "query": {
          "query": "label_values(groundcover_container_info_total_counter{}, namespace)",
          "refId": "StandardVariableQuery"
        },
        "refresh": 1,
        "regex": "^(?!.*gc.*$|.*groundcover.*$).*",
        "skipUrlSync": false,
        "sort": 1,
        "type": "query"
      },
      {
        "current": {},
        "datasource": "${ds_prom}",
        "definition": "label_values(groundcover_container_info_total_counter{namespace='$namespace'}, workload_name)",
        "hide": 0,
        "includeAll": false,
        "multi": false,
        "name": "workload",
        "options": [],
        "query": {
          "query": "label_values(groundcover_container_info_total_counter{namespace='$namespace'}, workload_name)",
          "refId": "StandardVariableQuery"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "type": "query"
      },
      {
        "current": {},
        "datasource": "${ds_prom}",
        "definition": "label_values({__name__=~\"groundcover_.*_total_counter\", namespace='$namespace', workload_name='$workload'}, remote_service_name)",
        "hide": 2,
        "includeAll": true,
        "multi": true,
        "name": "related_workloads",
        "options": [],
        "query": {
          "query": "label_values({__name__=~\"groundcover_.*_total_counter\", namespace='$namespace', workload_name='$workload'}, remote_service_name)",
          "refId": "StandardVariableQuery"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "type": "query"
      },
      {
        "current": {
          "selected": false,
          "text": "groundcover-timescaledb",
          "value": "groundcover-timescaledb"
        },
        "hide": 2,
        "includeAll": false,
        "multi": false,
        "name": "ds_sql",
        "options": [],
        "query": "postgres",
        "refresh": 1,
        "regex": ".*$ds_prom.*",
        "skipUrlSync": false,
        "type": "datasource"
      },
      {
        "current": {
          "selected": false,
          "text": "groundcover-loki",
          "value": "groundcover-loki"
        },
        "hide": 2,
        "includeAll": false,
        "multi": false,
        "name": "ds_logs",
        "options": [],
        "query": "loki",
        "queryValue": "",
        "refresh": 1,
        "regex": ".*$ds_prom.*",
        "skipUrlSync": false,
        "type": "datasource"
      }
    ]
  },
  "time": {
    "from": "now-30m",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "",
  "title": "Workload Overview Dashboard",
  "uid": "lTP9tuo7Z",
  "version": 3,
  "weekStart": ""
}