TSBS DevOps — Metrics by Region
TSBS DevOps benchmark · all TSBS DevOps queries
CPU metrics filtered by region
Representative SQL
Rendered in the benchmark’s native SQL with default parameters (no dialect translation available).
SELECT t.region, AVG(c.usage_user) AS avg_cpu_user, AVG(c.usage_system) AS avg_cpu_systemFROM cpu AS cJOIN tags AS t ON c.hostname = t.hostnameWHERE c.time >= '2024-01-01 12:00:00' AND c.time < '2024-01-01 13:00:00' AND t.region = 'ap-southeast-1'GROUP BY t.regionRepresentative DataFrame
No DataFrame implementation is registered for this query.
Get the exact query for your run
The blocks above are representative. To get the precise statement a specific platform runs at a specific scale, substitute your own values:
from benchbox import TSBSDevOps
bench = TSBSDevOps(scale_factor=1.0) # your scale factorqueries = bench.get_queries(dialect="datafusion") # your platform's dialect; drop dialect= for native SQLprint(queries['by-region'])Source
Query text: benchbox/core/tsbs_devops/queries.py