Skip to content

TSBS DevOps — Network Errors

TSBS DevOps benchmark · all TSBS DevOps queries

Hosts with network errors

Representative SQL

Rendered for DataFusion with default parameters.

SELECT
hostname,
interface,
SUM(err_in + err_out) AS total_errors,
SUM(drop_in + drop_out) AS total_drops
FROM net
WHERE
time >= '2024-01-01 17:00:00' AND time < '2024-01-01 18:00:00'
GROUP BY
hostname,
interface
HAVING
SUM(err_in + err_out + drop_in + drop_out) > 0
ORDER BY
total_errors DESC NULLS LAST

Representative 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 factor
queries = bench.get_queries(dialect="datafusion") # your platform's dialect; drop dialect= for native SQL
print(queries['net-errors'])

Source

Query text: benchbox/core/tsbs_devops/queries.py