hedera-json-rpc-relay icon indicating copy to clipboard operation
hedera-json-rpc-relay copied to clipboard

Save output of K6 Results into InfluxDb + Grafana

Open AlfredoG87 opened this issue 2 years ago • 0 comments

Problem

Currently we have a working suite of performance tests for hedera-json-rpc-relay, but the results of the tests are presented as a .md file so interpretation is limited.

Ideally we would like to have a graphical dashboard where we can have more insightful presentation and comparison of performance tests results.

Solution

  1. Provision an influxDB for k6
  2. Create npm task that use necessary options to save to influxdb and do an initial run.
  3. Add (Import) influxDB to Grafana server as a DataSource
  4. Create dashboard to show and present the results of the tests.

Recommended templates: This templates should be used as starting point and examples. https://grafana.com/grafana/dashboards/2587-k6-load-testing-results/ https://grafana.com/grafana/dashboards/10660-k6-load-testing-results/

K6 Doc on Export to InfluxDB: https://k6.io/docs/results-output/real-time/influxdb-grafana/

Example of desired output: image

Alternatives

  • use a GDrive Spreadsheet to generate some graphs.
  • Continue to use the MD report storing it on a Notion page for reference.

AlfredoG87 avatar Feb 27 '23 17:02 AlfredoG87