def cleanup_monitoring(context): LocalMonitoring(context.medusa_config.monitoring).truncate_metric_file()
def _i_see_metrics_emitted(context, metrics_count): metrics = list(LocalMonitoring(context.medusa_config).load_metrics()) logging.info("There is {} metrics".format(len(metrics))) logging.info("The metrics are: {}".format(metrics)) assert int(len(metrics)) == int(metrics_count)