-
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 (32)
|
7c4ff40
to
3763072
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #6256 +/- ##
===========================================
- Coverage 61.55% 61.41% -0.15%
===========================================
Files 842 843 +1
Lines 110604 110400 -204
===========================================
- Hits 68086 67799 -287
- Misses 34562 34640 +78
- Partials 7956 7961 +5
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?
}, | ||
) | ||
|
||
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
3763072
to
5f8d5f6
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.
5f8d5f6
to
07798db
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