// Copyright 2026 TiKV Project Authors. Licensed under Apache-2.0.

use lazy_static::lazy_static;
use prometheus::{IntCounter, IntGauge, register_int_counter, register_int_gauge};

lazy_static! {
    pub static ref ENCRYPTION_CONF_CHANGE_RUNNING_JOBS_GAUGE: IntGauge = register_int_gauge!(
        "tikv_encryption_conf_change_running_jobs",
        "Number of running encryption conf-change rollout jobs"
    )
    .unwrap();
    pub static ref ENCRYPTION_CONF_CHANGE_FAILED_JOBS_COUNTER: IntCounter = register_int_counter!(
        "tikv_encryption_conf_change_failed_jobs_total",
        "Total number of failed encryption conf-change rollout jobs"
    )
    .unwrap();
    pub static ref ENCRYPTION_CONF_CHANGE_STUCK_JOBS_GAUGE: IntGauge = register_int_gauge!(
        "tikv_encryption_conf_change_stuck_jobs",
        "Number of encryption conf-change rollout jobs that have been running longer than the stuck threshold"
    )
    .unwrap();
}
