pub enum HolochainMetricsConfig {
Disabled,
InfluxiveExternal {
writer_config: InfluxiveWriterConfig,
otel_config: InfluxiveMeterProviderConfig,
host: String,
bucket: String,
token: String,
},
InfluxiveChildSvc {
child_svc_config: Box<InfluxiveChildSvcConfig>,
otel_config: InfluxiveMeterProviderConfig,
},
}
Expand description
Configuration for holochain metrics.
Variants§
Disabled
Metrics are disabled.
InfluxiveExternal
Use influxive to connect to an already running InfluxDB instance. NOTE: this means we cannot initialize any dashboards.
Fields
§
writer_config: InfluxiveWriterConfig
The writer config for connecting to the external influxdb instance.
§
otel_config: InfluxiveMeterProviderConfig
The meter provider config for setting up opentelemetry.
InfluxiveChildSvc
Use influxive as a child service to write metrics.
Fields
§
child_svc_config: Box<InfluxiveChildSvcConfig>
The child service config for running the influxd server.
§
otel_config: InfluxiveMeterProviderConfig
The meter provider config for setting up opentelemetry.
Implementations§
Auto Trait Implementations§
impl Freeze for HolochainMetricsConfig
impl !RefUnwindSafe for HolochainMetricsConfig
impl Send for HolochainMetricsConfig
impl Sync for HolochainMetricsConfig
impl Unpin for HolochainMetricsConfig
impl !UnwindSafe for HolochainMetricsConfig
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