pub async fn cmd_metrics( url: &str, kind: &str, hours: Option<i64>, json: bool, ) -> Result<(), Box<dyn Error>>