change create_graph method in monitoring controller