Page MenuHomeSoftware Heritage

Add metrics to monitor activity
ClosedPublic

Authored by vsellier on Thu, Feb 18, 10:12 AM.

Details

Summary
  • Add timing/count of api calls
  • Add statistics on indexation

It uses statsd as it's not easy to use the
prometheus client library on gunicorn server
due to the multi-process management

https://github.com/prometheus/client_python#multiprocess-mode-gunicorn

Related to T3042

Diff Detail

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

Event Timeline

Build has FAILED

Patch application report for D5103 (id=18218)

Rebasing onto 12a9e9610b...

Current branch diff-target is up to date.
Changes applied before test
commit d6c76c4b064e89a37780a2d2927be54fbab26b71
Author: Vincent SELLIER <vincent.sellier@softwareheritage.org>
Date:   Thu Feb 18 10:05:30 2021 +0100

    Add monitoring metrics
    
    - Add timing/count of api calls
    - Add statistic on origin indexation
    
    Related to T3042

Link to build: https://jenkins.softwareheritage.org/job/DSEA/job/tests-on-diff/83/
See console output for more information: https://jenkins.softwareheritage.org/job/DSEA/job/tests-on-diff/83/console

Harbormaster returned this revision to the author for changes because remote builds failed.Thu, Feb 18, 10:12 AM
Harbormaster failed remote builds in B19316: Diff 18218!

Build is green

Patch application report for D5103 (id=18219)

Rebasing onto 12a9e9610b...

Current branch diff-target is up to date.
Changes applied before test
commit 0fa1f6deb5ab39ae33ad479dd06660d7a74ade77
Author: Vincent SELLIER <vincent.sellier@softwareheritage.org>
Date:   Thu Feb 18 10:05:30 2021 +0100

    Add monitoring metrics
    
    - Add timing/count of api calls
    - Add statistic on origin indexation
    
    Related to T3042

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

This revision is now accepted and ready to land.Thu, Feb 18, 11:18 AM
This revision was automatically updated to reflect the committed changes.