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

Refactor metric initialization to use structs #36

Merged
merged 2 commits into from
May 2, 2017
Merged

Conversation

roclark
Copy link
Contributor

@roclark roclark commented May 1, 2017

Now able to directly access metric elements and easily specify a unique Prometheus name at initialization.

Note that I have not yet updated the names to be Prometheus compliant.

@roclark roclark requested a review from joehandzik May 1, 2017 20:37
@joehandzik
Copy link
Contributor

Run 'gofmt -s -w sources/procfs.go' to clean up a bit and maintain our A+. ;P

Robert Clark added 2 commits May 1, 2017 15:46
Replace the nested maps with structs in the metric initializations in order to directly
manipulate elements such as the Prometheus name and the file location.

Signed-Off-By: Robert Clark <robert.d.clark@hpe.com>
Metric names can now be easily changed by updating the 'promName' value
in the lustreHelpStruct definition for every metric.

Signed-Off-By: Robert Clark <robert.d.clark@hpe.com>
@roclark roclark merged commit 03343b9 into master May 2, 2017
@roclark roclark deleted the struct-metric-list branch May 2, 2017 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants