blob: 6debf82ee10c4ffc3a6d429e987653518ed407bb [file] [log] [blame]
Scott Baker86e132c2015-02-11 21:38:09 -08001from xos.settings import STATISTICS_DRIVER
Sapan Bhatiadf3130c2014-12-16 01:07:33 -05002
Scott Bakera9b0d5e2015-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