HomeSoftware Heritage

Allow prometheus to retrieve the counter values

Description

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

Details

Provenance
vsellierAuthored on Mar 24 2021, 5:13 PM
vsellierPushed on Mar 24 2021, 6:23 PM
Differential Revision
D5321: Allow prometheus to retrieve the counter values
Parents
rDCNTd88278619db7: Implement remote service
Branches
Unknown
Tags
Unknown
References
tag: v0.2.0
Tasks
T3164: Expose counters in prometheus format
Build Status
Buildable 20180
Build 31326: test-and-buildJenkins console · Jenkins