Commit Graph

11 Commits

Author SHA1 Message Date
Thomas Bechtold fe88e8f796 Add job for releasenotes
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
2019-02-19 10:46:25 +00:00
Thomas Bechtold 50590c875b Update .gitignore
Ignore AUTHORS, ChangeLog and dist/* .
These files are autogenerated when creating a sdist tarbar (via eg.
"python setup.py sdist")

Change-Id: I90cf0d2067ac019e624b2daed78ce02673e5e4bd
2019-01-27 06:18:11 +01:00
James Gu 169f2c3ca3 Add performance testing in Monasca persister
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
2018-02-12 09:53:13 +00:00
Adrian Czarnecki ca5d223611 Add .stestr.conf .
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
2017-09-22 14:13:18 +02:00
Adrian Czarnecki 5f168778c6 Use oslo-config-generator
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
2017-07-28 13:48:01 +02:00
Laszlo Hegedus b3f9359608 Add persister.py unit tests
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
2017-01-12 09:18:29 +00:00
Deklan Dieterly b53166a567 Add virtenv dir and contents to .gitignore
Allow developers to use 'virtenv' for virtual environments.

Change-Id: I4c6fc44633f99044e8257a890168e10eede82608
2015-08-31 08:32:11 -06:00
Deklan Dieterly 244f3ab8dc Exclude all .pyc files from git
Change-Id: I8f07b7af95df91c93081d48aba84636c6540db10
2015-05-12 10:52:54 -06:00
Deklan Dieterly d3acf12034 Increase throughput of persister
Add batching to InfluxDB writes to improve throughput.

Change-Id: Ia173f55726cb11245f0bcf4580f1af8129c23aa3
2014-10-02 11:40:18 -06:00
Deklan Dieterly 06822e6131 Initial Python Persister
Alarms and metrics persisted.  Simple first-pass approach.

Change-Id: Iea3e6b5506563a2954989cd3170212ad7b296c69
2014-09-19 08:35:53 -06:00
Craig Bryant dbab337d76 Commit kafka reads once the item was persisted
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
2014-07-31 22:15:24 -06:00