Register scheduled metric tasks
@@ -30,7 +30,13 @@ class Config(AppConfig):
log.info('AutoscaleBuildersTask task could not be imported.')
try:
- from readthedocsext.monitoring.metrics.tasks import MetricsTask
- app.tasks.register(MetricsTask)
+ from readthedocsext.monitoring.metrics.tasks import (
+ Metrics1mTask,
+ Metrics5mTask,
+ Metrics10mTask,
+ )
+ app.tasks.register(Metrics1mTask)
+ app.tasks.register(Metrics5mTask)
+ app.tasks.register(Metrics10mTask)
except (ModuleNotFoundError, ImportError):
- log.info('MetricsTask task could not be imported.')
+ log.info('Metrics tasks could not be imported.')
