Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metrics gotemplate support, debug bundle features #9067

Merged
merged 14 commits into from
Oct 14, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
compact metrics check
Co-authored-by: Drew Bailey <2614075+drewbailey@users.noreply.github.com>
  • Loading branch information
davemay99 and drewbailey authored Oct 13, 2020
commit 5dc5be7209f999680424e3401725ef3fa035f0c5
5 changes: 2 additions & 3 deletions command/operator_debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -611,14 +611,13 @@ func (c *OperatorDebugCommand) collectNomad(dir string, client *api.Client) erro
vs, _, err := client.CSIVolumes().List(qo)
c.writeJSON(dir, "volumes.json", vs, err)

metricBytes, err := client.Operator().Metrics(qo)

if err != nil {
if metricBytes, err := client.Operator().Metrics(qo); err != nil {
c.writeError(dir, "metrics.json", err)
} else {
c.writeBytes(dir, "metrics.json", metricBytes)
}


return nil
}

Expand Down