agentleFS
ElasticKnown publisherelastic/rally/skills/accessing-benchmark-results/SKILL.md

accessing-benchmark-results

Skill2k starsChanged 5 months agoApache-2.0View on GitHub

Retrieve Rally benchmark results from an external Elasticsearch metrics store. Use to list past races, get a single race's overall (per-task) results, chart a metric's trend across multiple runs, compare two races, or check whether a run converged — e.g. "show me recent geonames races", "what's the service_time trend for nyc_taxis over the last 30 days?", "compare these two race-ids". Applies when datastore.type = elasticsearch is set in ~/.rally/rally.ini.

Trending

Quiet since March.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 1 mentionApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the elastic/rally repository that our weekly crawl found: only 9 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about elastic/rally

The biggest 5 of 9 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 9

Talked about on GitHub (9 times).

On GitHub · 9

4 more on GitHub

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Check for an existing report first: If the race was launched via the running-benchmarks skill with --report-file (e.g.

    line 22
  2. Very specific:

    Run these against the metrics store cluster with any Elasticsearch client, curl, or Kibana Dev Tools.

    line 80
  3. Very specific:

    When you want more than esrally compare shows, pull each race's per-task stats and diff them client-side.

    line 130
  4. Very specific:

    Use this to check whether a race reached steady state before you trust its numbers.

    line 149

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Accessing Rally benchmark results

Rally can persist every race to a dedicated Elasticsearch metrics store (set datastore.type = elasticsearch in the [reporting] section of ~/.rally/rally.ini; see docs/configuration.rst). This skill covers reading that data back — overall results, trends across runs, comparisons, and convergence checks.

The metrics store is a separate cluster from the one under test. Point queries at the metrics store host from [reporting], never at the benchmark target.

Check for an existing report first. If the race was launched via the running-benchmarks skill with --report-file (e.g. ~/benchmarks/result.md), the summary report for that single race is already saved on disk — read that file instead of re-querying. Use this skill's queries for anything the saved report doesn't cover: trends across runs, comparisons, convergence, or ad-hoc aggregations.

When to use

  • Browsing past races for a track or time range.
  • Getting one race's overall per-task results (throughput, latency, service_time).
  • Charting how a metric moved across runs (regression / improvement detection).
  • Comparing two specific races to quantify a change.
  • Checking whether a run's metrics stabilized (converged) over its duration.

Where the data lives

By default (datastore.use_data_streams = true) Rally writes to three versioned data streams (rally-races-v*, rally-results-v*, and rally-metrics-v*; current version is in docs/metrics.rst). If you set datastore.use_data_streams = false, Rally writes to monthly indices instead (rally-races-YYYY-MM, rally-results-YYYY-MM, rally-metrics-YYYY-MM). Querying with a wildcard (rally-races-*, rally-results-*, rally-metrics-*) covers both layouts.

Stream / indexOne doc perContains
rally-races-*racerace metadata: track, challenge, car, timestamps, user tags
rally-results-*task+metricaggregated results — the summary-report numbers
rally-metrics-*sampleraw time-series samples + node/GC/segment metrics

Key fields (docs/metrics.rst)

race-id (UUID grouping a run), race-timestamp, @timestamp (epoch ms per sample), relative-time (ms since the current task started), track, challenge, car, environment, sample-type (normal = measured samples, warmup = warmup-phase samples), name (metric name, e.g. service_time), value, unit, task, operation, operation-type, and meta.* (host/CPU/OS info, source_revision, distribution_version, and user tags stored as meta.tag_<key>).

Metric direction: for latency, service_time, processing_time, and GC time, lower is better; for throughput, higher is better.

Prefer the built-in commands

Two operations need no query — Rally reads the configured datastore directly:

# List past races (filter by track and/or user tags); note the race-ids.
esrally list races --track=pmc --user-tags="intention:baseline-8.x"

# Quantify the difference between two races.
esrally compare --baseline=<race-id> --contender=<race-id>

See docs/tournament.rst. Reach for direct queries below when you need trends, aggregations, or fields these commands don't expose.

Direct queries

Run these against the metrics store cluster with any Elasticsearch client, curl, or Kibana Dev Tools. Build complex request bodies programmatically (e.g. a Python dict + json.dumps) rather than hand-writing nested heredocs.

List recent races for a track

GET rally-races-*/_search
{ "size": 20, "sort": [{"race-timestamp": "desc"}],
  "query": {"bool": {"filter": [{"term": {"track": "pmc"}}]}} }

Get one race's overall results (per task)

Task and operation names are track-specific — discover them with esrally info --track=<track>. Omit the task filter to return every task.

GET rally-results-*/_search
{ "size": 200,
  "query": {"bool": {"filter": [
    {"term": {"race-id": "<uuid>"}},
    {"term": {"task": "<task>"}}
  ]}} }

Trend of a metric across runs

One row per race; expand size/range as needed.

GET rally-metrics-*/_search
{ "size": 0,
  "query": {"bool": {"filter": [
    {"term": {"track": "geonames"}},
    {"term": {"task": "<task>"}},
    {"term": {"name": "service_time"}},
    {"term": {"sample-type": "normal"}},
    {"range": {"@timestamp": {"gte": "now-30d"}}}
  ]}},
  "aggs": {"by_race": {
    "terms": {"field": "race-id", "size": 100, "order": {"ts": "asc"}},
    "aggs": {
      "ts": {"min": {"field": "@timestamp"}},
      "pcts": {"percentiles": {"field": "value", "percents": [50, 90, 99]}}
    }}} }

Compare two races by query

When you want more than esrally compare shows, pull each race's per-task stats and diff them client-side. For latency/service_time a positive delta is a regression; for throughput a negative delta is a regression.

GET rally-metrics-*/_search
{ "size": 0,
  "query": {"bool": {"filter": [
    {"terms": {"race-id": ["<baseline-uuid>", "<contender-uuid>"]}},
    {"term": {"name": "service_time"}},
    {"term": {"sample-type": "normal"}}
  ]}},
  "aggs": {"by_race": {"terms": {"field": "race-id", "size": 2},
    "aggs": {"by_task": {"terms": {"field": "task", "size": 100},
      "aggs": {"pcts": {"percentiles": {"field": "value", "percents": [50, 90, 99]}}}}}}} }

Convergence / stability check

Use this to check whether a race reached steady state before you trust its numbers. The query splits one task's service_time samples into up to ~60 time buckets and reports p50/p90/p99 for each. If those percentiles level off toward the end of the run, the workload converged and the results are stable; if they keep drifting, the numbers are unreliable — rerun with a longer warmup or more iterations.

GET rally-metrics-*/_search
{ "size": 0,
  "query": {"bool": {"filter": [
    {"term": {"race-id": "<uuid>"}},
    {"term": {"name": "service_time"}},
    {"term": {"task": "<task>"}}
  ]}},
  "aggs": {"over_time": {
    "auto_date_histogram": {"field": "@timestamp", "buckets": 60},
    "aggs": {"pcts": {"percentiles": {"field": "value", "percents": [50, 90, 99]}}}
  }} }

Filter by a user tag

Tags passed via --user-tags are stored under meta.tag_<key>. Add to any filter:

{"term": {"meta.tag_intention": "baseline-8.x"}}

Notes

  • Exclude warmup with {"term": {"sample-type": "normal"}} for reported metrics — unless you specifically want to study cold-start behaviour, in which case keep the warmup samples.
  • task is unique per invocation of an operation; operation may repeat. task/operation are only set on latency/throughput/service_time samples.
  • Node-level metrics (GC, segments, store size) are only present when Rally provisioned the cluster or the node-stats telemetry device was enabled (docs/telemetry.rst).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.