| Option | QuerySchedulerCostMetricsLoggingIntervalSeconds | |
| Description | Controls interval for measuring cost per millisecond that a query, user, or organization is accumulating. | |
| Introduced Version | 1.244.0 | |
| Default | 30 | |
The cost is shown in log fields in humio-metrics. The log fields enable you to easily tell how much cost per millisecond a query is accumulating, as well as how much cost per millisecond the user and organization for the query are accumulating across all their queries.
The log fields are queryCostPerMs, userCostPerMs, and orgCostPerMs. The fields are logged on query workers, measuring the cost per millisecond on that worker for that query/user/organization.
The time interval covered by the measurement is logged in queryCurrentTimespanMs, userCurrentTimespanMs, and orgCurrentTimespanMs. The fields are logged periodically when a measurement interval ends while a query is running, and are also included in the "query ended" logs produced by the worker.