[collector.sql] Sub-Sectiontype - driver type of the SQL-based database to connect to
"cockroachdb" (CockroachDB)"mssql" or "sqlserver" (Microsoft SQL Server)"mariadb" (MariaDB)"mysql" (MySQL)"odbc" (Open Database Connectivity - see additional setup instructions)"oracle" (Oracle Database - see additional setup instructions)"postgres" or "postgresql" (PostgreSQL)"sap_hana" (SAP HANA)"snowflake" (Snowflake)"sqlite" (SQLite)connection - database connection string for the SQL client
query or query_file - SQL query to execute
"SELECT * FROM table") - usually when the query is short and simple"config/query.sql" or "/path/query.sql") - when it’s long, complex, or sensitivetimeout - maximum amount of time for each SQL client query to complete
"1m" (1 minute)h (hours), m (minutes), and s (seconds)"0" and negative values (e.g., "-1s") = no client-side timeoutformat - preferred downstream format for the results
"ndjson""json" (an array if the result contains multiple rows, otherwise an object)"json_array" (always an array, even when there are fewer than 2 rows)"ndjson" (NDJSON, a.k.a. JSONL)[collector.sql.batch] Sub-Section