-
Notifications
You must be signed in to change notification settings - Fork 438
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
Support prometheus metrics #382
Conversation
Codecov Report
@@ Coverage Diff @@
## master #382 +/- ##
==========================================
- Coverage 51.42% 51.32% -0.10%
==========================================
Files 70 70
Lines 4331 4353 +22
==========================================
+ Hits 2227 2234 +7
- Misses 1806 1821 +15
Partials 298 298
Continue to review full report at Codecov.
|
any progress on this feature? |
Codecov Report
@@ Coverage Diff @@
## master #382 +/- ##
==========================================
+ Coverage 51.33% 53.43% +2.10%
==========================================
Files 70 89 +19
Lines 4356 5820 +1464
==========================================
+ Hits 2236 3110 +874
- Misses 1818 2361 +543
- Partials 302 349 +47
Continue to review full report at Codecov.
|
return &prometheusExporter{} | ||
} | ||
|
||
func (e *prometheusExporter) NewCounter(name, desc string, labelNames []string) Counter { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In Prometheus/maine. go, directly implement NewCounter, NewGauge is that ok?
Ping @louyuting @sczyh30 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Nice work. Thanks for contributing! |
Describe what this PR does / why we need it
Support prometheus metrics.
Does this pull request fix one issue?
Describe how you did it
Describe how to verify it
Special notes for reviews