Skip to content

Ad-hoc scripts

This section describes different ad-hoc scripts used by Waldur developers.

Restore CPU/GPU/RAM usages for a month

Sometimes, Waldur can have issues with data correctness. They can be caused by different circumstansies, e.g. problems with data syncronization between Waldur backend and service provider software. In order to resolve these issues, a user can restore usage data with restore_usages.py script.

Generate openmetrics file with usages for several months

If a user needs to create openmetrics file with usages, e.g. for historical data backfilling in Prometheus, the generate_openmetrics_usages.py can be used.


Last update: 2022-09-15