Separate out the persister classes into their own python files
and clean up some unused code for start up.
Change-Id: Id1460baef9e06025ed57030438a0021c253cc99a
Allow Cassandra Database to be used as backend database.
100% backward compatible with Influxdb.
Should not require any install or config changes to
use the default Influxdb.
Change-Id: I4cfe50a99eea0f8ae7421dcefbdd2cb2cc008b3b
Removed the old openstack directory and replaced it with oslo libraries.
Updated requirements for liberty versions of oslo libraries.
Change-Id: I4d6bfb4251eb23cf86b3173ac9cb0b889ebbf674
The time field was name timestamp which caused influxdb to use the
write time for the time field. If multiple Alarm History messages
were written, Influxdb only kept the last because the times were
not unique.
Change-Id: I3808838bb8a26d7a6272ab41c3e586659a037f02
whole number values (such as 0) are json decoded as type int
If the value field is first written to InfluxDB as type int (example: 0)
and later as type float (example 0.123), InfluxDB throws a
"field type conflict" exception. Forcing all data to type float fixes.
Change-Id: Ifc139bbc67077137501ffe9045a988b8afc393e4
Adding six to the requirements file to handle version conflict between the
influxdb and Kazoo libraries.
Added monasca-common to requirements and removed kafka and kazoo libraries
Change-Id: I1b390b52db6bc58f6eb9850ad799970c50e23695
Always store {} when value_meta is empty for Influxdb.
Needed because the Java Influxdb driver is
capable of storing an empty string, but the
Python Influxdb driver is not.
Change-Id: Id6b7b795454afc1a4ab2e6230c6a9d3bd94790f7
The Java Persister converts camelCase to snake_case for
the alarm state transition sub_alarms JSON element.
The python persister needs to do the same.
The following element names in the alarm state transition
sub_alarm element need to be converted to snake_case:
subAlarmExpression -> sub_alarm_expression
metricDefinition -> metric_definition
alarmState -> alarm_state
These elements originate from the Monasca Threshold Engine.
Ideally, the Threshold Engine should be modified to send
the JSON in snake_case.
Change-Id: I33c779e4741c797fbeeaf179441a65504444b0bd
change 'name' to 'measurement'.
change 'timestamp' to 'time'.
store value_meta as "" instead of "\"\"" when empty.
Change-Id: I391ab269897e6575abd9027b6b4252083a015536
Bring monasca-persister daemon startup into sync with
other Openstack daemons with respect to config
management
Change-Id: I7a6b4367783a36fd2cefd0cb86a0abff15927811
Closes-Bug: 1414806
Allow persister instances to come and go. Automatically rebalance
reading the partitions amongst the existing persisters.
Change-Id: Ifd47459b0a29e91680e155d22b82086e04426215