pub struct PrometheusMetricsRecorder;Expand description
Prometheus recorder for shared infrastructure metrics.
Trait Implementations§
Source§impl Clone for PrometheusMetricsRecorder
impl Clone for PrometheusMetricsRecorder
Source§fn clone(&self) -> PrometheusMetricsRecorder
fn clone(&self) -> PrometheusMetricsRecorder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl DbMetricsRecorder for PrometheusMetricsRecorder
impl DbMetricsRecorder for PrometheusMetricsRecorder
Source§fn record_db_query(&self, metric: &DbQueryMetric)
fn record_db_query(&self, metric: &DbQueryMetric)
Records one database query metric.
Source§impl Debug for PrometheusMetricsRecorder
impl Debug for PrometheusMetricsRecorder
Source§impl Default for PrometheusMetricsRecorder
impl Default for PrometheusMetricsRecorder
Source§fn default() -> PrometheusMetricsRecorder
fn default() -> PrometheusMetricsRecorder
Returns the “default value” for a type. Read more
Source§impl HealthMetricsRecorder for PrometheusMetricsRecorder
Available on crate feature runtime-health only.
impl HealthMetricsRecorder for PrometheusMetricsRecorder
Available on crate feature
runtime-health only.Source§fn record_health_report(
&self,
scope: &'static str,
status: HealthStatus,
duration_seconds: f64,
)
fn record_health_report( &self, scope: &'static str, status: HealthStatus, duration_seconds: f64, )
Records the aggregate health result for
scope.Source§fn record_health_component(
&self,
scope: &'static str,
component: &HealthComponentReport,
duration_seconds: f64,
)
fn record_health_component( &self, scope: &'static str, component: &HealthComponentReport, duration_seconds: f64, )
Records one component result for
scope.Source§impl MetricsRecorder for PrometheusMetricsRecorder
impl MetricsRecorder for PrometheusMetricsRecorder
Source§fn record_http_request(
&self,
method: &str,
route: &str,
status: u16,
duration_seconds: f64,
)
fn record_http_request( &self, method: &str, route: &str, status: u16, duration_seconds: f64, )
Records an HTTP request. Read more
Source§fn record_auth_event(
&self,
action: &'static str,
status: &'static str,
reason: &'static str,
)
fn record_auth_event( &self, action: &'static str, status: &'static str, reason: &'static str, )
Records an authentication event.
Source§fn record_application_event(
&self,
category: &'static str,
event: &'static str,
status: &'static str,
)
fn record_application_event( &self, category: &'static str, event: &'static str, status: &'static str, )
Records a generic application event.
Source§fn record_config_reload(
&self,
source: &'static str,
decision: &'static str,
status: &'static str,
changed_keys: u64,
duration_seconds: f64,
)
fn record_config_reload( &self, source: &'static str, decision: &'static str, status: &'static str, changed_keys: u64, duration_seconds: f64, )
Records a runtime configuration reload attempt.
Source§fn record_config_mutation(
&self,
source: &'static str,
operation: &'static str,
status: &'static str,
changed_keys: u64,
)
fn record_config_mutation( &self, source: &'static str, operation: &'static str, status: &'static str, changed_keys: u64, )
Records a runtime configuration mutation.
Source§fn record_background_task_transition(
&self,
kind: &'static str,
status: &'static str,
)
fn record_background_task_transition( &self, kind: &'static str, status: &'static str, )
Records a background task state transition.
Source§fn set_background_tasks_pending(&self, pending: u64)
fn set_background_tasks_pending(&self, pending: u64)
Sets the number of pending background tasks.
impl Copy for PrometheusMetricsRecorder
Auto Trait Implementations§
impl Freeze for PrometheusMetricsRecorder
impl RefUnwindSafe for PrometheusMetricsRecorder
impl Send for PrometheusMetricsRecorder
impl Sync for PrometheusMetricsRecorder
impl Unpin for PrometheusMetricsRecorder
impl UnsafeUnpin for PrometheusMetricsRecorder
impl UnwindSafe for PrometheusMetricsRecorder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more