Request to ensure that Prometheus HTTP handler endpoints reliably log metrics for rows and bytes during inserts and selects to improve monitoring.
### Company or project name N/A ### Describe what's wrong Prometheus HTTP handler endpoints do not create (or do not reliably create) entries in `system.query_log` with the expected row/byte metrics: - **Remote write** (`/write`): Requests that insert time series data do not produce a `QueryFinish` row with `written_rows` or `written_bytes`. - **Remote read** (`/read`): Requests that read time series do not produce a `QueryFinish` row with `read_rows` or `read_bytes`. - **Query API** (`/api/v1/query`): Requests do not reliably appear in `system.query_log` with `read_rows > 0` and `read_bytes > 0` in a way that integration tests can assert (count-based). So either they are not logged, or the logged entries do not have read metrics set as expected. - **Query range API** (`/api/v1/query_range`): Same as Query API — integration tests that expect one additional `QueryFinish` row with `read_rows > 0` and `read_bytes > 0` after a request fail. Additionally, passing `query_id` as a URL para