pub struct PushMetricsConfig {
pub interval: u64,
pub endpoint: String,
pub service_name: String,
pub instance_name: String,
pub username: Option<String>,
pub password: String,
}
Expand description
Configuration for pushing metrics to a remote endpoint.
Fields§
§interval: u64
The push interval in seconds.
endpoint: String
The endpoint url for the push metrics collector.
service_name: String
The name of the service you’re exporting metrics for.
Generally, metrics_exporter
is good enough for use
outside of production deployments.
instance_name: String
The name of the instance you’re exporting metrics for.
This should be device-unique. If not, this will sum up metrics from different devices.
E.g. username-laptop
, username-phone
, etc.
Another potential scheme with good privacy would be a
keyed blake3 hash of the secret key. (This gives you
an identifier that is as unique as a NodeID
, but
can’t be correlated to NodeID
s.)
username: Option<String>
The username for basic auth for the push metrics collector.
password: String
The password for basic auth for the push metrics collector.
Trait Implementations§
Source§impl Clone for PushMetricsConfig
impl Clone for PushMetricsConfig
Source§fn clone(&self) -> PushMetricsConfig
fn clone(&self) -> PushMetricsConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more