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

report sys metrics #53

Merged
merged 2 commits into from Sep 6, 2018
Merged

report sys metrics #53

merged 2 commits into from Sep 6, 2018

Conversation

henrod
Copy link
Contributor

@henrod henrod commented Sep 5, 2018

No description provided.

@henrod henrod requested a review from andrehp September 5, 2018 23:01
m := &runtime.MemStats{}
runtime.ReadMemStats(m)

r.ReportGauge(Goroutines, map[string]string{}, float64(num))

Choose a reason for hiding this comment

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

Error return value of r.ReportGauge is not checked

runtime.ReadMemStats(m)

r.ReportGauge(Goroutines, map[string]string{}, float64(num))
r.ReportGauge(HeapSize, map[string]string{}, float64(m.Alloc))

Choose a reason for hiding this comment

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

Error return value of r.ReportGauge is not checked


r.ReportGauge(Goroutines, map[string]string{}, float64(num))
r.ReportGauge(HeapSize, map[string]string{}, float64(m.Alloc))
r.ReportGauge(HeapObjects, map[string]string{}, float64(m.HeapObjects))

Choose a reason for hiding this comment

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

Error return value of r.ReportGauge is not checked

@coveralls
Copy link

coveralls commented Sep 5, 2018

Pull Request Test Coverage Report for Build 493

  • 7 of 52 (13.46%) changed or added relevant lines in 4 files are covered.
  • 12 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.8%) to 74.226%

Changes Missing Coverage Covered Lines Changed/Added Lines %
metrics/report.go 0 12 0.0%
metrics/prometheus_reporter.go 0 33 0.0%
Files with Coverage Reduction New Missed Lines %
agent/agent.go 12 77.57%
Totals Coverage Status
Change from base Build 488: -0.8%
Covered Lines: 3810
Relevant Lines: 5133

💛 - Coveralls

Copy link
Contributor

@andrehp andrehp left a comment

Choose a reason for hiding this comment

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

Please update the docs

@henrod
Copy link
Contributor Author

henrod commented Sep 6, 2018

I updated on last commit @andrehp

@andrehp
Copy link
Contributor

andrehp commented Sep 6, 2018

LGTM, let's just wait and see if @cscatolini has anything to say about this PR

@cscatolini
Copy link
Contributor

LGTM
I think these metrics will be very useful, thanks @henrod !

@cscatolini cscatolini merged commit af50924 into master Sep 6, 2018
@henrod henrod deleted the feature/sys-metrics branch September 11, 2018 13:43
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.

None yet

5 participants