Commit Graph

97 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
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
venkatamahesh 8892699305 Change repositories from stackforge to openstack
Change-Id: I1579ccd3803a1d2ca6173ce517cfc28350e15d05
2015-10-19 09:15:07 +05:30
Tim Kuhlman 8aa397abf5 Bump to version 1.1
Change-Id: Ic1bfd95e8f5929afe893df5489ff4199c59e97bf
2015-04-27 13:34:06 -06: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
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 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 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
Craig Bryant 797c60f567 Removed dependency because mon-kafka is now on same version of kafka 2014-06-25 15:12:44 -06:00
Tim Kuhlman b59b2f3508 Merge pull request #1 from hpcloud-mon/feature/require_storm
Move to requiring storm to run
2014-06-25 11:47:33 -06:00
Tim Kuhlman 1aaac2e643 Removed maven-dependency-plugin 2014-06-23 09:42:31 -06:00
Craig Bryant a2c3d837f2 Add removal of debs on clean 2014-06-18 13:17:54 -06:00
Tim Kuhlman 03a6e0095c Moved to an init script assuming storm is setup, dropped storm jar from deb 2014-06-13 10:46:16 -06:00
Craig Bryant 4d6311ab68 Changes so it will build without access to any HP resources
Update README.md with dependency on mon-common
2014-05-30 10:24:03 -06:00
Craig Bryant 57a2012792 The timestamp on MetricEnvelope was changed to be seconds not milliseconds to be more consistent with other timestamps used across components. Changed the code and tests to adapt to this change.
Update to the build 51 of mon-common that has this change
2014-05-06 16:36:38 -06:00
Craig Bryant 506a765889 Rev to version 49 of mon-common to fix issue where Alarm Sub Expressions referencing a MetricDefinition with no dimensions didn't work 2014-05-05 21:17:48 -06:00
Craig Bryant 7c6394b1f8 Use the new timestamp in MetricEnvelope which is the time the API creates the MetricEnvelope. The API immediately hands the MetricEnvelope to Kafka so the Threshold Engine can determine its progess in emptying the Queue.
Change the code that checks for "lagging" metrics to use this timestamp instead of the Metric timestamp since the lagging code deals with emptying the Kafka queue and this timestamp is a much better measure of how backed up the kafka queue is. The metric timestamp is set by the agent and it is much likelier for the time to be off.

Switch to mon-common build 48 which has the new timestamp. The MetricFilteringBolt will work correctly if the API is using an older version of MetricEnvelope without the timestamp, the lagging code just won't be invoked.

Change the tests to work with the new timestamp.

Had to back down to an older version of scala or the Threshold Engine would not start with a java.lang.NoClassDefFoundError: scala/reflect/ClassManifest
2014-05-05 17:53:37 -06:00
Craig Bryant 10c5bebe48 Update to the newest version of mon-common. Trying to keep current. 2014-05-01 14:22:43 -06:00
Craig Bryant a3429536d2 JIRA JAH-17 Modify maven build for mon-thresh that creates a jar that can be used for a production build.
Needed to strip out the storm jar from the consolidated jar.

Needed to remove storm.yaml because Storm complains. Moved the registration of the Serializer to ThresholdingEngine.

Added the storm-core jar to the deb so it can be used for the local mode in mini-mon

Added logback.xml to the deb since storm-core.jar also has a logback.xml and that confuses logback. Ensure our logback.xml is used.

Added the storm-core.jar and logback.xml to the start of thresh in the deb

Had to rework how the AlarmEventForwarder was injected into the AlarmThresholdingBolt because the old way didn't work in a Storm cluster because the TopologyModule wasn't loaded on the worker when prepare was called.
2014-04-30 22:28:12 -06:00
Craig Bryant 63290a82ab JIRA JAH-10 On start-up threshold engine should wait for metrics for all periods prior to transitioning to an alarmed state
Change so that all view slots must have metrics before the SubAlarm transitions to ALARM. Also, change it so SubAlarmStats doesn't transition it to UNDETERMINED on startup until there have been emptyWindowObservationThreshold calls to evaluate(). Previously it only required one for new sub alarms and sub alarms on restart. Want the ThresholdEngine to have same behavior on restart as it would when the Threshold Engine has been running for a long time.
2014-04-28 16:38:35 -06:00
Craig Bryant 8eeda856fd Set actionsEnabled for AlarmStateTransitionedEvent. Bumped up to mon-common 35 to get new field and fix issue where Metric wasn't Serializable 2014-04-17 10:55:54 -06:00
Craig Bryant e02b6f8483 Changes to handle AlarmUpdatedEvent properly. Now reuses measurements if possible (when only operator or threshold have changed). Added test not run by normal Unit tests.
Go to mon-common version 30. Gives alarmDescription in AlarmUpdatedEvent and new name alarmActionsEnabled
2014-04-17 08:51:33 -06:00
Craig Bryant 3b1deee576 Changed to use version 30 of mon-common to get the new MetricEnvelopes that doesn't munge the JSON before parsing it. Allows handling of this JSON:
{"metric":{"name":"mon_http_status","dimensions":{"detail":"\"{\\\"deadlocks\\\"","hostname":"persister","url":"http"},"timestamp":1397493558,"value":0.0},"meta":{"tenantId":"82510970543135"}}
2014-04-14 13:48:17 -06:00
Craig Bryant 87e660eee2 Remove the dropwizard version property now that dropwizard is gone 2014-04-09 16:14:57 -06:00
Craig Bryant cbca836aa5 Remove dropwizard jars from pom.xml. Wasn't using them anymore and it saved a lot of dependencies. 2014-04-09 10:00:59 -06:00
Craig Bryant 0066d04a28 Change to use the AlarmStateTransitionedEvent from mon-common and remove AlarmStateTransitionEvent from mon-thresh.
Update creation of AlarmUpdatedEvent because it now has more fields.
2014-04-01 16:55:29 -06:00
Craig Bryant 021ad77f21 Added handling for AlarmUpdatedEvent. This is not yet complete because it depends on a decision about Alarm State after API update and maybe some changes in other places depending on decision.
Added more unit tests.

Fixed ThresholdingEngineTest to work and produce meaningful results.
2014-03-27 16:01:09 -06:00
Deklan Dieterly 989edb006e Added logging.
Changed version of mysql-connector.
Removed unnecessary injection.
Removed log4j.properties file.
2014-03-20 07:42:05 -06:00
Deklan Dieterly c97fe54152 Add logging configuration. 2014-03-19 10:09:00 -06:00
Deklan Dieterly 9646da48e0 Change mon-common dependency to be 1.0.0.16. 2014-03-14 15:57:21 -06:00
Deklan Dieterly a29a9d6d89 Get deb file creation working. 2014-03-14 09:20:45 -06:00
Deklan Dieterly 72dce76c32 Changed ${version} to ${project.version}. 2014-03-13 11:26:18 -06:00
Deklan Dieterly ab772eceb9 Added missing version numbers to plugins. 2014-03-13 11:21:41 -06:00
Deklan Dieterly 8ccd7e6b9c Add version number for scm plugin. 2014-03-13 11:08:14 -06:00
Deklan Dieterly a8fbbabb8e Update storm to 0.9.1-incubating.
Use storm-core.
2014-03-13 11:01:29 -06:00
Deklan Dieterly c961d3c4bc Update storm to 0.9.1-incubating.
Use storm-core.
2014-03-13 09:41:52 -06:00
Deklan Dieterly 33bdaf29d3 Fix pom.
Revert to previous storm.
Remove storm-kafka.
2014-03-13 07:46:30 -06:00
Deklan Dieterly 83185a79b4 Update pom to use storm 0.9.1-incubating. 2014-03-12 16:53:19 -06:00
Deklan Dieterly 52cc7e63fd Start building Kafka connections. 2014-03-12 10:22:35 -06:00
Deklan Dieterly d4a86831bd Add Kafka dependency. 2014-03-11 17:21:48 -06:00
craigbr 5c8158ed2a Had to exclude logback-core as well as logback-classic otherwise I was getting a mixture of versions for the two jars 2014-03-11 12:13:09 -06:00
Jonathan Halterman f2a4c18099 Removed ps-streaming dependencies in favor of mon-streaming
Change-Id: I87664e63af549f44b8422bf2c7446b2d88b70d9d
2014-03-10 13:29:58 -07:00
Jonathan Halterman 1643d238e6 Migrated most ps-common dependencies to mon-common
Change-Id: I8095e9ae18b2fbd8e95f748a9a0066db90ef57b4
2014-03-10 11:43:17 -07:00
Jonathan Halterman 37009ac9c7 maas -> naming
deleted some tests that were previously moved to mon-common

Change-Id: I1432f3e6738bfc4f1e3486ba393b003171b20938
2014-03-10 11:08:08 -07:00
Jonathan Halterman 6dc5b952c3 Fixed alarm test
Change-Id: I18fb6f7553dbb1e46d151b83cf43d1d0fa8d7bfd
Updated DAOs to recognize deleted alarms

MAAS-1184

Change-Id: I7645f48f060a8c2141d770d4e74c4cd75f033433
Ignore failed publishes

Change-Id: I5b3e5742fa1e2c9e9c95f4c9bf1c1c4b071809f2
Added support for Swift

Change-Id: I167303c98448721d6acd6d3a5b476917ab1750b7
2013-10-31 16:34:23 -07:00
Jonathan Halterman 4a0358cae2 Update ps-common for synchronized module registration
Change-Id: I1708e59e625d7f3a43744449787b6e51904d305b
2013-10-08 11:20:17 -07:00
Jonathan Halterman 402e8af63d Pickup some ps-common improvements around Sarge
Change-Id: I21eb432c99c857a6d2340ab49765f52b5587d234
2013-10-07 15:48:17 -07:00