pub struct PrometheusMetrics {Show 17 fields
pub registry: Registry,
pub sv2_uptime_seconds: Gauge,
pub sv2_server_channels: Option<GaugeVec>,
pub sv2_server_hashrate_total: Option<Gauge>,
pub sv2_server_channel_hashrate: Option<GaugeVec>,
pub sv2_server_shares_accepted_total: Option<GaugeVec>,
pub sv2_server_shares_rejected_total: Option<GaugeVec>,
pub sv2_server_blocks_found_total: Option<Gauge>,
pub sv2_clients_total: Option<Gauge>,
pub sv2_client_channels: Option<GaugeVec>,
pub sv2_client_hashrate_total: Option<Gauge>,
pub sv2_client_channel_hashrate: Option<GaugeVec>,
pub sv2_client_shares_accepted_total: Option<GaugeVec>,
pub sv2_client_shares_rejected_total: Option<GaugeVec>,
pub sv2_client_blocks_found_total: Option<Gauge>,
pub sv1_clients_total: Option<Gauge>,
pub sv1_hashrate_total: Option<Gauge>,
}Expand description
Prometheus metrics for the monitoring server. Metrics are optional - only registered when the corresponding monitoring type is enabled.
Fields§
§registry: Registry§sv2_uptime_seconds: Gauge§sv2_server_channels: Option<GaugeVec>§sv2_server_hashrate_total: Option<Gauge>§sv2_server_channel_hashrate: Option<GaugeVec>§sv2_server_blocks_found_total: Option<Gauge>§sv2_clients_total: Option<Gauge>§sv2_client_channels: Option<GaugeVec>§sv2_client_hashrate_total: Option<Gauge>§sv2_client_channel_hashrate: Option<GaugeVec>§sv2_client_blocks_found_total: Option<Gauge>§sv1_clients_total: Option<Gauge>§sv1_hashrate_total: Option<Gauge>Implementations§
Trait Implementations§
Source§impl Clone for PrometheusMetrics
impl Clone for PrometheusMetrics
Source§fn clone(&self) -> PrometheusMetrics
fn clone(&self) -> PrometheusMetrics
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for PrometheusMetrics
impl !UnwindSafe for PrometheusMetrics
impl Freeze for PrometheusMetrics
impl Send for PrometheusMetrics
impl Sync for PrometheusMetrics
impl Unpin for PrometheusMetrics
impl UnsafeUnpin for PrometheusMetrics
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