def METHOD_NAME(request):
    """Get graph url based on metric"""
    graph_args = {'title': 'Latest values for this metric', 'width': 600, 'height': 400}
    if 'metric' in request.GET:
        metric = request.GET['metric']
        if 'raw' in request.GET:
            graph = Graph(targets=[metric], **graph_args)
            return redirect(str(graph))
        else:
            return redirect(get_simple_graph_url([metric], **graph_args))
    return HttpResponse()