Sometimes the graphite-api enters maintenance state because it is missing some packages. To fix this run the following:

# pkg install pkg:/library/python-2/setuptools-26
# svcadm clear svc:/system/graphite-api:default