Skip to content
bhattchaitanya edited this page Apr 13, 2015 · 9 revisions

Welcome to the Grafana-Dashboard-Generator wiki!

This app lets you automatically generate a Grafana dasbhoard with cumulative metrics and individual metrics for any Jmeter script. The app automatically parses the script and creates necessary JSON data objects in the file to create the dashboard JSON file. Each dashboard panel with have a auto generated query to influxdb.

The following metrics are included for each individual HTTPSampler:

  1. percentile90 (response time)
  2. failure (transactions failed per interval)
  3. success (transactions passed per interval)

The following metrics are included for the cumulative metric group:

  1. percentile90 (response time per interval)
  2. meanActiveThreads
  3. TotalTPS (Sum of Transactions Per Second of all transactions in the test plan per interval)
  4. failure (Sum of failures in the test per interval);

How to use the app:

  1. Download the GenerateDashboard.jar file
  2. Copy it into any directory.

Run the command as shown in the example:
java -jar GenerateDashboard.jar
1.Enter a name for the Grafana dashboard:
AuthIDService
2.Enter output file path (Example: /var/tmp/ on Linux OR like C:\tmp\output\ on Windows):
/var/tmp/
3.Enter path of script(example: /var/tmp/test.jmx in Linux OR like C:\tmp\test.jmx in Windows):
/Jmeter/ius-prf-tax-medium-risk.jmx
Selected Script = /Jmeter/ius-prf-tax-medium-risk.jmx
Parsing the Jmeter script and looking for all HTTP transactions...
The dashboard will contain the following transactions
1.signInTTO
2.createSignInConfirmation
3.verifySignInConfirmation
4.getAttribute
5.updateAttribute
6.lookupUserById
7.lookupUserByName
8.createUser
9.signInTTO
10.lookupGrant
11.lookupGrant
12.realmPicker
13.lookupGrant
14.signin
15.lookupUserById
16.lookupUserById
17.lookupUserById
18.getAssurnaceLevel
19.accountRecovery
20.signinAccountRecovery
21.updateTktAssuranceLevel
22.signinWithUserId
23.lookupOfferingUsages
24.signin
25.getAttribute
26.updateAttribute
27.signInTTO_Bad
28.signinLookupTaxId
29.lookupTAXIdentifier
Dashboard file successfully generated /var/tmp/AuthIDService.jason

Once the file is generated, launch grafana (like: localhost:/Grafana/) and click the "Import" button in the Dashboard dropdown. Select the generated JSON file and enjoy!! image

This is an auto generated Grafana dashboard using this tool: image

Clone this wiki locally