blob: d29d017970dbd5d0bc442f25cbd52934fec85b14 [file] [log] [blame]
Scott Baker169c7232015-01-03 16:51:01 -08001from planetstack.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