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

[#166495283] Calculate max (system) transaction age as a float #19

Merged
merged 1 commit into from
Jun 7, 2019

Conversation

AP-Hunt
Copy link
Member

@AP-Hunt AP-Hunt commented Jun 7, 2019

What

Previous calculations lost precision by converting the number to an integer.
This resulted in the metric almost always being reported as 0 seconds to
tenants.

The metric in Prometheus is a decimal, so the change to a decimal here should
be handled by Prometheus.

How to review

  1. Code review
  2. Run the relevant paas-cf branch down your pipeline
  3. Introduce an artificially long transaction in a database (e.g. accounts-db in the billing space of the admin org) by opening a transaction, waiting, and closing it.
  4. Validate that you can see decimal-precision timings like below

image

Who can review

Not I

Previous calcualtions lost precision by converting the number to an integer.
This resulted in the metric almost always being reported as 0 seconds to
tenants.

The metric in Prometheus is a decimal, so the change to a decimal here should
be handled by Prometheus.
@AP-Hunt AP-Hunt merged commit 9a9aeb3 into master Jun 7, 2019
@AP-Hunt AP-Hunt changed the title Calculate max (system) transaction age as a float [#166495283] Calculate max (system) transaction age as a float Jun 7, 2019
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

2 participants