Skip to content

Commit

Permalink
tweak new metrics names (_seconds instead of _secs)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcsp committed Aug 4, 2023
1 parent 19949a4 commit f83db0a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pageserver/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -398,29 +398,29 @@ pub(crate) static UNEXPECTED_ONDEMAND_DOWNLOADS: Lazy<IntCounter> = Lazy::new(||
/// different phases of startup.
pub static STARTUP_DURATION: Lazy<F64GaugeVec> = Lazy::new(|| {
register_f64_gauge_vec!(
"pageserver_startup_duration_secs",
"pageserver_startup_duration_seconds",
"Time taken by phases of pageserver startup, in seconds",
&["phase"]
)
.expect("Failed to register pageserver_startup_duration_secs metric")
.expect("Failed to register pageserver_startup_duration_seconds metric")
});

pub static STARTUP_LOADING: Lazy<UIntGauge> = Lazy::new(|| {
pub static STARTUP_IS_LOADING: Lazy<UIntGauge> = Lazy::new(|| {
register_uint_gauge!(
"pageserver_startup_loading",
"pageserver_startup_is_loading",
"1 while in initial startup load of tenants, 0 at other times"
)
.expect("Failed to register pageserver_startup_loading")
.expect("Failed to register pageserver_startup_is_loading")
});

/// How long did tenants take to go from construction to active state?
pub(crate) static TENANT_ACTIVATION: Lazy<Histogram> = Lazy::new(|| {
register_histogram!(
"pageserver_tenant_activation_secs",
"pageserver_tenant_activation_seconds",
"Time taken by phases of pageserver startup, in seconds",
CRITICAL_OP_BUCKETS.into()
)
.expect("Failed to register pageserver_tenant_activation_secs metric")
.expect("Failed to register pageserver_tenant_activation_seconds metric")
});

/// Each `Timeline`'s [`EVICTIONS_WITH_LOW_RESIDENCE_DURATION`] metric.
Expand Down

0 comments on commit f83db0a

Please sign in to comment.