Page MenuHomeSoftware Heritage

Allow prometheus to retrieve the counter values
ClosedPublic

Authored by vsellier on Mar 24 2021, 5:32 PM.

Details

Summary
  • Add a method to get the list of counters on the backend
  • Add an endpoint on the rpc to expose the counters values in the prometheus format
  • The way redis was instantiated by the fixture needed to be changed to always start a new test with an empty redis

Related to T3164

Diff Detail

Repository
rDCNT Archive counters
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D5321 (id=19085)

Rebasing onto d88278619d...

Current branch diff-target is up to date.
Changes applied before test
commit 7dbe186b010ac07473b57c975e16f0d4c50bf4b2
Author: Vincent SELLIER <vincent.sellier@softwareheritage.org>
Date:   Wed Mar 24 17:13:13 2021 +0100

    Allow prometheus to retrieve the counter values
    
    - Add a method to get the list of counters on the backend
    - Add an endpoint on the rpc to expose the counters values in the
      prometheus format
    - The way redis was instantiated by the fixture needed to be
      changed to always start a new test with an empty redis
    
    Related to T3164

See https://jenkins.softwareheritage.org/job/DCNT/job/tests-on-diff/14/ for more details.

This revision is now accepted and ready to land.Mar 24 2021, 6:18 PM