diff --git a/examples/monitoring/src/main.rs b/examples/monitoring/src/main.rs index 195a31c..a39e8e2 100644 --- a/examples/monitoring/src/main.rs +++ b/examples/monitoring/src/main.rs @@ -46,7 +46,7 @@ async fn main() { ); let service_monitor_endpoint = ServiceMonitorEndpoint { - port: Some(80), + port: Some("80".to_string()), target_port: None, bearer_token_file: None, interval: None, diff --git a/harmony/src/modules/monitoring/kube_prometheus/types.rs b/harmony/src/modules/monitoring/kube_prometheus/types.rs index 4d2a496..b74f79b 100644 --- a/harmony/src/modules/monitoring/kube_prometheus/types.rs +++ b/harmony/src/modules/monitoring/kube_prometheus/types.rs @@ -96,11 +96,11 @@ pub struct ServiceMonitorTLSConfig { pub struct ServiceMonitorEndpoint { // ## Name of the endpoint's service port // ## Mutually exclusive with targetPort - pub port: Option, + pub port: Option, // ## Name or number of the endpoint's target port // ## Mutually exclusive with port - pub target_port: Option, + pub target_port: Option, // ## File containing bearer token to be used when scraping targets // ##