Page MenuHomeSoftware Heritage

status.io: push save code now statistics
ClosedPublic

Authored by vsellier on May 26 2021, 5:06 PM.

Details

Summary

Refresh every 5mn the save code now metric on the status.io status page

Related to T3129

Test Plan
  • pergamon
diff origin/production/pergamon.softwareheritage.org current/pergamon.softwareheritage.org
*******************************************
+ Concat_file[profile::cron::statusio_scn_metrics] =>
   parameters =>
     "group": "root",
     "mode": "0644",
     "owner": "root",
     "path": "/etc/puppet-cron.d/statusio_scn_metrics",
     "tag": "profile::cron::statusio_scn_metrics"
*******************************************
+ Concat_fragment[profile::cron::statusio_scn_metrics::_header] =>
   parameters =>
     "content": "# Managed by puppet (module profile::cron), manual changes will ...
     "order": "00",
     "tag": "profile::cron::statusio_scn_metrics",
     "target": "profile::cron::statusio_scn_metrics"
*******************************************
+ Concat_fragment[profile::cron::statusio_scn_metrics] =>
   parameters =>
     "content": "# Cron snippet statusio_scn_metrics\n*/5 * * * * root chronic sh...
     "order": "10",
     "tag": "profile::cron::statusio_scn_metrics",
     "target": "profile::cron::statusio_scn_metrics"
*******************************************
+ File[/etc/cron.d/puppet-statusio_scn_metrics] =>
   parameters =>
     "ensure": "link",
     "target": "/etc/puppet-cron.d/statusio_scn_metrics"
*******************************************
+ File[/usr/local/bin/statusio_export_archive_counters.py] =>
   parameters =>
     "content": "#!/usr/bin/python3\n# File managed by puppet (class ::profile::s...
     "ensure": "present",
     "group": "root",
     "mode": "0755",
     "owner": "root"
*******************************************
+ Package[python3-statusio] =>
   parameters =>
     "ensure": "present"
*******************************************
+ Profile::Cron::D[statusio_scn_metrics] =>
   parameters =>
     "command": "chronic sh -c '/usr/local/bin/statusio_export_archive_counters.p...
     "hour": "*",
     "minute": "*/5",
     "target": "statusio_scn_metrics",
     "unique_tag": "statusio_scn_metrics",
     "user": "root"
*******************************************
+ Profile::Cron::File[statusio_scn_metrics] =>
   parameters =>
     "target": "statusio_scn_metrics"
*******************************************
*** End octocatalog-diff on pergamon.softwareheritage.org

Diff Detail

Repository
rSPSITE puppet-swh-site
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

vsellier created this revision.

update python script:

  • remove some prints
  • add missing types
  • use dict access instead of get
This revision is now accepted and ready to land.May 26 2021, 5:35 PM