With changeset [1], releasenotes are added to monasca-persister. To
make the release notes available, the notes can be build now with
tox ("tox -e releasenotes") and the standard zuul
job (release-notes-jobs-python3) was added to build and publish the
notes.
Also adjust elasticsearch requirement to "<3.0.0" to be inline with
the global-requirements list. This fixes:
Requirement for package elasticsearch excludes a version not excluded
in the global list.
[1] Ida11c326b3e6771b5ccf994205c55874db05bc5c
Change-Id: I16268797151a6b997610c8fbded4c9eeb9265597
Ignore AUTHORS, ChangeLog and dist/* .
These files are autogenerated when creating a sdist tarbar (via eg.
"python setup.py sdist")
Change-Id: I90cf0d2067ac019e624b2daed78ce02673e5e4bd
Leverages the JMeter and KafkaMeter to inject into persister metric
messages with permutation of random metric names and dimensions.
Monitors the metrics flushed to the database in all persister
instances and calculates the throughput. The number of metrics and
the number of unique metic definitions are configurable in the test
plan. The script currently supports only the Java implementation of
the Monasca persister. Monasca python does not provide the same
internal metric api as the Dropwizard in the Java implemation.
Future work is required for the Python implemation.
Change-Id: Id8e6a5b62aa434d9943c7eee4be8991536b1c45f
Depends-On: https://review.openstack.org/543399
story: 2001292
task: 5841
Stestr after update changed configuration file format
This fix test warring : UserWarning: No .stestr.conf file found in the CWD. Please create one to to replace the .testr.conf. You can find a script to do this in the stestr.
Change-Id: I24291d10ffd046570f01c06185ebe14b6531f0ed
To generate the sample config file, do what other OpenStack projects do
and use the oslo.config provided mechanism.
Story: 2001009
Task: 4201
Change-Id: I490de4110843f7dfd618a6a8cc8d6a4e35db65ce
Add unit tests for persister.py in root directory.
Additionally:
* switched to testr as it seems to be used in many
openstack projects
* enabled coverage
Change-Id: I429ef6a900808c192ad5613c13808583d33fde24
In order to continue using the Kafka High Consumer API, the disruptor
was removed. This allows a direct call to to kafka to commit the offsets
when items are flushed.
Different ConsumerConnectors had to be created for Metrics and Alarms
so the offsets could be committed separately
Changed configuration to match the new model. Remove configuration
parameters that were no longer needed
Changed the name Disruptor to Pipeline
Allow only one EventHandler per pipeline
Added code to flush the Metrics and Alarms, and shutdown the Kafka ConsumerConnections on a normal shutdown. This keeps the persister from losing Metrics and Alarms.
Made measurementTimeStampSimpleDateFormat not static since SimpleDateFormat is not thread safe
Changed some logging debug statements so Strings weren't created if debug not on
Created FlushableHandler as a base class and moved duplicate code into it from MetricHandler and AlarmStateTransitionHistoryHandler
Change-Id: Id31a1d148f8e796f5be483dd02544be49c009b18
Changed MetricHandler to take MetricEnvelope[]
Change-Id: Ifabbe253cc0163f150ada2252a41a5d9fb9ab423