Skip to content

lctl errors are not propagated #117

@spoutn1k

Description

@spoutn1k

lctl errors are silently discarded and the exporter returns empty output.

pub fn lustre_metrics_output() -> Command {
let mut cmd = Command::new("lctl");
cmd.arg("get_param")
.args(parser::params())
.kill_on_drop(true);
cmd
}

let lctl = lustre_metrics_output().output().await?;
let mut lctl_output = parse_lctl_output(&lctl.stdout)?;
output.append(&mut lctl_output);

We should log errors if nothing else.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions