**Describe what's wrong**
Query metric doesn't calculate anymore
```sql
SELECT * FROM system.metrics WHERE metric='Query'
```
always return value=0 

```sql
SELECT event_time, CurrentMetrics_Query FROM system.metric_log WHERE CurrentMetrics_Query>0
```
always return 0 rows

I check these queries during run following script in separate terminal
```bash
clickhouse-client -q "SELECT sleepEachRow(1),now() FROM numbers(60)"
```

**Does it reproduce on recent release?**
Yes it reproduce on 22.1 and 21.12
And doesn't reproduce on 21.11

Container processes;
    size_t max_size = 0;        
    
    UserToQueries user_to_queries;
    
    QueryPriorities priorities;
    
    ThrottlerPtr total_network_throttler;
    
    QueryStatus * tryGetProcessListElement(const String & current_query_id, const String & current_user);
    
    size_t max_insert_queries_amount = 0;
    
    size_t max_select_queries_amount = 0;
    
    QueryKindAmounts query_kind_amounts;
    void increaseQueryKindAmount(const IAST::QueryKind & query_kind);
    void decreaseQueryKindAmount(const IAST::QueryKind & query_kind);
    QueryAmount getQueryKindAmount(const IAST::QueryKind & query_kind) const;
public:
    using EntryPtr = std::shared_ptr<ProcessListEntry>;
    /** Register running query. Returns refcounted object, that will remove element from list in destructor.
      * If too many running queries - wait for not more than specified (see settings) amount of time.
      * If timeout is passed - throw an exception.
      * Don't count KILL QUERY queries.
      */
    EntryPtr insert(const String & query_, const IAST * ast, ContextPtr query_context);
    
    size_t size() const { return processes.size(); }