-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Related to #40 Add an example Grafana dashboard JSON file and update the README.md with instructions on how to import it. * **grafana-dashboard-example.json** - Add a JSON file containing an example Grafana dashboard configuration with panels for visualizing response time and test results. * **README.md** - Add a section on how to import the example Grafana dashboard. - Provide instructions on how to visualize the data pushed to InfluxDB using the example dashboard. - Include steps to customize the dashboard as needed.
- Loading branch information
Showing
2 changed files
with
164 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
{ | ||
"dashboard": { | ||
"id": null, | ||
"title": "Newman InfluxDB Dashboard", | ||
"tags": [], | ||
"timezone": "browser", | ||
"schemaVersion": 16, | ||
"version": 0, | ||
"refresh": "5s", | ||
"panels": [ | ||
{ | ||
"type": "graph", | ||
"title": "Response Time", | ||
"gridPos": { | ||
"x": 0, | ||
"y": 0, | ||
"w": 24, | ||
"h": 9 | ||
}, | ||
"targets": [ | ||
{ | ||
"refId": "A", | ||
"measurement": "api_results", | ||
"groupBy": [ | ||
{ | ||
"type": "time", | ||
"params": [ | ||
"$__interval" | ||
] | ||
} | ||
], | ||
"select": [ | ||
[ | ||
{ | ||
"type": "field", | ||
"params": [ | ||
"response_time" | ||
] | ||
}, | ||
{ | ||
"type": "mean", | ||
"params": [] | ||
} | ||
] | ||
], | ||
"resultFormat": "time_series", | ||
"orderByTime": "ASC", | ||
"alias": "Response Time" | ||
} | ||
], | ||
"xaxis": { | ||
"mode": "time", | ||
"show": true | ||
}, | ||
"yaxes": [ | ||
{ | ||
"format": "ms", | ||
"show": true | ||
}, | ||
{ | ||
"show": true | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "table", | ||
"title": "Test Results", | ||
"gridPos": { | ||
"x": 0, | ||
"y": 9, | ||
"w": 24, | ||
"h": 9 | ||
}, | ||
"targets": [ | ||
{ | ||
"refId": "A", | ||
"measurement": "api_results", | ||
"groupBy": [], | ||
"select": [ | ||
[ | ||
{ | ||
"type": "field", | ||
"params": [ | ||
"test_status" | ||
] | ||
} | ||
], | ||
[ | ||
{ | ||
"type": "field", | ||
"params": [ | ||
"request_name" | ||
] | ||
} | ||
], | ||
[ | ||
{ | ||
"type": "field", | ||
"params": [ | ||
"response_time" | ||
] | ||
} | ||
], | ||
[ | ||
{ | ||
"type": "field", | ||
"params": [ | ||
"response_size" | ||
] | ||
} | ||
] | ||
], | ||
"resultFormat": "table", | ||
"orderByTime": "ASC", | ||
"alias": "Test Results" | ||
} | ||
], | ||
"columns": [ | ||
{ | ||
"text": "Request Name", | ||
"value": "request_name" | ||
}, | ||
{ | ||
"text": "Status", | ||
"value": "test_status" | ||
}, | ||
{ | ||
"text": "Response Time", | ||
"value": "response_time" | ||
}, | ||
{ | ||
"text": "Response Size", | ||
"value": "response_size" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |