-
Notifications
You must be signed in to change notification settings - Fork 131
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 mempool fetched and missing counts to prometheus #134
report mempool fetched and missing counts to prometheus #134
Conversation
a5e41db
to
355d262
Compare
There's an
However, this will likely make it impossible to compare historical values recorded as floats with new integer values, so I'm not sure if its worth it. What do you think? |
Prometheus stores all metrics as float64. https://prometheus.io/docs/concepts/data_model/ |
355d262
to
3fabe0f
Compare
It appears so, it uses integer date types on the rust side which is more performant. The PR that introduced this to
I don't feel strongly about this, and it can be done in a future PR if we do decide to do it. But keeping the codebase similar to upstream is long a lost cause, it was changed significantly in our fork and basically rewritten in |
Also if that's the case (I was not aware of it), my earlier "impossible to compare historical values recorded as floats with new integer values" comment is probably incorrect |
The electrs prometheus exporter (gauges) are snapshots. The prometheus server will scrape and record values, and we can run queries on the data in prometheus, and compare historical values. The histograms generated by electrs are less useful, because they are an aggregation since the last electrs restart. |
where is that time being spent? How often are we manipulating the gauges and counters?
From what?
|
3fabe0f
to
f6bbac6
Compare
amended |
|
f6bbac6
to
bb78705
Compare
bb78705
to
5e02898
Compare
|
We are currently reporting the mempool tx count to prometheus.
This MR adds the missing and fetched counts to the same prometheus gauge, using different labels.