{
  "__inputs": [
    {
      "name": "JMETER_DASHBOARD",
      "label": "DB name",
      "description": "Create a Datasource in Grafana that points to jmeter database",
      "type": "datasource",
      "pluginId": "influxdb",
      "pluginName": "InfluxDB"
    },
    {
      "name": "VAR_MEASUREMENT_NAME",
      "type": "constant",
      "label": "Measurement name",
      "value": "jmeter",
      "description": "InfluxDB measurement name"
    },
    {
      "name": "VAR_SEND_INTERVAL",
      "type": "constant",
      "label": "Backend send interval",
      "value": "5",
      "description": "in second, should match JMeter property \"backend_influxdb.send_interval\""
    }
  ],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "4.6.2"
    },
    {
      "type": "datasource",
      "id": "influxdb",
      "name": "InfluxDB",
      "version": "1.4.0"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "panel",
      "id": "singlestat",
      "name": "Singlestat",
      "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",
        "type": "dashboard"
      }
    ]
  },
  "description": "Overall views on test with links",
  "editable": true,
  "gnetId": null,
  "graphTooltip": 0,
  "id": 10,
  "iteration": 1594738674880,
  "links": [],
  "panels": [
    {
      "datasource": "$data_source",
      "fieldConfig": {
        "defaults": {
          "custom": {
            "align": null
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "none"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Average of total responce time"
            },
            "properties": [
              {
                "id": "custom.displayMode",
                "value": "lcd-gauge"
              },
              {
                "id": "displayName",
                "value": "Total avg time"
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    },
                    {
                      "color": "super-light-orange",
                      "value": 250
                    },
                    {
                      "color": "#EAB839",
                      "value": 500
                    },
                    {
                      "color": "#EF843C",
                      "value": 750
                    },
                    {
                      "color": "red",
                      "value": 1000
                    },
                    {
                      "color": "dark-red",
                      "value": 1500
                    }
                  ]
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Count"
            },
            "properties": [
              {
                "id": "unit",
                "value": "m"
              },
              {
                "id": "displayName",
                "value": "Test duration"
              },
              {
                "id": "decimals",
                "value": 1
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "% of Errors"
            },
            "properties": [
              {
                "id": "unit",
                "value": "percentunit"
              },
              {
                "id": "decimals",
                "value": 3
              },
              {
                "id": "custom.displayMode",
                "value": "color-text"
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    },
                    {
                      "color": "super-light-yellow",
                      "value": 0.1
                    },
                    {
                      "color": "#EAB839",
                      "value": 0.5
                    },
                    {
                      "color": "red",
                      "value": 1
                    },
                    {
                      "color": "dark-red",
                      "value": 3
                    }
                  ]
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "99% of total responce time"
            },
            "properties": [
              {
                "id": "custom.displayMode",
                "value": "lcd-gauge"
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    },
                    {
                      "color": "super-light-yellow",
                      "value": 500
                    },
                    {
                      "color": "yellow",
                      "value": 1000
                    },
                    {
                      "color": "orange",
                      "value": 2000
                    },
                    {
                      "color": "dark-red",
                      "value": 3000
                    }
                  ]
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "testRun"
            },
            "properties": []
          }
        ]
      },
      "gridPos": {
        "h": 12,
        "w": 12,
        "x": 0,
        "y": 0
      },
      "id": 5,
      "options": {
        "frameIndex": 1,
        "showHeader": true
      },
      "pluginVersion": "7.0.6",
      "targets": [
        {
          "alias": "",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT testRun FROM (SELECT testRun, text, time, application  FROM \"events\"  WHERE $timeFilter AND application=~/^$test$/ AND testRun=~/^.+$/ AND text=~/^.+?started$/) WHERE testRun=~/^$stability_tests$/ ORDER BY \"time\" DESC ",
          "rawQuery": true,
          "refId": "H",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        },
        {
          "alias": "$tag_testRun",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT \"Avg\"  FROM (SELECT mean(\"avg\") AS \"Avg\",  count(\"avg\") AS \"Count\" FROM \"jmeter\" WHERE application=~/^$test$/ AND \"transaction\"=~/^all$/ AND $timeFilter GROUP BY  testRun ORDER BY \"time\" DESC) WHERE \"Count\" > 4000 AND $timeFilter GROUP BY testRun ORDER BY \"time\" DESC",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        },
        {
          "alias": "$tag_testRun",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT sum(\"countError\") AS \"error\" FROM \"jmeter\" WHERE (\"application\" =~ /^$test$/ AND \"transaction\" = 'all') AND $timeFilter AND testRun=~/^$stability_tests$/ GROUP BY testRun",
          "rawQuery": true,
          "refId": "B",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        },
        {
          "alias": "$tag_testRun",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT sum(\"count\") AS \"all\" FROM \"jmeter\" WHERE (\"application\" =~ /^$test$/ AND \"transaction\" = 'all') AND $timeFilter AND testRun=~/^$stability_tests$/ GROUP BY testRun",
          "rawQuery": true,
          "refId": "C",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        },
        {
          "alias": "$tag_testRun",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT \"Count\"*5/60 FROM (SELECT mean(\"avg\") AS \"Avg\",  count(\"avg\") AS \"Count\" FROM \"jmeter\" WHERE application=~/^$test$/ AND \"transaction\"=~/^all$/ AND $timeFilter GROUP BY  testRun ORDER BY \"time\" DESC) WHERE \"Count\" > 4000 AND $timeFilter GROUP BY testRun ORDER BY \"time\" DESC",
          "rawQuery": true,
          "refId": "D",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        },
        {
          "alias": "$tag_testRun",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT \"99%\"  FROM (SELECT mean(\"pct99.0\") AS \"99%\",  count(\"avg\") AS \"Count\" FROM \"jmeter\" WHERE application=~/^$test$/ AND \"transaction\"=~/^all$/ AND $timeFilter GROUP BY  testRun ORDER BY \"time\" DESC) WHERE \"Count\" > 4000 AND $timeFilter GROUP BY testRun ORDER BY \"time\" DESC",
          "rawQuery": true,
          "refId": "E",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Stability Tests Trend",
      "transformations": [
        {
          "id": "seriesToColumns",
          "options": {
            "byField": "testRun"
          }
        },
        {
          "id": "calculateField",
          "options": {
            "alias": "% of Errors",
            "binary": {
              "left": "error",
              "operator": "/",
              "reducer": "sum",
              "right": "all"
            },
            "mode": "binary",
            "reduce": {
              "reducer": "sum"
            }
          }
        },
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "testRun",
                "Avg",
                "Count",
                "99%",
                "% of Errors",
                "seconds"
              ]
            }
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {},
            "indexByName": {
              "% of Errors": 3,
              "99%": 2,
              "Avg": 1,
              "Count": 4,
              "testRun": 0
            },
            "renameByName": {
              "99%": "99% of total responce time",
              "Avg": "Average of total responce time"
            }
          }
        }
      ],
      "type": "table"
    },
    {
      "datasource": "$data_source",
      "fieldConfig": {
        "defaults": {
          "custom": {
            "align": null
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "none"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Average of total responce time"
            },
            "properties": [
              {
                "id": "custom.displayMode",
                "value": "lcd-gauge"
              },
              {
                "id": "displayName",
                "value": "Total avg time"
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    },
                    {
                      "color": "super-light-orange",
                      "value": 250
                    },
                    {
                      "color": "#EAB839",
                      "value": 500
                    },
                    {
                      "color": "#EF843C",
                      "value": 750
                    },
                    {
                      "color": "red",
                      "value": 1000
                    },
                    {
                      "color": "dark-red",
                      "value": 1500
                    }
                  ]
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Count"
            },
            "properties": [
              {
                "id": "unit",
                "value": "m"
              },
              {
                "id": "displayName",
                "value": "Test duration"
              },
              {
                "id": "decimals",
                "value": 1
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "% of Errors"
            },
            "properties": [
              {
                "id": "unit",
                "value": "percentunit"
              },
              {
                "id": "decimals",
                "value": 3
              },
              {
                "id": "custom.displayMode",
                "value": "color-text"
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "percentage",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    },
                    {
                      "color": "super-light-yellow",
                      "value": 1
                    },
                    {
                      "color": "#EAB839",
                      "value": 5
                    },
                    {
                      "color": "red",
                      "value": 15
                    },
                    {
                      "color": "dark-red",
                      "value": 30
                    }
                  ]
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "99% of total responce time"
            },
            "properties": [
              {
                "id": "custom.displayMode",
                "value": "lcd-gauge"
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    },
                    {
                      "color": "super-light-yellow",
                      "value": 500
                    },
                    {
                      "color": "yellow",
                      "value": 1000
                    },
                    {
                      "color": "orange",
                      "value": 2000
                    },
                    {
                      "color": "dark-red",
                      "value": 3000
                    }
                  ]
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "testRun"
            },
            "properties": []
          }
        ]
      },
      "gridPos": {
        "h": 12,
        "w": 12,
        "x": 12,
        "y": 0
      },
      "id": 7,
      "options": {
        "frameIndex": 1,
        "showHeader": true
      },
      "pluginVersion": "7.0.6",
      "targets": [
        {
          "alias": "",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT testRun FROM (SELECT testRun, text, time, application  FROM \"events\"  WHERE $timeFilter AND application=~/^$test$/ AND testRun=~/^.+$/ AND text=~/^.+?started$/) WHERE testRun=~/^$stress_tests$/ ORDER BY \"time\" DESC ",
          "rawQuery": true,
          "refId": "H",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        },
        {
          "alias": "$tag_testRun",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT \"Avg\"  FROM (SELECT mean(\"avg\") AS \"Avg\",  count(\"avg\")*5 AS \"Count\" FROM \"jmeter\" WHERE application=~/^$test$/ AND \"transaction\"=~/^all$/ AND $timeFilter GROUP BY  testRun ORDER BY \"time\" DESC) WHERE \"Count\" > 3500 AND \"Count\"<4000 AND $timeFilter GROUP BY testRun ORDER BY \"time\" DESC",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        },
        {
          "alias": "$tag_testRun",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT sum(\"countError\") AS \"error\" FROM \"jmeter\" WHERE (\"application\" =~ /^$test$/ AND \"transaction\" = 'all') AND $timeFilter AND testRun=~/^$stress_tests$/ GROUP BY testRun",
          "rawQuery": true,
          "refId": "B",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        },
        {
          "alias": "$tag_testRun",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT sum(\"count\") AS \"all\" FROM \"jmeter\" WHERE (\"application\" =~ /^$test$/ AND \"transaction\" = 'all') AND $timeFilter AND testRun=~/^$stress_tests$/ GROUP BY testRun",
          "rawQuery": true,
          "refId": "C",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        },
        {
          "alias": "$tag_testRun",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT \"Count\"/60 FROM (SELECT mean(\"avg\") AS \"Avg\",  count(\"avg\")*5 AS \"Count\" FROM \"jmeter\" WHERE application=~/^$test$/ AND \"transaction\"=~/^all$/ AND $timeFilter GROUP BY  testRun ORDER BY \"time\" DESC) WHERE \"Count\">3500 AND \"Count\"<4000 AND $timeFilter GROUP BY testRun ORDER BY \"time\" DESC",
          "rawQuery": true,
          "refId": "D",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        },
        {
          "alias": "$tag_testRun",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT \"99%\"  FROM (SELECT mean(\"pct99.0\") AS \"99%\",  count(\"avg\")*5 AS \"Count\" FROM \"jmeter\" WHERE application=~/^$test$/ AND \"transaction\"=~/^all$/ AND $timeFilter GROUP BY  testRun ORDER BY \"time\" DESC) WHERE \"Count\">3500 AND \"Count\"<4000 AND $timeFilter GROUP BY testRun ORDER BY \"time\" DESC",
          "rawQuery": true,
          "refId": "E",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Stress Tests Trend",
      "transformations": [
        {
          "id": "seriesToColumns",
          "options": {
            "byField": "testRun"
          }
        },
        {
          "id": "calculateField",
          "options": {
            "alias": "% of Errors",
            "binary": {
              "left": "error",
              "operator": "/",
              "reducer": "sum",
              "right": "all"
            },
            "mode": "binary",
            "reduce": {
              "reducer": "sum"
            }
          }
        },
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "testRun",
                "Avg",
                "Count",
                "99%",
                "% of Errors",
                "seconds"
              ]
            }
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {},
            "indexByName": {
              "% of Errors": 3,
              "99%": 2,
              "Avg": 1,
              "Count": 4,
              "testRun": 0
            },
            "renameByName": {
              "99%": "99% of total responce time",
              "Avg": "Average of total responce time"
            }
          }
        }
      ],
      "type": "table"
    },
    {
      "columns": [],
      "datasource": "$data_source",
      "fieldConfig": {
        "defaults": {
          "custom": {}
        },
        "overrides": []
      },
      "fontSize": "100%",
      "gridPos": {
        "h": 12,
        "w": 12,
        "x": 0,
        "y": 12
      },
      "id": 10,
      "pageSize": 9,
      "showHeader": true,
      "sort": {
        "col": 6,
        "desc": true
      },
      "styles": [
        {
          "alias": "",
          "align": "auto",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "link": true,
          "linkTooltip": "Dashboard",
          "linkUrl": "http://$grafana_host:3000/d/LeWVcwrZk/apache-jmeter-dashboard-using-core-influxdbbackendlistenerclient?from=${__cell_1}&to=${__cell_5}&var-project=${__cell_2}&var-limit=5&var-run=${__cell}",
          "mappingType": 1,
          "pattern": "testRun",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        },
        {
          "alias": "Test Duration",
          "align": "auto",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "Count",
          "thresholds": [],
          "type": "number",
          "unit": "s"
        },
        {
          "alias": "",
          "align": "auto",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "/^(X|L1|A)$/",
          "thresholds": [],
          "type": "hidden",
          "unit": "short"
        },
        {
          "alias": "Project",
          "align": "left",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "application",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        },
        {
          "alias": "Run ID",
          "align": "auto",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "testRun",
          "thresholds": [],
          "type": "number",
          "unit": "none"
        }
      ],
      "targets": [
        {
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT testRun, application, time AS \"X\" FROM (SELECT testRun, text, time, application  FROM \"events\"  WHERE $timeFilter AND application=~/^$test$/ AND testRun=~/^.+$/ AND text=~/^.+?started$/) WHERE testRun=~/^$normal_tests$/ORDER BY \"time\" DESC \n",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        },
        {
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT \"Count\" FROM (SELECT count(\"avg\")*5 AS \"Count\" FROM \"jmeter\" WHERE \"transaction\"=~/^all$/ AND $timeFilter AND application=~/^$test$/ GROUP BY  testRun) WHERE \"Count\">1800 GROUP BY  testRun",
          "rawQuery": true,
          "refId": "B",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        },
        {
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT \"Count\"*2 AS \"L1\" FROM (SELECT count(\"avg\")*5 AS \"Count\" FROM \"jmeter\" WHERE \"transaction\"=~/^all$/ AND $timeFilter GROUP BY  testRun) WHERE \"Count\">1800 GROUP BY  testRun",
          "rawQuery": true,
          "refId": "C",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        },
        {
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT testRun, time as \"A\" FROM (SELECT last(\"avg\"), time FROM \"jmeter\" WHERE \"transaction\"=~/^all$/ AND $timeFilter AND application=~/^$test$/ GROUP BY  testRun)",
          "rawQuery": true,
          "refId": "D",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "$test tests with links",
      "transform": "table",
      "transformations": [
        {
          "id": "seriesToColumns",
          "options": {
            "byField": "testRun"
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "Time": true
            },
            "indexByName": {},
            "renameByName": {}
          }
        }
      ],
      "type": "table-old"
    },
    {
      "columns": [],
      "datasource": "$data_source",
      "fieldConfig": {
        "defaults": {
          "custom": {}
        },
        "overrides": []
      },
      "fontSize": "100%",
      "gridPos": {
        "h": 12,
        "w": 12,
        "x": 12,
        "y": 12
      },
      "id": 11,
      "pageSize": 9,
      "showHeader": true,
      "sort": {
        "col": 6,
        "desc": true
      },
      "styles": [
        {
          "alias": "",
          "align": "auto",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "link": true,
          "linkTooltip": "Dashboard",
          "linkUrl": "http://$grafana_host:3000/d/LeWVcwrZk/apache-jmeter-dashboard-using-core-influxdbbackendlistenerclient?from=${__cell_1}&to=${__cell_5}&var-project=${__cell_2}&var-limit=5&var-run=${__cell}",
          "mappingType": 1,
          "pattern": "testRun",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        },
        {
          "alias": "Test Duration",
          "align": "auto",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "Count",
          "thresholds": [],
          "type": "number",
          "unit": "s"
        },
        {
          "alias": "",
          "align": "auto",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "/^(X|L1|A)$/",
          "thresholds": [],
          "type": "hidden",
          "unit": "short"
        },
        {
          "alias": "Run ID link to test metrics dashboard",
          "align": "auto",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "testRun",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        },
        {
          "alias": "Project",
          "align": "auto",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "application",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        }
      ],
      "targets": [
        {
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT testRun, application, time AS \"X\" FROM (SELECT testRun, text, time, application  FROM \"events\"  WHERE $timeFilter AND testRun=~/^.+$/ AND text=~/^.+?started$/) WHERE testRun=~/^$normal_tests$/ ORDER BY \"time\" DESC \n",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        },
        {
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT \"Count\" FROM (SELECT count(\"avg\")*5 AS \"Count\" FROM \"jmeter\" WHERE \"transaction\"=~/^all$/ AND $timeFilter GROUP BY  testRun) WHERE \"Count\">1800 GROUP BY  testRun\n",
          "rawQuery": true,
          "refId": "B",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        },
        {
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT \"Count\"*2 AS \"L1\" FROM (SELECT count(\"avg\")*5 AS \"Count\" FROM \"jmeter\" WHERE \"transaction\"=~/^all$/ AND $timeFilter GROUP BY  testRun) WHERE \"Count\">1800 GROUP BY  testRun\n",
          "rawQuery": true,
          "refId": "C",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        },
        {
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT testRun, time as \"A\" FROM (SELECT last(\"avg\"), time FROM \"jmeter\" WHERE \"transaction\"=~/^all$/ AND $timeFilter GROUP BY  testRun)",
          "rawQuery": true,
          "refId": "D",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "All tests with links",
      "transform": "table",
      "transformations": [
        {
          "id": "seriesToColumns",
          "options": {
            "byField": "testRun"
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "Time": true
            },
            "indexByName": {},
            "renameByName": {}
          }
        }
      ],
      "type": "table-old"
    }
  ],
  "refresh": false,
  "schemaVersion": 25,
  "style": "dark",
  "tags": [
    "trends",
    "links"
  ],
  "templating": {
    "list": [
      {
        "current": {
          "selected": false,
          "text": "localhost",
          "value": "localhost"
        },
        "hide": 0,
        "label": "grafana_host",
        "name": "grafana_host",
        "options": [
          {
            "selected": true,
            "text": "localhost",
            "value": "localhost"
          }
        ],
        "query": "localhost",
        "skipUrlSync": false,
        "type": "constant"
      },
      {
        "allValue": null,
        "current": {
          "selected": true,
          "text": "IMtestNEW",
          "value": "IMtestNEW"
        },
        "datasource": "$data_source",
        "definition": "SELECT DISTINCT(\"application\") FROM (SELECT \"text\", \"application\" FROM events)  ",
        "hide": 0,
        "includeAll": false,
        "label": "Choose Project",
        "multi": false,
        "name": "test",
        "options": [],
        "query": "SELECT DISTINCT(\"application\") FROM (SELECT \"text\", \"application\" FROM events)  ",
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "current": {
          "selected": false,
          "text": "360",
          "value": "360"
        },
        "hide": 2,
        "label": "test_1",
        "name": "test_1",
        "options": [
          {
            "selected": true,
            "text": "360",
            "value": "360"
          }
        ],
        "query": "360",
        "skipUrlSync": false,
        "type": "constant"
      },
      {
        "current": {
          "selected": false,
          "text": "8600",
          "value": "8600"
        },
        "hide": 2,
        "label": "stability_2",
        "name": "stability",
        "options": [
          {
            "selected": true,
            "text": "8600",
            "value": "8600"
          }
        ],
        "query": "8600",
        "skipUrlSync": false,
        "type": "constant"
      },
      {
        "current": {
          "selected": false,
          "text": "700",
          "value": "700"
        },
        "hide": 2,
        "label": "stress",
        "name": "stress",
        "options": [
          {
            "selected": true,
            "text": "700",
            "value": "700"
          }
        ],
        "query": "700",
        "skipUrlSync": false,
        "type": "constant"
      },
      {
        "auto": false,
        "auto_count": 30,
        "auto_min": "10s",
        "current": {
          "selected": false,
          "text": "stability",
          "value": "stability"
        },
        "hide": 2,
        "label": "Choose type of test",
        "name": "type",
        "options": [
          {
            "selected": true,
            "text": "stability",
            "value": "stability"
          },
          {
            "selected": false,
            "text": "stress",
            "value": "stress"
          }
        ],
        "query": "stability, stress",
        "queryValue": "",
        "refresh": 2,
        "skipUrlSync": false,
        "type": "interval"
      },
      {
        "allValue": null,
        "current": {
          "selected": false,
          "text": "All",
          "value": "$__all"
        },
        "datasource": "$data_source",
        "definition": "SELECT \"testRun\" FROM (SELECT count(\"avg\") as \"COUNT\" FROM \"jmeter\" WHERE application=~/^$test$/ AND \"transaction\"=~/^all$/ GROUP BY testRun) WHERE \"COUNT\">4000",
        "hide": 2,
        "includeAll": true,
        "label": "stab_tests",
        "multi": false,
        "name": "stability_tests",
        "options": [],
        "query": "SELECT \"testRun\" FROM (SELECT count(\"avg\") as \"COUNT\" FROM \"jmeter\" WHERE application=~/^$test$/ AND \"transaction\"=~/^all$/ GROUP BY testRun) WHERE \"COUNT\">4000",
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {
          "selected": false,
          "text": "All",
          "value": "$__all"
        },
        "datasource": "$data_source",
        "definition": "SELECT \"testRun\" FROM (SELECT count(\"avg\")*5 as \"COUNT\" FROM \"jmeter\" WHERE  \"transaction\"=~/^all$/ GROUP BY testRun) WHERE \"COUNT\">1800",
        "hide": 2,
        "includeAll": true,
        "label": "normal_tests",
        "multi": false,
        "name": "normal_tests",
        "options": [],
        "query": "SELECT \"testRun\" FROM (SELECT count(\"avg\")*5 as \"COUNT\" FROM \"jmeter\" WHERE  \"transaction\"=~/^all$/ GROUP BY testRun) WHERE \"COUNT\">1800",
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {
          "selected": false,
          "text": "All",
          "value": "$__all"
        },
        "datasource": "$data_source",
        "definition": "SELECT \"testRun\" FROM (SELECT count(\"avg\")*5 as \"COUNT\" FROM \"jmeter\" WHERE application=~/^$test$/ AND  \"transaction\"=~/^all$/ GROUP BY testRun) WHERE \"COUNT\">3500 AND \"COUNT\"<4000",
        "hide": 2,
        "includeAll": true,
        "label": "stress_tests",
        "multi": false,
        "name": "stress_tests",
        "options": [],
        "query": "SELECT \"testRun\" FROM (SELECT count(\"avg\")*5 as \"COUNT\" FROM \"jmeter\" WHERE application=~/^$test$/ AND  \"transaction\"=~/^all$/ GROUP BY testRun) WHERE \"COUNT\">3500 AND \"COUNT\"<4000",
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "current": {
          "selected": false,
          "text": "InfluxDB",
          "value": "InfluxDB"
        },
        "hide": 0,
        "includeAll": false,
        "label": "Data Source",
        "multi": false,
        "name": "data_source",
        "options": [],
        "query": "influxdb",
        "queryValue": "",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "type": "datasource"
      }
    ]
  },
  "time": {
    "from": "now-30d",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ]
  },
  "timezone": "",
  "title": "Tests Trends",
  "uid": "ubn_P4WMk",
  "version": 3
}
