Struct ckb_metrics_config::Config [−][src]
Expand description
The whole CKB metrics configuration.
This struct is used to configure CKB metrics service.
An example which is used in ckb.toml
:
[metrics.exporter.prometheus]
target = { type = "prometheus", listen_address = "127.0.0.1:8100" }
Fields
exporter: HashMap<String, Exporter>
Stores all exporters configurations.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Config
impl UnwindSafe for Config
Blanket Implementations
Mutably borrows from an owned value. Read more