[SPIKE]: Add metrics to mod-oai-pmh

Description

The performance of mod-oai-pmh depends on performance of other modules - to simplify the troubleshooting in the future we need to add metrics to measure the time it takes to call external APIs

Scope;
The metrics can be turned off/on
All modules that OAI-PMH interacts with are taken into account
Include vrtex context

Acceptance criteria:

  • Simple POC for collecting metrics

  • Suggested approach is documented and reviewed with the team

  • Required stories are created

  • Specify needed metrics

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Viachaslau KhandramaiNovember 26, 2021 at 8:56 AM
Edited

Mikhail FokanovOctober 6, 2021 at 1:27 PM
Edited

The metrics should be posted to logs. It should be done once per minute and only if there is a request during this minute. The needed metrics are:

  • The time, that is taken by the download instances call.

  • The average time of response from inventory-storage.

  • The average time of response from SRS.

  • The average time of marshaling of object to XML response.

  • The average time of the whole time of processing of one instance (from the instances table).

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Firebird

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created September 10, 2021 at 2:25 PM
Updated December 6, 2021 at 1:52 PM
Resolved December 6, 2021 at 1:52 PM
TestRail: Cases
TestRail: Runs