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

New metrics: XOnBattery, XOffBattery, LastSelfTest, NominalPower #2

Merged
merged 3 commits into from
Apr 14, 2017
Merged

New metrics: XOnBattery, XOffBattery, LastSelfTest, NominalPower #2

merged 3 commits into from
Apr 14, 2017

Conversation

rschaeuble
Copy link
Contributor

No description provided.

Copy link
Owner

@mdlayher mdlayher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with two nitpicks.

upscollector.go Outdated
@@ -5,6 +5,7 @@ import (

"github.com/mdlayher/apcupsd"
"github.com/prometheus/client_golang/prometheus"
"time"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put this import up with "log" in the first block.

upscollector.go Outdated
@@ -110,6 +115,34 @@ func NewUPSCollector(ss StatusSource) *UPSCollector {
nil,
),

LastTransferOnBattery: prometheus.NewDesc(
prometheus.BuildFQName(namespace, "", "apcupsd_last_transfer_on_battery"),
"Time of last transfer to battery since apcupsd startup",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a period to all of these help text strings.

@rschaeuble
Copy link
Contributor Author

Fixed both issues.

@mdlayher
Copy link
Owner

LGTM.

@mdlayher mdlayher merged commit 290f3ea into mdlayher:master Apr 14, 2017
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