def METHOD_NAME(self, dd_run_check):
    check = get_legacy_check({'exclude_metrics': [9000]})
    with pytest.raises(Exception, match='^Entry #1 of setting `exclude_metrics` must be a string$'):
        dd_run_check(check, extract_message=True)