1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright 2021 TiKV Project Authors. Licensed under Apache-2.0.

use prometheus_static_metric::*;

make_auto_flush_static_metric! {
    pub label_enum GcKeysCF {
        default,
        lock,
        write,
    }

    pub label_enum GcKeysDetail {
        processed_keys,
        get,
        next,
        prev,
        seek,
        seek_for_prev,
        over_seek_bound,
        next_tombstone,
        prev_tombstone,
        seek_tombstone,
        seek_for_prev_tombstone,
        ttl_tombstone,
    }

    pub struct GcKeysCounterVec: LocalIntCounter {
        "cf" => GcKeysCF,
        "tag" => GcKeysDetail,
    }
}