Skip to content

reduce metrics collection frequency

ryanlong requested to merge 95-metrics into main

Created by: deepakduggirala

Description

Reduce metrics collection frequency

Related Issue(s)

Closes #95 (closed)

Changes Made

List the main changes made in this PR. Be as specific as possible.

  • Feature added
  • Bug fixed
  • Code refactored
  • Documentation updated
  • Other changes: [describe]

cron config changed.

Deployment: pm2 restart

Checklist

Before submitting this PR, please make sure that:

  • Your code passes linting and coding style checks.
  • Documentation has been updated to reflect the changes.
  • You have reviewed your own code and resolved any merge conflicts.
  • You have requested a review from at least one team member.
  • Any relevant issue(s) have been linked to this PR.

Additional Information

Old metric data can be deleted with the following SQL

delete from metric where extract(hour from timestamp) != 21;

deletes all entries which are not made in 21st hour - only keeps one measurement per day taken during 21:00-21:59

Merge request reports

Loading