Commit Graph

30 Commits

Author SHA1 Message Date
Martin Chacon Piza 0ee0e79a73 Add mariadb-connector-j and bump version to 2.4.0
mariadb-connector-j is:

- Well maintained.
- Compatible (v2.7.0) with MySql Server 8.0.x
- LGPL Licensed

Change-Id: I44830b47a1de4ae69f635327a2da1802a67d92d2
Story: 2008236
Task: 41079
2020-10-08 16:45:14 +02:00
Thomas Bechtold 8c976339a7 Use storm version 1.1.3
monasca-api uses storm 1.1.3 [1] so adjust the version here to be in
sync with monasca-api.

[1]
https://git.openstack.org/cgit/openstack/monasca-api/tree/devstack/settings#n109

Story: 2003031
Task: 29275

Change-Id: I0f30e1353a40fb379fa7c389686f65226d5c222b
2019-03-15 15:03:24 +00:00
Zuul f689816936 Merge "Added license informaton for third-party libraries" 2018-03-06 15:14:57 +00:00
Kenan Karamehmedovic 344adcde36 Added license informaton for third-party libraries
Task:  6353
Story: 2001540

Depends-On: https://review.openstack.org/544813

Change-Id: Iff0d2f130defb4d26cbf047bed44f73f89bbcee8
2018-02-19 11:46:00 +00:00
Witold Bedyk 15f9962fcb Remove mysql-connector and bump version to 2.3.0
MySQL Connector is released under GPLv2 license which restricts the
distribution of the consuming project [1]. This change removes MySQL
Connector and leaves Drizzle JDBC which is licensed under BSD.

[1] https://governance.openstack.org/tc/reference/licensing.html

Story: 2001522
Task: 6324
Change-Id: I4c39ebc290475820b5ba3ab54c36198ca9069abe
Depends-On: https://review.openstack.org/541366
2018-02-09 15:54:47 +01:00
Witold Bedyk be22e54fd7 Upper pom version to 2.2.0
Change-Id: I59e3d60f606791cc15bb0f2ee17d871e15aa754d
2017-12-20 14:32:08 +01:00
Witold Bedyk 86b8634c9c Change version to 2.1.1
Depends-On: Ib3da5c9e1f6e5e2d6f77269129bd769179bfd3be
Change-Id: I6e4b73525b3c32c2bdd04c63ae73bcb4c50b5447
2017-02-15 13:48:30 +00:00
Witold Bedyk 31a7b69b59 Change version to 2.1.0
Change-Id: Ic867645c7c77954bde27cecc64ec01057013f99a
2016-11-23 17:06:49 +01:00
Michael James Hoppal a62c27a165 Bump drizzle driver version to support millisecond resolution
Change-Id: I671d4e081191bd72bbb8bac97ff3a27812dc50dc
2016-08-15 15:45:42 -06:00
Craig Bryant 0e72d867ec Change to use Storm 1.0.0 instead of 0.9.x
Storm classes changed from starting with backtype to org.apache

Since this is a major backwards incompatible change, increment the
jar version

Copy some Stream classes from monasca-common. They were only used for
monasca-thresh anyways and having them in a separate repo made it
harder to make this change. A later review will remove these classes
from monasca-common

Need to have an explicit dependency on commons-codec

Change-Id: I36db83ce7fdea02ae4df267cf0820e49dcdf3001
2016-06-09 14:14:23 -06:00
Deklan Dieterly 7febc99a69 Upgrade to Kafka 0.8.2.2
Upgrade Kafka to current stable release - 0.8.2.2.
Upgrade Scala version to 2.11.

Change-Id: I113997fc1c3124bc1073cb261d6b6f873c6fc6b2
2016-01-04 15:39:24 -07:00
venkatamahesh 8892699305 Change repositories from stackforge to openstack
Change-Id: I1579ccd3803a1d2ca6173ce517cfc28350e15d05
2015-10-19 09:15:07 +05:30
Tomasz Trębski 7a595cf420 Dependencies updated
Following changes made because monasca-common
was modified:

- removed unnecessary dependencies
- updated hikari version
- added javax.el-api

Change-Id: I176008a258411500bf14ba4a26258bdce90476db
2015-09-23 06:37:16 +00:00
Michael James Hoppal f43dfb5918 Add the drizzle driver to pom
Allows the end user the ability to choose between using drizzle
and mysql connector.

Change-Id: If74b239824d35ccbf9a5fd2f2cae6dbd0efb40a0
2015-09-04 16:10:52 -06:00
Tomasz Trębski 622339f6bc Hibernate support added
- added ORM support with Hibernate
- rewritten two mysql repositories to use ORM

Change-Id: I22e342ca57b4cc62b12a44cdf503ce068b9b67b5
2015-08-31 11:45:39 +02:00
Roland Hochmuth fb9b6888c1 Modified query in getAlarmedMetrics for performance
Change-Id: I3520ea7154a450c5cbb5d4aecf152e1521435907
2015-07-30 21:59:32 -06:00
Craig Bryant 88ce39abdb Bump the version to 1.1.0
Change-Id: Id63a620b4d3c301567e462b3d04a1ddc8a8322b2
2015-04-28 21:28:24 -06:00
Craig Bryant 8f28398d07 Only the jar and sample config in the deb
Remove control scripts from deb

Update sample config file to be more current

Change-Id: If2b11dd1cab807f58b4b23a0a1933fb179032964
2015-04-20 11:22:47 -06:00
Jenkins 51e27bab7d Merge "Added version information to jar which can be used on the command line e.g. java -jar monasca-thresh.jar --version" 2015-03-30 03:02:59 +00:00
Craig Bryant 47b734664e Use Maven 3 for build
Also, pull and build monasca-common directly instead of using
jars from tarballs.openstack.org since zuul often gets backed
up and jars don't get updated fast enough

Change-Id: I22fc5cfc085a583c337fca199d5e49ead93fcbb7
2015-03-28 13:40:16 -06:00
Dexter Fryar 2f0e0792fa Added version information to jar which can be used on the command
line e.g. java -jar monasca-thresh.jar --version

Change-Id: If1b6dc46ddac063d78b956fa43372cc4d30787fc
2015-03-25 16:50:44 -05:00
Dexter Fryar 3a00ef33ba Added monitoring of storm/threshold engine via StatsD
See https://wiki.openstack.org/wiki/Monasca/Monitoring_Of_Monasca

Change-Id: Ie995fa31791e61dc3d480f12c2dc99271c6e3e4a
2015-03-17 20:08:17 -05:00
Craig Bryant 6e4fb0720a Put the thresh jar in a place where it will get uploaded
Create a symlink so the target directory is in the place
the upload expects

Shrink the jar to only what is needed

Change-Id: Idb71dae90db4f6e749cc55ffbb106794a89651e1
2015-01-26 14:22:41 -07:00
Craig Bryant 46f2f5f3df Improve performance of Alarm Creation
The AlarmCreationBolt now caches AlarmDefinitions and Alarms for
quicker evaluation of incoming metrics. Incoming metrics end up in one
of these buckets:

1. Fits into an existing Alarm
2. Causes a new Alarm to be created
3. Already exists in an existing Alarm

All of these require the analysis of existing Alarms. I tried writing SQL
to do this analysis but it just wasn't fast enough so instead I added
the caching of the Alarm Definitions and Alarms.

The AlarmCreationBolt now needs to process Alarm deletion message so
that stream from the EventProcessingBolt had to be hooked up to the
AlarmCreationBolt.

The AlarmCreationBolt used to incorrectly handle
Alarm Definition Updated events.

Improved the queries in AlarmDAOImpl to be more efficient by using
fewer queries intsead of multiple queries per Alarm. However the
AlarmDAOImplTest now requires a real mysql instance since the h2
emulator doesn't understand "group_concat". Mark that test as
only run for target integration-test

Turn on tests for target integration-test

Previous code was not reusing Metrics from existing Alarms
all times it should have. Added test for this case

Changed info messages to debug to lessen normal logging.

Added more tests of existing and new functionality

Added some timing code for debug

Removed unused code

Added more debug logging code

Added reference to API doc for Alarm Definitions in README

Change-Id: Ied9841ecde7608b9eb1eb9c110b73b079ede71bc
2015-01-09 12:35:56 -07:00
Craig Bryant c3f15d8c33 Get Alarm updating to work properly. Previously, the state would
not change back to the real state

Get Alarm Deletion to work properly. Previously, it would not clean
up the Alarms or Sub Alarms

Get the Alarm Definition Deletion Event to work correctly. Previously
it wasn't handled

Get the Alarm Definition Updated Event to work correctly, at least
for name, description and severity

Finish implementing some TODOs in AlarmCreationBolt and add tests

Fixed some code that could handle Alarm Definition Updates in
the MetricAggregationBolt but the right calls aren't made in
the rest of the code, yet

Removed some unused or duplicated test java files

Turn the tests back on as they now run

Change-Id: Idb6c92d35e2273601411ca9c0f7d7ba45c61ad55
2014-10-09 17:11:25 -06:00
Craig Bryant 0743e0a8e3 Changes for Alarmed Metrics
This code creates Alarms correctly but can't delete them or
Alarm Definitions. It also does not handle Alarm Definition
updates.

This code is dependent on the new monasca-common changes that
have not been merged.

MetricFilteringBolt reads AlarmDefinitions on startup.
MetricFilteringBolt sends the message that a new MetricDefinition
was found for an AlarmDefinition.

MetricAggregationBolt gets SubAlarm messages for SubAlarm creation
instead of getting SubAlarms from the database

Created the AlarmCreationBolt which will handle AlarmCreation when
the metrics that fill an alarm are seen. Also, will add Alarmed Metrics
to an existing alarm if they match.

Temporarily renamed sub_alarm table to sub_alarms table to not conflict
with API table.

Using the BeanMapper to directly map an AlarmDefinition caused an issue
with the older version of guava used by storm so had to hack around that.

Temporarily renamed sub_alarm table to sub_alarms table to not conflict
with API table.

Using the BeanMapper to directly map an AlarmDefinition caused an issue
with the older version of guava used by storm so had to hack around that.

Allow more then one AlarmCreationBolt because it routes by
AlarmDefinitionId

Change the routing for MetricFilteringBolts so they always get the same
tenantId + Metric name. Prevents multiple messages from going to the
AlarmCreationBolt

Removed MetricDefinitionDAO and all related classes since they are
not used anymore

Make it so there is only one AlarmCreationBolt because there is
no code protection for ensuring dimensions aren't created twice
for concurrent creates

Tests are turned off for now

Change-Id: I6747d789bbe0f7f723e19060bf19c3fe318c1e3e
2014-09-30 13:00:02 -06:00
Tim Kuhlman faa3121ee4 Create a tar.gz file with the package target.
Change-Id: I09b61a5ba73e3f502fa784d1a3d184fec420505f
2014-08-21 10:48:53 -06:00
Craig Bryant d96fb0d852 Change to use monasca everywhere
service is now monasca_thresh. Config file in /etc/monasca

Fixed start and stop in install script

Change-Id: I5272c8ac32e497be978f8c59c4c5b6964ed4e9d2
2014-08-06 17:23:29 -06:00
Craig Bryant f72caef55f Change packages to monasca.thresh
The diffs are going to be very hard to read on this change, but
basically the change is from com.hpcloud.mon to monasca.thresh.

Since monasca-common packages haven't changed, yet, they are still
referenced as com.hpcloud.mon, but everything else has changed to
monasca.thresh.

The init script has also been changed to invoke the new package path.

Change-Id: I5aad9302a8f5b11ed1b9874160f0d7a9882c5b2d
2014-08-05 22:03:47 -06:00
Craig Bryant cdea9bdcb2 Get initial build to work.
Modified build to work with maven 2

Modified so it will download monasca-common jars
from tarballs.openstack.org if the user is jenkins, otherwise the
user is told to build and install monasca-common

Had to move the source code to the new thresh directory so that a
separate module could do the download before dependencies would
be checked by maven

Had to explicitly set the project name in the control file, not sure
why

Change-Id: Ic4d02478b078aad7c1f0eebda2ea2def8d9edf1a
2014-07-24 15:28:13 -06:00