Manual

Integrating Loadster with Grafana

If you watch your servers in Grafana, the Loadster data source plugin puts your load test metrics on the same dashboards. You can see response times climb next to CPU or database load while a test runs, and set up Grafana alerts on them. Grafana shows load tests from the last 30 days.

Connecting Grafana to Loadster

You’ll need Grafana 13.2 or later (Grafana Cloud or your own server) and the Admin role in your Grafana organization.

  1. In Loadster, create a personal access token with the Read access level. Grafana only reads metrics, so it doesn’t need more.
  2. In Grafana, go to Administration → Plugins and data → Plugins, search for “Loadster”, and click Install.
  3. Click Add new data source, paste the token into Personal Access Token, and click Save & test.

When you see Connected to Loadster, you’re set. Loadster rejected the Personal Access Token means the token was revoked or pasted incompletely. Cannot reach Loadster usually means a firewall or proxy blocks Grafana from going out to the internet.

Building a Grafana Panel with Loadster Metrics

Choose the Loadster data source in a panel, then pick a Project and a Metric. The panel shows every load test in that project that ran during the dashboard’s time range, with its own lines for each test:

  • Running Bots: one line per population.
  • Transactions per second: pages, hits, iterations, and errors per second.
  • Average response time: one line per test.
  • Response time percentiles: the 50th, 80th, 90th, 95th, and 99th percentiles.
  • Errors by type: one line per type of error, counted from the start of the test.
  • Network throughput: upload and download.
  • Average response time by page: one line per page or request.

Lines are named after the scenario and load test, like Checkout (Test 9) · p95. A Grafana alert rule on any of these metrics fires separately for each line.

Grafana Refresh Rate and the Loadster Request Limit

To follow a running test, pick 10s from the arrow next to the dashboard’s refresh button. We don’t recommend refreshing faster than that.

Loadster allows 60 requests a minute from each personal access token or network address, and each panel query makes one request per refresh. Everyone viewing the dashboard and every alert rule on the data source share that limit, and so do Grafana servers that reach Loadster from the same network address. One panel for each of the seven metrics at 10 seconds uses 42 requests a minute, which leaves some room for alerts. If you go over, panels say how long to wait.

Getting Help With the Grafana Integration

The Loadster team supports this integration. If you have trouble or feature requests, reach out at help@loadster.com and we’ll be happy to help.