Grafana dashboard: Grafana
Description: Visualize Grafana graphs based on Gatling benchmark results stored in Influxdb. Fully compatible with Docker.

Suitable to see what is happening in real time when running Gatling in a distributed environment. Example setup can be found in github (https://github.com/ugurarpaci/gatling-docker)

{
  "__inputs": [
    {
      "name": "DS_INFLUXDB",
      "label": "InfluxDB",
      "description": "",
      "type": "datasource",
      "pluginId": "influxdb",
      "pluginName": "InfluxDB"
    }
  ],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "4.6.3"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "influxdb",
      "name": "InfluxDB",
      "version": "1.0.0"
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": 4419,
  "graphTooltip": 0,
  "hideControls": true,
  "id": null,
  "links": [],
  "refresh": "1s",
  "rows": [
    {
      "collapse": false,
      "height": "250px",
      "panels": [
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_INFLUXDB}",
          "editable": true,
          "error": false,
          "fill": 1,
          "grid": {},
          "id": 1,
          "interval": "10s",
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "rightSide": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 2,
          "links": [],
          "nullPointMode": "connected",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "span": 12,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "Node $tag_request",
              "dsType": "influxdb",
              "fields": [
                {
                  "func": "mean",
                  "name": "value"
                }
              ],
              "groupBy": [],
              "hide": false,
              "measurement": "gatling",
              "orderByTime": "ASC",
              "policy": "default",
              "query": "SELECT count FROM \"gatling\" WHERE $timeFilter AND \"request\" != 'allRequests' AND \"status\"='all' group by request\n",
              "rawQuery": true,
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "count"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "request",
                  "operator": "=",
                  "value": "allRequests"
                },
                {
                  "condition": "AND",
                  "key": "status",
                  "operator": "=",
                  "value": "all"
                }
              ]
            },
            {
              "alias": "All req",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "$__interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "hide": false,
              "orderByTime": "ASC",
              "policy": "default",
              "query": "SELECT sum(count) FROM \"gatling\" WHERE $timeFilter AND \"request\" != 'allRequests' AND \"status\"='all' group by time(1s)",
              "rawQuery": true,
              "refId": "B",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": []
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeShift": null,
          "title": "RPS",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "cumulative"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "short",
              "logBase": 1,
              "max": null,
              "min": 0,
              "show": true
            },
            {
              "format": "short",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ]
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_INFLUXDB}",
          "editable": true,
          "error": false,
          "fill": 1,
          "grid": {},
          "id": 3,
          "interval": "10s",
          "legend": {
            "avg": false,
            "current": true,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 2,
          "links": [],
          "nullPointMode": "connected",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "span": 12,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "All Passes",
              "dsType": "influxdb",
              "fields": [
                {
                  "func": "mean",
                  "name": "value"
                }
              ],
              "groupBy": [],
              "measurement": "gatling",
              "orderByTime": "ASC",
              "policy": "default",
              "query": "SELECT sum(count) FROM \"gatling\" WHERE $timeFilter AND (\"request\" != 'allRequests' AND \"status\" = 'ok') group by time(1s)",
              "rawQuery": true,
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "count"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "request",
                  "operator": "=",
                  "value": "allRequests"
                },
                {
                  "condition": "AND",
                  "key": "status",
                  "operator": "=",
                  "value": "ok"
                }
              ]
            },
            {
              "alias": "All Errors",
              "dsType": "influxdb",
              "fields": [
                {
                  "func": "mean",
                  "name": "value"
                }
              ],
              "groupBy": [],
              "hide": false,
              "measurement": "gatling",
              "orderByTime": "ASC",
              "policy": "default",
              "query": "SELECT sum(count) FROM \"gatling\" WHERE $timeFilter AND (\"request\" != 'allRequests' AND \"status\" = 'ko') group by time(1s)",
              "rawQuery": true,
              "refId": "B",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "count"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "request",
                  "operator": "=",
                  "value": "allRequests"
                },
                {
                  "condition": "AND",
                  "key": "status",
                  "operator": "=",
                  "value": "ko"
                }
              ]
            },
            {
              "alias": "Pass $tag_request",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "$__interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "orderByTime": "ASC",
              "policy": "default",
              "query": "SELECT count FROM \"gatling\" WHERE $timeFilter AND (\"request\" != 'allRequests' AND \"status\" = 'ok') group by request",
              "rawQuery": true,
              "refId": "C",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "Error $tag_request",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "$__interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "orderByTime": "ASC",
              "policy": "default",
              "query": "SELECT count FROM \"gatling\" WHERE $timeFilter AND (\"request\" != 'allRequests' AND \"status\" = 'ko') group by request",
              "rawQuery": true,
              "refId": "D",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": []
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeShift": null,
          "title": "Errors v Passes",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "cumulative"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "short",
              "logBase": 1,
              "max": null,
              "min": 0,
              "show": true
            },
            {
              "format": "short",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ]
        }
      ],
      "repeat": null,
      "repeatIteration": null,
      "repeatRowId": null,
      "showTitle": false,
      "title": "Row",
      "titleSize": "h6"
    },
    {
      "collapse": false,
      "height": "250px",
      "panels": [
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_INFLUXDB}",
          "editable": true,
          "error": false,
          "fill": 1,
          "grid": {},
          "id": 2,
          "interval": "10s",
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 2,
          "links": [],
          "nullPointMode": "connected",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "span": 12,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "percentiles50",
              "dsType": "influxdb",
              "fields": [
                {
                  "func": "mean",
                  "name": "value"
                }
              ],
              "groupBy": [],
              "hide": false,
              "measurement": "gatling",
              "orderByTime": "ASC",
              "policy": "default",
              "query": "SELECT sum(\"percentiles50\") FROM \"gatling\" WHERE (\"request\" != 'allRequests' AND \"status\" = 'ok') AND $timeFilter group by time(1s)",
              "rawQuery": true,
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "percentiles50"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "request",
                  "operator": "=",
                  "value": "allRequests"
                },
                {
                  "condition": "AND",
                  "key": "status",
                  "operator": "=",
                  "value": "ok"
                }
              ]
            },
            {
              "alias": "percentiles95",
              "dsType": "influxdb",
              "groupBy": [],
              "hide": false,
              "measurement": "gatling",
              "orderByTime": "ASC",
              "policy": "default",
              "query": "SELECT sum(\"percentiles95\") FROM \"gatling\" WHERE (\"request\" != 'allRequests' AND \"status\" = 'ok') AND $timeFilter group by time(1s)",
              "rawQuery": true,
              "refId": "B",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "percentiles95"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "request",
                  "operator": "=",
                  "value": "allRequests"
                },
                {
                  "condition": "AND",
                  "key": "status",
                  "operator": "=",
                  "value": "ok"
                }
              ]
            },
            {
              "alias": "percentiles99",
              "dsType": "influxdb",
              "groupBy": [],
              "hide": false,
              "measurement": "gatling",
              "orderByTime": "ASC",
              "policy": "default",
              "query": "SELECT sum(\"percentiles99\") FROM \"gatling\" WHERE (\"request\" != 'allRequests' AND \"status\" = 'ok') AND $timeFilter group by time(1s)",
              "rawQuery": true,
              "refId": "C",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "percentiles99"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "request",
                  "operator": "=",
                  "value": "allRequests"
                },
                {
                  "condition": "AND",
                  "key": "status",
                  "operator": "=",
                  "value": "ok"
                }
              ]
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeShift": null,
          "title": "Latencies: Percentiles & Max",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "cumulative"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "ms",
              "logBase": 1,
              "max": null,
              "min": 0,
              "show": true
            },
            {
              "format": "short",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ]
        }
      ],
      "repeat": null,
      "repeatIteration": null,
      "repeatRowId": null,
      "showTitle": false,
      "title": "New row",
      "titleSize": "h6"
    },
    {
      "collapse": false,
      "height": "250px",
      "panels": [
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_INFLUXDB}",
          "editable": true,
          "error": false,
          "fill": 1,
          "grid": {},
          "id": 4,
          "interval": "10s",
          "legend": {
            "avg": false,
            "current": false,
            "hideEmpty": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 2,
          "links": [],
          "nullPointMode": "connected",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "span": 4,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "$tag_request",
              "dsType": "influxdb",
              "fields": [
                {
                  "func": "mean",
                  "name": "value"
                }
              ],
              "groupBy": [
                {
                  "params": [
                    "request"
                  ],
                  "type": "tag"
                }
              ],
              "hide": false,
              "measurement": "gatling",
              "orderByTime": "ASC",
              "policy": "default",
              "query": "SELECT \"percentiles50\" FROM \"gatling\" WHERE (\"request\" <> 'allRequests') AND $timeFilter GROUP BY \"request\"",
              "rawQuery": true,
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "percentiles95"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "request",
                  "operator": "<>",
                  "value": "allRequests"
                }
              ]
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeShift": null,
          "title": "Individual Requests (50% Line)",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "cumulative"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "ms",
              "logBase": 1,
              "max": null,
              "min": 0,
              "show": true
            },
            {
              "format": "short",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ]
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_INFLUXDB}",
          "editable": true,
          "error": false,
          "fill": 1,
          "grid": {},
          "id": 5,
          "interval": "10s",
          "legend": {
            "avg": false,
            "current": false,
            "hideEmpty": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 2,
          "links": [],
          "nullPointMode": "connected",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "span": 4,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "$tag_request",
              "dsType": "influxdb",
              "fields": [
                {
                  "func": "mean",
                  "name": "value"
                }
              ],
              "groupBy": [
                {
                  "params": [
                    "request"
                  ],
                  "type": "tag"
                }
              ],
              "hide": false,
              "measurement": "gatling",
              "orderByTime": "ASC",
              "policy": "default",
              "query": "SELECT \"percentiles95\" FROM \"gatling\" WHERE (\"request\" <> 'allRequests') AND $timeFilter GROUP BY \"request\"",
              "rawQuery": true,
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "percentiles95"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "request",
                  "operator": "<>",
                  "value": "allRequests"
                }
              ]
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeShift": null,
          "title": "Individual Requests (95% Line)",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "cumulative"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "ms",
              "logBase": 1,
              "max": null,
              "min": 0,
              "show": true
            },
            {
              "format": "short",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ]
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_INFLUXDB}",
          "editable": true,
          "error": false,
          "fill": 1,
          "grid": {},
          "id": 6,
          "interval": "10s",
          "legend": {
            "avg": false,
            "current": false,
            "hideEmpty": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 2,
          "links": [],
          "nullPointMode": "connected",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "span": 4,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "$tag_request",
              "dsType": "influxdb",
              "fields": [
                {
                  "func": "mean",
                  "name": "value"
                }
              ],
              "groupBy": [
                {
                  "params": [
                    "request"
                  ],
                  "type": "tag"
                }
              ],
              "hide": false,
              "measurement": "gatling",
              "orderByTime": "ASC",
              "policy": "default",
              "query": "SELECT \"percentiles99\" FROM \"gatling\" WHERE (\"request\" <> 'allRequests') AND $timeFilter GROUP BY \"request\"",
              "rawQuery": true,
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "percentiles95"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "request",
                  "operator": "<>",
                  "value": "allRequests"
                }
              ]
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeShift": null,
          "title": "Individual Requests (99% Line)",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "cumulative"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "ms",
              "logBase": 1,
              "max": null,
              "min": 0,
              "show": true
            },
            {
              "format": "short",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ]
        }
      ],
      "repeat": null,
      "repeatIteration": null,
      "repeatRowId": null,
      "showTitle": false,
      "title": "New row",
      "titleSize": "h6"
    },
    {
      "collapse": false,
      "height": "250px",
      "panels": [],
      "repeat": null,
      "repeatIteration": null,
      "repeatRowId": null,
      "showTitle": false,
      "title": "New row",
      "titleSize": "h6"
    }
  ],
  "schemaVersion": 14,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": []
  },
  "time": {
    "from": "now-10m",
    "to": "now"
  },
  "timepicker": {
    "now": true,
    "refresh_intervals": [
      "1s",
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "timezone": "browser",
  "title": "Grafana",
  "version": 0,
  "description": "Visualize Grafana graphs based on Gatling benchmark results stored in Influxdb. Fully compatible with Docker."
}