Skip to content

Conversation

@ali-behjati
Copy link
Collaborator

@ali-behjati ali-behjati commented Nov 28, 2022

  • Remove nodejs default metrics. We don't use them.
  • Remove response time metric.
  • Remove freshness metric and add gap metric for attestationTime and publishTime.
    They are similar; however, freshness was measured upon user request but gap is
    measured upon receiving the next update.
  • Change receivedVaa to actually represent distinct vaa received. Prior
    to this, the older vaas, or vaas with same attestation time were
    not counted in this metric. This will also improve the performance.
  • Refactors the code a little. vaaBytes type was not string and was
    Buffer. It is fixed now.

- Remove nodejs default metrics. We don't use them.
- Remove `path` from response time metric.
- Remove freshness metric and add gap metric. They are similar; however,
  freshness was measured upon user request but gap is measured upon
  receiving the next update.
- Change receivedVaa to actually represent distinct vaa received. Prior
  to this, the older vaas, or vaas with same attestation time were
  not counted in this metric. This will also improve the performance.
- Refactors the code a little. `vaaBytes` type was not string and was
  Buffer. It is fixed now.
@ali-behjati ali-behjati requested a review from jayantk November 28, 2022 14:35
Copy link
Contributor

@jayantk jayantk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about the response time thing -- maybe @thmzlt has some thoughts on how to do this? aside from that, generally fine.

@ali-behjati ali-behjati changed the title Fine-tune price service metrics [price-service] Fine-tune metrics Nov 29, 2022
@ali-behjati ali-behjati requested a review from jayantk November 29, 2022 17:58
@thmzlt
Copy link
Contributor

thmzlt commented Nov 30, 2022

@ali-bahjati there are better ways to set up response time tracking. You can leave that part out and I'll take care of it.

It can be measured on ingress/service level.
@ali-behjati ali-behjati merged commit 27f9f75 into main Dec 1, 2022
@ali-behjati ali-behjati deleted the abehjati/tune-price-service-prom-metrics branch December 1, 2022 17:37
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.

4 participants