function::qsq_service_time - Linux
Overview
The qsq_service_time
command calculates the service time of requests in milliseconds for a given time range in a Bigtable instance.
Syntax
qsq_service_time <project-id> <instance-id> <table-id> <start-time> <end-time> [<output-file>]
Options/Flags
None.
Examples
Calculate the service time for the last 10 minutes:
qsq_service_time my-project-id my-instance my-table "`date -d "10 minutes ago" +%Y-%m-%dT%H:%M:%SZ"`" "`date +%Y-%m-%dT%H:%M:%SZ"`"
Output the results to a file:
qsq_service_time my-project-id my-instance my-table "`date -d "10 minutes ago" +%Y-%m-%dT%H:%M:%SZ"`" "`date +%Y-%m-%dT%H:%M:%SZ"`" output.csv
Common Issues
- Bigtable permissions: Ensure you have the
bigtable.tables.get
permission to access the table.
Integration
qsq_service_time
can be integrated with other Linux commands for automating tasks, such as monitoring and alerting. It can also be integrated with scripting languages like Python or Bash to build complex workflows.