463 Commits

Author SHA1 Message Date
zhangjianweibj
9900e18422 Docker support influxdb parse point error
Add option 'ignore_parse_point_error' for docker env. Refer(
github.com/openstack/monasca-persister/blob/master/
monasca_persister/conf/repositories.py).

Change-Id: Ia19c45a34c56dcb50d2a39cf42efc53f70a6c2db
1.14.0 stein-em
2019-03-28 20:59:48 +08:00
Zuul
5c690dccc7 Merge "Fix config file in docker" 2019-03-27 14:18:24 +00:00
Zuul
aa15ca9331 Merge "Fix Cassandra tempest tests job name" 2019-03-27 11:34:33 +00:00
Witek Bedyk
9d8f5b4f41 Fix Cassandra tempest tests job name
Change-Id: Id7cff19b16a9b2733c85e4b58e7cc5bccbd07124
2019-03-27 10:37:10 +01:00
Dobroslaw Zybort
4c96a96bf8 Fix config file in docker
Set all Cassandra environment variables to defaults.

Change-Id: I6b96d8bd435e8686d804dee7ba4d5a27c997def9
2019-03-26 14:41:17 +01:00
zhangjianweibj
2ae274853d persister support cassandra in docker env
at present,dockerfile not support cassandra as backend database.
so we add this feature.

Change-Id: I575c0169451ec3e19d2bfc26696b6648d92a35d3
2019-03-20 18:52:57 +08:00
Zuul
4faa6172c1 Merge "some points unable to parse" 2019-03-19 16:31:04 +00:00
Marcin Juszkiewicz
a75c96f502 README.rst: make it us-ascii
Change-Id: I4aa8e809c9aa92f93c9a70f99f32e3ff4975da20
2019-03-19 11:39:00 +01:00
zhangjianweibj
0ab568481f some points unable to parse
some metrics get from kafka,may not a standard point that
influxdb can parse.in this case,points should be dropped.

Task: 29641
Story: 2005069

Change-Id: Ib907a280ced26ef2c228efe14b57440f894d8aad
2019-03-19 10:58:14 +01:00
Zuul
47e5d1b4c6 Merge "Use global job for building docker image" 2019-03-04 14:12:00 +00:00
melissaml
e1ce058430 Update hacking version to latest
Story: 2004930
Task: 29316

Change-Id: I30518a05c3b216eadfbe2661348cbfa33cf202fd
2019-02-19 14:33:05 +01:00
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
Zuul
399b9adeec Merge "Update documentation to use new default config" 2019-02-18 19:26:22 +00:00
Zuul
c4822d6f8e Merge "Replace persister.conf with monasca-persister.conf" 2019-02-18 17:28:25 +00:00
Witek Bedyk
0e59d8b1ce Update documentation to use new default config
The new default configuration file name has changed to
monasca-persister.conf. This change updates documentation to use the new
default.

Change-Id: Ic271221f19cdc86e8297ed88cdcf4a86df4374b8
Story: 2004867
Task: 29534
2019-02-18 18:21:25 +01:00
Dobroslaw Zybort
b91d3c7e97 Use global job for building docker image
Update build_image script to latest version.

Change-Id: I958e653d9ed267f3b9082800d27624cc7586912c
Story: 2001694
Task: 23215
2019-02-18 11:26:44 +01:00
ZhongShengping
846116b6fa add python 3.7 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.7.

See ML discussion here [1] for context.

[1] http://lists.openstack.org/pipermail/openstack-dev/2018-October/135626.html

Change-Id: If317954e8d22da496e911d0b8f9529907b164005
2019-02-18 15:29:57 +08:00
Zuul
76885d6b5d Merge "Fix default alarm_state_history_driver value" 2019-02-13 16:35:40 +00:00
Zuul
c778515cee Merge "Fix the misspelling of "available"" 2019-02-08 11:09:23 +00:00
Thomas Bechtold
a59f436e69 Replace persister.conf with monasca-persister.conf
persister.conf is the deprecated path for the configuration file.
The new path is /etc/monasca/monasca-persister.conf . This is inline
with other OpenStack projects.
Also fix the log setup and set the product name to 'monasca-persister'
which is inline with other OpenStack and Monasca projects.

Change-Id: Ida11c326b3e6771b5ccf994205c55874db05bc5c
Story: 2004867
Task: 29112
2019-02-08 11:03:31 +00:00
Zuul
497f089ee9 Merge "Add tempest tests jobs" 2019-02-06 10:51:34 +00:00
Witek Bedyk
5d082a9178 Fix default alarm_state_history_driver value
Change-Id: Id85bb6d2ab85048e38d8fd427829a7b61136d9aa
Story: 2004943
Task: 29344
2019-02-05 13:07:55 +01:00
Zuul
9361c3191c Merge "Update .gitignore" 2019-02-01 16:44:25 +00:00
Zuul
1be67d365c Merge "Change default for [kafka]num_processors to 1" 2019-01-31 19:19:01 +00:00
Witek Bedyk
8e76d4648d Add tempest tests jobs
Change-Id: I86a730d49e1018620105e4e2d2e7ecb05026de1e
2019-01-31 19:12:51 +01:00
Thomas Bechtold
6508384060 Change default for [kafka]num_processors to 1
Currently the default for [kafka]num_processors is 0. This can lead to
the situation where monasca-persister starts but nothing happens
because no processes are started.
This can happen very easy in the default configuration where the
"num_processors" value in the different
sections ([kafka_alarm_history], [kafka_events], [kafka_metrics]) is
set to:

num_processors = $kafka.num_processors

which means that in the default case, 0 processes are started.
This is fixed now because the default for [kafka]num_processors is now
1.

Change-Id: I2c8ed56bbe91648543044201d7b6320f88a724c7
2019-01-29 10:39:01 +01: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
Thomas Bechtold
2390249b54 Drop monasca_persister/LICENSE
The LICENSE file is already in the root directory of the git project
so there is no need to have an identical file in the
monasac_persister/ subdir.

Change-Id: I2f3b54418192406cdb633cc43cdd6eab3a7683ed
2019-01-27 06:15:18 +01:00
lijunjie
874e695e6b Fix the misspelling of "available"
Change-Id: I2b96a8754bcc835a9288d67a23d2ddd58fbf33be
2019-01-22 13:32:21 +08:00
melissaml
e6d49a20c2 Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: I4902f981346a6471229d33c309c6d16ceb20a108
2018-12-05 01:34:18 +08:00
Zuul
e6351fbae1 Merge "Remove setup.py check from pep8 job" 2018-11-20 09:07:18 +00:00
Zuul
9ab311035d Merge "Disable ClassPathURLCheck for Java build" 2018-11-09 18:15:56 +00:00
Sean McGinnis
c8a4987bbf Remove setup.py check from pep8 job
Using "python setup.py check -r -s" method of checking the package has
been deprecated with the new recommendation to build the sdist and
wheel, then running "twine check" against the output.

Luckily, there is already a job that covers this that only runs when the
README, setup.py, or setup.cfg files change, making running this in the
pep8 job redundant. This covered by the test-release-openstack-python3
that is defined in the publish-to-pypi-python3 template.

More details can be found in this mailing list post:

http://lists.openstack.org/pipermail/openstack-dev/2018-October/136136.html

Change-Id: Ie86513569c5a25c2de5eca94e0479f03806a45fb
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2018-11-06 17:10:34 +01:00
Witold Bedyk
f48c40f124 Disable ClassPathURLCheck for Java build
This is a workaround for Maven build failures due to bugs in openjdk-8
and surefire plugin until these packages are fixed.

Change-Id: I9115a3567cc1ca7fc59d05e3b74171c031460065
Story: 2004256
Task: 27809
2018-11-06 14:43:01 +01:00
Zuul
b8471f3d51 Merge "Parse envelope fields from kafka to prepare the ES index" 1.13.0 2018-10-16 13:29:53 +00:00
Martin Chacon Piza
473dea341f Parse envelope fields from kafka to prepare the ES index
- Change the default index prefix name for events.

Story: 2003955
Task: 26880

Depends-On: https://review.openstack.org/#/c/600030/
Change-Id: Idb6913229d3ac4e391eda0d6129eb2590bc7a678
2018-10-10 14:52:43 +02:00
98k
6d40b54b91 Don't quote {posargs} in tox.ini
Quotes around {posargs} cause the entire string to be combined into one
arg that gets passed to stestr. This prevents passing multiple args
(e.g. '--concurrency=16 some-regex')

Change-Id: I5cf12e8db1bbf6215ad67524b80ad52e8b9eff4d
2018-10-09 21:11:46 +00:00
Zuul
cae1a43b8d Merge "Turn logging down from DEBUG in persister-logging.conf" 2018-10-05 12:57:21 +00:00
Zuul
809b1693c5 Merge "fix tox python3 overrides" 2018-10-01 08:43:14 +00:00
Joseph Davis
bb8c8fbec9 Turn logging down from DEBUG in persister-logging.conf
All the configurations for logging were set to DEBUG, which
creates a large amount of output to the console (especially from
monasca_common.kafka_lib) which in turn was captured by the
devstack screen session for the python tempest gate tests and
causing trouble with logstash indexing.
Turn the default devstack logging to a more reasonable INFO.

Change-Id: I480e75f6254735f3221fcc02f96086b037256c85
Story: 2003911
2018-09-28 16:26:36 -07:00
Andreas Jaeger
3196c1986d Use templates for cover and lower-constraints
Use openstack-tox-cover template, this runs the cover job
in the check queue only.

Use openstack-lower-constraints-jobs template.

Remove jobs that are part of the templates.

Change-Id: I276ef74f5ca9f2be7b0f03f19dca897390cbe105
2018-09-08 16:18:40 +02:00
Zuul
5862969201 Merge "Clean up lower-constraints.txt" 2018-09-05 12:39:22 +00:00
Witold Bedyk
87b6d4dfb8 Remove pykafka from lower-constraints
Change-Id: I457490894b39c5ed24384205fb319f711f7e28df
Story: 2003079
Task: 23158
2018-09-03 10:51:53 +02:00
Witold Bedyk
30e791c19d Clean up lower-constraints.txt
* remove redundant `===`
* sort entries

Change-Id: I276a867a54abf51145220ca4127d4b8441e0eea3
2018-09-03 10:37:27 +02:00
Zuul
8db160582a Merge "Adding batch size for events configuration" 2018-08-28 15:06:14 +00:00
Zuul
3ee0daf315 Merge "add python 3.6 unit test job" 2018-08-27 12:40:58 +00:00
Zuul
e3cb38b5e8 Merge "import zuul job settings from project-config" 2018-08-27 08:28:27 +00:00
Martin Chacon Piza
0116b65af4 Adding batch size for events configuration
Change-Id: I42efe2330f014f3a59f9086070b020b67cd90162
2018-08-24 12:14:34 +00:00
Martin Chacon Piza
559483118b Disable B303 bandit test
Change-Id: I3e5cbfccac73e1f47859eed3d96c1acd1ac92093
2018-08-24 13:04:44 +02:00
Doug Hellmann
8b4c956175 add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: If3d7b2a09a273c5a0461e0b7e78d296d507f79d7
Story: #2002586
Task: #24312
2018-08-22 18:51:59 -04:00