-
Notifications
You must be signed in to change notification settings - Fork 249
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
feat(telemetry)_: replace telemetry with prometheus metrics #6256
base: develop
Are you sure you want to change the base?
Conversation
Jenkins BuildsClick to see older builds (80)
|
7c4ff40
to
3763072
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #6256 +/- ##
===========================================
- Coverage 61.92% 61.84% -0.09%
===========================================
Files 843 844 +1
Lines 111286 111103 -183
===========================================
- Hits 68918 68710 -208
- Misses 34388 34474 +86
+ Partials 7980 7919 -61
Flags with carried forward coverage won't be shown. Click here to find out more.
|
metrics/wakumetrics/metrics.go
Outdated
) | ||
|
||
var ( | ||
MessagesSentTotal = prometheus.NewHistogramVec( |
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.
Why is SomethingSomethingTotal a histogram? Shouldn't it be just a normal counter? How do you plan to use it as histogram?
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.
Updated all metrics to use gauge/counter as appropriate
}, | ||
) | ||
|
||
PeersByOrigin = prometheus.NewGaugeVec( |
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.
Are these currently connected peers or overall number? Cause I'd expect PeersByOrigin to be only increasing as new are discovered (i.e. 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.
This is based on currently connected peers obtained by periodically looking at Waku's peer store
bdf78e5
to
d31d899
Compare
Replace telemetry with local metrics using prometheus client. Add parameters to InitializeApplication for enabling waku metrics over prometheus and specifying which port to use.
d31d899
to
5340c57
Compare
Replace telemetry with local metrics using prometheus. Add parameters to InitializeApplication for enabling waku metrics over prometheus and specifying which port to use.
This commit removes the telemetry functionality with a Prometheus client. Most of the metrics that were collected by telemetry now have their corresponding Prometheus gauges, counters, and histograms.
They still require a telemetry url to be set in order to be enabled. Additionally, the parameter
WakuMetricsEnabled
needs to be set as true in the request forInitializeApplication
in order to start Prometheus at port 9305 (can be changed usingWakuMetricsPort
).status-desktop
Dogfooding PR: status-im/status-desktop#17020