Vegeta 12 - InfluxDB 2 - Grafana 8
View your performance test results LIVE with InfluxDB 2.0 !!

This dashboard connects with InfluxDB and get Vegeta test data in to panel. Based on https://grafana.com/grafana/dashboards/13914
View your performance test results LIVE with InfluxDB 2.0 !!

This dashboard connects with InfluxDB and get Vegeta test data in to panel.

For more information please refer : 
{
  "__inputs": [
    {
      "name": "DS_INFLUXDB-V2",
      "label": "InfluxDB-v2",
      "description": "",
      "type": "datasource",
      "pluginId": "influxdb",
      "pluginName": "InfluxDB"
    }
  ],
  "__requires": [
    {
      "type": "panel",
      "id": "gauge",
      "name": "Gauge",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "8.1.0"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph (old)",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "influxdb",
      "name": "InfluxDB",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "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"
      }
    ]
  },
  "description": "View your performance test results LIVE with InfluxDB 2.0 !!\r\n\r\nThis dashboard connects with InfluxDB and get Vegeta test data in to panel. Based on https://grafana.com/grafana/dashboards/13914",
  "editable": true,
  "gnetId": 14842,
  "graphTooltip": 2,
  "id": null,
  "iteration": 1628406787744,
  "links": [],
  "panels": [
    {
      "cacheTimeout": null,
      "datasource": "${DS_INFLUXDB-V2}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "min": 0,
          "noValue": "0",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "short"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 8,
        "x": 0,
        "y": 0
      },
      "id": 6,
      "interval": null,
      "links": [],
      "maxDataPoints": 100,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.1.0",
      "targets": [
        {
          "alias": "",
          "bucketAggs": [
            {
              "id": "2",
              "settings": {
                "interval": "auto"
              },
              "type": "date_histogram"
            }
          ],
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "metrics": [
            {
              "id": "1",
              "type": "count"
            }
          ],
          "orderByTime": "ASC",
          "policy": "default",
          "query": "from(bucket: \"${application}\")\n|> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n|> filter(fn: (r) => r._measurement == \"${transaction}\" and r._field == \"code\")\n|> count()\n|> drop(columns:[\"_start\", \"_stop\", \"_field\"])\n|> rename(columns: {_value: \"Total Request\"})\n|> yield(name: \"Total Request\")",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [],
          "timeField": "@timestamp"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Total Requests",
      "type": "stat"
    },
    {
      "datasource": "${DS_INFLUXDB-V2}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "min": 0,
          "noValue": "0",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 10
              }
            ]
          },
          "unit": "short"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 7,
        "x": 8,
        "y": 0
      },
      "id": 20,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.1.0",
      "targets": [
        {
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "orderByTime": "ASC",
          "policy": "default",
          "query": "from(bucket: \"${application}\")\n|> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n|> filter(fn: (r) => r._measurement == \"${transaction}\" and r._field == \"code\")\n|> reduce(\n  fn: (r, accumulator) => ({\n    fail: if r._value != 200 then accumulator.fail + 1 else accumulator.fail\n  }),\n  identity: {fail: 0}\n)\n|> drop(columns:[\"_start\", \"_stop\", \"_field\", \"_measurement\"])\n|> yield(name: \"Failed Request\")",
          "refId": "Failed Request",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Failed Requests",
      "type": "stat"
    },
    {
      "datasource": "${DS_INFLUXDB-V2}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "max": 1,
          "min": 0,
          "noValue": "0",
          "thresholds": {
            "mode": "percentage",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "#EAB839",
                "value": 10
              },
              {
                "color": "super-light-red",
                "value": 20
              },
              {
                "color": "light-red",
                "value": 50
              },
              {
                "color": "semi-dark-red",
                "value": 60
              },
              {
                "color": "dark-red",
                "value": 70
              }
            ]
          },
          "unit": "percentunit"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 8,
        "x": 15,
        "y": 0
      },
      "id": 22,
      "options": {
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true,
        "text": {}
      },
      "pluginVersion": "8.1.0",
      "targets": [
        {
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "orderByTime": "ASC",
          "policy": "default",
          "query": "from(bucket: \"${application}\")\n|> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n|> filter(fn: (r) => r._measurement == \"${transaction}\" and r._field == \"code\")\n|> reduce(\n  fn: (r, accumulator) => ({\n    fail: if r._value != 200 then accumulator.fail + 1.0 else accumulator.fail,\n    success: if r._value == 200 then accumulator.success + 1.0 else accumulator.success\n  }),\n  identity: {success: 0.0, fail: 0.0}\n)\n|> map(fn: (r) => ({ r with fail_rate:\n    if not exists r.fail or r.fail == 0.0 then 0.0\n    else r.fail / (r.success + r.fail)\n  }))\n|> drop(columns:[\"_start\", \"_stop\", \"_field\", \"_measurement\", \"fail\", \"success\"])\n|> yield(name: \"Fail Rate\")",
          "refId": "Fail Rate",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Fail Rate",
      "transformations": [],
      "type": "gauge"
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_INFLUXDB-V2}",
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 23,
        "x": 0,
        "y": 5
      },
      "hiddenSeries": false,
      "id": 35,
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": false,
        "max": true,
        "min": true,
        "rightSide": false,
        "show": true,
        "total": true,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "8.1.0",
      "pointradius": 0.5,
      "points": true,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "",
          "bucketAggs": [
            {
              "id": "2",
              "settings": {
                "interval": "auto"
              },
              "type": "date_histogram"
            }
          ],
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "metrics": [
            {
              "id": "1",
              "type": "count"
            }
          ],
          "orderByTime": "ASC",
          "policy": "default",
          "query": "from(bucket:\"${application}\")\n|> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n|> filter(fn: (r) => r._measurement == \"${transaction}\" and r._field == \"code\")\n|> aggregateWindow(every: 1s, fn: count)\n|> rename(columns: {_value: \"Throughput\"})\n|> keep(columns: [\"_time\", \"Throughput\"])",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [],
          "timeField": "@timestamp"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Requests per Second",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:123",
          "format": "reqps",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "$$hashKey": "object:124",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "alert": {
        "alertRuleTags": {},
        "conditions": [
          {
            "evaluator": {
              "params": [
                500000000
              ],
              "type": "gt"
            },
            "operator": {
              "type": "and"
            },
            "query": {
              "params": [
                "95th Percentile",
                "5m",
                "now"
              ]
            },
            "reducer": {
              "params": [],
              "type": "avg"
            },
            "type": "query"
          }
        ],
        "executionErrorState": "alerting",
        "for": "5m",
        "frequency": "1m",
        "handler": 1,
        "name": "Response Time/Second alert",
        "noDataState": "no_data",
        "notifications": []
      },
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_INFLUXDB-V2}",
      "fieldConfig": {
        "defaults": {
          "unit": "ns"
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 6,
        "w": 23,
        "x": 0,
        "y": 13
      },
      "hiddenSeries": false,
      "id": 33,
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": true,
        "max": true,
        "min": true,
        "rightSide": true,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "8.1.0",
      "pointradius": 2,
      "points": true,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "hide": false,
          "query": "from(bucket: \"${application}\")\n|> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n|> filter(fn: (r) => r._measurement == \"${transaction}\" and r._field == \"latency\")\n|> toFloat()\n|> fill(value: 0.0)\n|> aggregateWindow(\n  every: 1s,\n  fn: (tables=<-, column) =>\n    tables\n    |> quantile(\n      q: 0.50,\n      method: \"estimate_tdigest\",\n      compression: 1000.0\n    )\n  )\n|> rename(columns: {_value: \"50th Percentile\"})\n|> keep(columns: [\"_time\", \"50th Percentile\"])",
          "refId": "50th Percentile"
        },
        {
          "hide": false,
          "query": "from(bucket: \"${application}\")\n|> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n|> filter(fn: (r) => r._measurement == \"${transaction}\" and r._field == \"latency\")\n|> toFloat()\n|> fill(value: 0.0)\n|> aggregateWindow(\n  every: 1s,\n  fn: (tables=<-, column) =>\n    tables\n    |> quantile(\n      q: 0.95,\n      method: \"estimate_tdigest\",\n      compression: 1000.0\n    )\n  )\n|> rename(columns: {_value: \"95th Percentile\"})\n|> keep(columns: [\"_time\", \"95th Percentile\"])",
          "refId": "95th Percentile"
        },
        {
          "hide": false,
          "query": "from(bucket: \"${application}\")\n|> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n|> filter(fn: (r) => r._measurement == \"${transaction}\" and r._field == \"latency\")\n|> toFloat()\n|> fill(value: 0.0)\n|> aggregateWindow(\n  every: 1s,\n  fn: (tables=<-, column) =>\n    tables\n    |> quantile(\n      q: 0.99,\n      method: \"estimate_tdigest\",\n      compression: 1000.0\n    )\n  )\n|> rename(columns: {_value: \"99th Percentile\"})\n|> keep(columns: [\"_time\", \"99th Percentile\"])",
          "refId": "99th Percentile"
        },
        {
          "hide": false,
          "query": "from(bucket: \"${application}\")\n|> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n|> filter(fn: (r) => r._measurement == \"${transaction}\" and r._field == \"latency\")\n|> toFloat()\n|> fill(value: 0.0)\n|> aggregateWindow(\n  every: 1s,\n  fn: (tables=<-, column) =>\n    tables\n    |> quantile(\n      q: 1.0,\n      method: \"estimate_tdigest\",\n      compression: 1000.0\n    )\n  )\n|> rename(columns: {_value: \"Max\"})\n|> keep(columns: [\"_time\", \"Max\"])",
          "refId": "Max"
        }
      ],
      "thresholds": [
        {
          "colorMode": "critical",
          "fill": true,
          "line": true,
          "op": "gt",
          "value": 500000000,
          "visible": true
        }
      ],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Response Time per Second",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:380",
          "format": "ns",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "$$hashKey": "object:381",
          "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": "${DS_INFLUXDB-V2}",
      "description": "",
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 6,
        "w": 23,
        "x": 0,
        "y": 19
      },
      "hiddenSeries": false,
      "id": 26,
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": false,
        "max": true,
        "min": true,
        "rightSide": false,
        "show": true,
        "total": true,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null as zero",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "8.1.0",
      "pointradius": 2,
      "points": true,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "",
          "bucketAggs": [
            {
              "id": "2",
              "settings": {
                "interval": "auto"
              },
              "type": "date_histogram"
            }
          ],
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "metrics": [
            {
              "id": "1",
              "type": "count"
            }
          ],
          "orderByTime": "ASC",
          "policy": "default",
          "query": "success_count = from(bucket: \"${application}\")\n|> range(start: v.timeRangeStart, stop:v.timeRangeStop)\n|> filter(fn: (r) => r._measurement == \"${transaction}\" and r._field == \"code\")\n|> toInt()\n|> rename(columns: {_value: \"request_code\"})\n|> filter(fn: (r) => r.request_code != 200)\n|> aggregateWindow(\n  every: 1s,\n  fn: (tables=<-, column) =>\n    tables\n    |> count(column: \"request_code\")\n  )\n|> rename(columns: {request_code: \"Error Rate\"})\n|> keep(columns: [\"_time\", \"Error Rate\"])\n|> yield(name: \"Error Rate\")",
          "refId": "Errors/Second",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [],
          "timeField": "@timestamp"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Errors per Second",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:68",
          "format": "err/s",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "$$hashKey": "object:69",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": true,
        "alignLevel": null
      }
    },
    {
      "datasource": "${DS_INFLUXDB-V2}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "noValue": "0",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "bytes"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 6,
        "x": 0,
        "y": 25
      },
      "id": 28,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.1.0",
      "targets": [
        {
          "alias": "",
          "bucketAggs": [
            {
              "id": "2",
              "settings": {
                "interval": "auto"
              },
              "type": "date_histogram"
            }
          ],
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "metrics": [
            {
              "id": "1",
              "type": "count"
            }
          ],
          "orderByTime": "ASC",
          "policy": "default",
          "query": "from(bucket: \"${application}\")\n|> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n|> filter(fn: (r) => r._measurement == \"${transaction}\" and r._field == \"bytes_in\")\n|> toInt()\n|> sum()",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [],
          "timeField": "@timestamp"
        }
      ],
      "title": "Received Bytes",
      "type": "stat"
    },
    {
      "datasource": "${DS_INFLUXDB-V2}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "noValue": "0",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "bytes"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 5,
        "x": 6,
        "y": 25
      },
      "id": 29,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.1.0",
      "targets": [
        {
          "alias": "",
          "bucketAggs": [
            {
              "id": "2",
              "settings": {
                "interval": "auto"
              },
              "type": "date_histogram"
            }
          ],
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "metrics": [
            {
              "id": "1",
              "type": "count"
            }
          ],
          "orderByTime": "ASC",
          "policy": "default",
          "query": "from(bucket: \"${application}\")\n|> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n|> filter(fn: (r) => r._measurement == \"${transaction}\" and r._field == \"bytes_out\")\n|> toInt()\n|> sum()",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [],
          "timeField": "@timestamp"
        }
      ],
      "title": "Sent Bytes",
      "type": "stat"
    },
    {
      "datasource": "${DS_INFLUXDB-V2}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "auto",
            "displayMode": "auto"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 11,
        "y": 25
      },
      "id": 39,
      "options": {
        "showHeader": true,
        "sortBy": [
          {
            "desc": true,
            "displayName": "responseCode"
          }
        ]
      },
      "pluginVersion": "8.1.0",
      "targets": [
        {
          "query": "from(bucket: \"${application}\")\n|> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n|> filter(fn: (r) => r._measurement == \"${transaction}\" and r._field == \"code\")\n|> rename(columns: {_value: \"responseCode\"})\n|> group(columns: [\"responseCode\"])\n|> keep(columns: [\"responseCode\"])\n|> duplicate(column: \"responseCode\", as: \"sum\")\n|> count(column: \"sum\")\n|> group(columns: [])\n|> map(fn: (r) => ({\n  r with\n  responseStatus:\n    if r.responseCode == 400 then \"Bad request\"\n    else if r.responseCode == 401 then \"Unauthorized\"\n    else if r.responseCode == 403 then \"Forbidden\"\n    else if r.responseCode == 404 then \"Not Found\"\n    else if  r.responseCode == 408 then \"Request Timeout\"\n    else if r.responseCode == 500 then \"Internal Server Error\"\n    else if r.responseCode == 502 then \"Bad Gateway\"\n    else if  r.responseCode == 503 then \"Service Unavailable\"\n    else if r.responseCode == 504 then \"Gateway Timeout\" \n    else if  r.responseCode == 200 then \"OK\"\n    else if r.responseCode == 0 then \"Failed to get a response\" \n    else \"\"\n  })\n)\n|> rename(columns: {responseCode: \"HTTP Code\"})\n|> rename(columns: {responseStatus: \"Status\"})\n|> rename(columns: {sum: \"Count\"})",
          "queryType": "randomWalk",
          "refId": "Response Status"
        }
      ],
      "title": "Response Status",
      "type": "table"
    }
  ],
  "refresh": false,
  "schemaVersion": 30,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_INFLUXDB-V2}",
        "definition": "buckets()",
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": false,
        "label": "Application",
        "multi": false,
        "name": "application",
        "options": [],
        "query": "buckets()",
        "refresh": 1,
        "regex": "^[^_-][a-zA-Z0-9_-]*$",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_INFLUXDB-V2}",
        "definition": "import \"influxdata/influxdb/schema\"\n\nschema.measurements(bucket: \"${application}\")",
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": true,
        "label": "Transaction",
        "multi": true,
        "name": "transaction",
        "options": [],
        "query": "import \"influxdata/influxdb/schema\"\n\nschema.measurements(bucket: \"${application}\")",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "2021-08-08T06:55:41.486Z",
    "to": "2021-08-08T06:56:46.981Z"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ]
  },
  "timezone": "browser",
  "title": "Vegeta 12 - InfluxDB 2 - Grafana 8",
  "uid": "RkY-ofG7z",
  "version": 12
}