Page MenuHomeSoftware Heritage

Save Code Now: monitoring of admin infra
Closed, ResolvedPublic

Description

Add an exporter with the:

  • number of pending save code now validations
  • date of latest save code now validation

Event Timeline

olasd created this task.Dec 2 2019, 2:17 PM
vlorentz triaged this task as High priority.Dec 3 2019, 3:17 PM
vlorentz lowered the priority of this task from High to Normal.Dec 3 2019, 5:50 PM

We could use [[ https://github.com/prometheus/client_python | prometheus_client ]] (packaged in debian) to generate and export Prometheus metrics for swh-web.

[[ https://github.com/korfuri/django-prometheus | django-prometheus ]] seems also quite interesting to monitor the web application internals (but it is not packaged in debian).

prometheus_client looks quite low-level to me. We already have statsd for this kind of purpose, which does not imply having to deal with one more dedicated http server or so...

Yes I agree, I ended up using statsd in D2419 after all. django-prometheus could be interesting to use but it maybe redundant with the upcoming sentry integration in swh-web.

anlambert added a comment.EditedDec 11 2019, 6:09 PM

After second thoughts, relying on the use of prometheus_client seems a better approach for the swh-web case so D2419 is abandoned in favor of D2432.