HomeSoftware Heritage

stats_exporter: Refactor and add docstrings to export script

Description

stats_exporter: Refactor and add docstrings to export script

This:

  • refactor a bit into multiple functions with docstrings.
  • simplify the data computation
  • prepare the code to make it parametric

In another step, we could thus improve to make the script parametric. Have it
use server, port, object type data to graph etc... as input so that the cron
explicit those (from puppet manifest's).

Details

Provenance
ardumontAuthored on Aug 10 2019, 1:25 PM
ardumontPushed on Aug 26 2019, 3:57 PM
Differential Revision
D1841: stats_exporter: Refactor and add docstrings to graph data export script
Parents
rSPSITEe43c6cce75b9: Install apt-transport-https before touching the apt class
Branches
Unknown
Tags
Unknown