blob: 6debf82ee10c4ffc3a6d429e987653518ed407bb [file] [log] [blame]
Scott Baker76a840e2015-02-11 21:38:09 -08001from xos.settings import STATISTICS_DRIVER
Sapan Bhatiab4f18122014-12-16 01:07:33 -05002
Scott Baker169c7232015-01-03 16:51:01 -08003if (STATISTICS_DRIVER=="ceilometer"):
4 from observer import ceilometer
5 driver = ceilometer.CeilometerDriver()
6elif (not STATISTICS_DRIVER) or (STATISTICS_DRIVER.lower() == "none"):
7 # disabled
8 driver = None
9else:
10 driver = None
11 print "WARNING: Unknown statistics driver %s" % STATISTICS_DRIVER