pub struct MetricsState {Show 15 fields
pub registry: Arc<RwLock<Registry>>,
pub http_requests_total: Family<HttpLabels, Counter>,
pub http_request_duration_seconds: Family<HttpLabels, Histogram>,
pub http_active_connections: Gauge,
pub p2p_peers_connected: Gauge,
pub p2p_messages_total: Family<P2pLabels, Counter>,
pub p2p_message_latency_seconds: Family<P2pLabels, Histogram>,
pub storage_objects_total: Family<StorageLabels, Gauge>,
pub storage_operation_duration_seconds: Family<StorageLabels, Histogram>,
pub repositories_total: Gauge,
pub pull_requests_total: Gauge,
pub issues_total: Gauge,
pub users_total: Gauge,
pub organizations_total: Gauge,
pub websocket_connections: Gauge,
}Expand description
Metrics state container.
Fields§
§registry: Arc<RwLock<Registry>>Prometheus registry.
http_requests_total: Family<HttpLabels, Counter>HTTP request counter.
http_request_duration_seconds: Family<HttpLabels, Histogram>HTTP request duration histogram (seconds).
http_active_connections: GaugeHTTP active connections gauge.
p2p_peers_connected: GaugeP2P connected peers gauge.
p2p_messages_total: Family<P2pLabels, Counter>P2P messages counter.
p2p_message_latency_seconds: Family<P2pLabels, Histogram>P2P message latency histogram.
storage_objects_total: Family<StorageLabels, Gauge>Storage objects gauge by type.
storage_operation_duration_seconds: Family<StorageLabels, Histogram>Storage operation duration histogram.
repositories_total: GaugeTotal repositories gauge.
pull_requests_total: GaugePull requests by state.
issues_total: GaugeIssues by state.
users_total: GaugeTotal users.
organizations_total: GaugeTotal organizations.
websocket_connections: GaugeWebSocket active connections.
Implementations§
Source§impl MetricsState
impl MetricsState
Trait Implementations§
Source§impl Clone for MetricsState
impl Clone for MetricsState
Source§fn clone(&self) -> MetricsState
fn clone(&self) -> MetricsState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MetricsState
impl !RefUnwindSafe for MetricsState
impl Send for MetricsState
impl Sync for MetricsState
impl Unpin for MetricsState
impl !UnwindSafe for MetricsState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more