You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let map = Option::<HashMap<String,String>>::deserialize(deserializer)?;
9
+
Ok(map.map(|m| m.into_iter().collect()))
10
+
}
2
11
3
12
/// An organisation configuration for the OxyBox service.
4
13
/// Contains the organisation ID, the polling interval in seconds, and a list of target configurations.
@@ -26,6 +35,12 @@ pub struct TargetConfig {
26
35
/// Defaults to 200 if not specified.
27
36
#[serde(default = "default_status_codes")]
28
37
pubaccepted_status_codes:Vec<u16>,
38
+
39
+
/// Additional labels to be included in the Mimir metrics for this target.
40
+
/// This is an optional field that can contain a list of key-value pairs representing the labels.
41
+
/// For example, you could include labels like `env: production` or `region: us-east-1` to provide more context about the target service in the metrics.
0 commit comments