Commit Graph

41 Commits

Author SHA1 Message Date
sunyandi f289a91698 Update links in pom.xml
Change-Id: I9aaaee398fc4d1c3046919e9f63a439a4bc65584
2018-01-15 16:39:54 +08:00
James Gu 2cd175995a Upper pom version to 1.3.0
Increases pom version to 1.3.0 after adding cassandra integration.

Depends-On: I0c6c1d027362a0babb5d7a5473c93afc3a72bb09
Change-Id: I1f8ec63e33b8949e477afbd6a8f70f4f26b18ed7
2017-12-19 13:11:41 -08:00
Witold Bedyk ba381b409b Release version 1.2.1 for Java
Depends-On: Ib3da5c9e1f6e5e2d6f77269129bd769179bfd3be
Depends-On: I6e4b73525b3c32c2bdd04c63ae73bcb4c50b5447
Change-Id: I72c9fac6943ae5b2c3b367ed9fe5c884c492b48a
2017-02-15 13:49:25 +00:00
Witold Bedyk 16fb6bb207 Change Java version to 1.2.0
Depends-On: Icce74fd6d7e674f408277e328468bedbc3d0aa6b
Change-Id: I5c2e2f40b61c598528ccf604ff0fd50fbf9865ae
2016-12-15 16:59:28 +00:00
venkatamahesh e947a28c01 Change repositories from stackforge to openstack
Change-Id: I9b0afa3c48fcc29335f5c7d4305b768dc2084614
2015-10-19 09:25:20 +05:30
Tim Kuhlman bd39f6d1e8 Bump to version 1.1
Change-Id: If65e2f0d99c74c3723b11b9bfd7bd418a654b371
2015-04-27 13:33:29 -06:00
Craig Bryant 23d8e0d9b7 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: I27c964eb2b732c70c0e8c8d2b74b160c921e899d
2015-03-27 12:04:07 -06:00
Craig Bryant f1f9d9f72c Changes to get the java code to build on StackForge
Build and upload the jar to tarballs.openstack.org

Also, remove unused jars from shaded jar to reduce size

Need to use an older version of the shade plugin because stackforge
uses maven 2 by default

Change-Id: Ie9c497d1be325264bf76b16e8d56820dafb1d097
2015-02-04 09:37:34 -07:00
Jenkins d55db93a6e Merge "Add a tar.gz to the package step" 2014-08-28 16:03:39 +00:00
Craig Bryant 9bc5997853 Use monasca everywhere
Rename all uses of mon-persister to monasca-persister. For example,
the service is now called monasca-persister not mon-persister

Rename all packages from com.hpcloud.mon.persister to monasca.persister

Change-Id: Ic131b0eb0ac30e9ae91ca1f2f9df88fc9f837c98
2014-08-27 21:55:22 -06:00
Tim Kuhlman 8e7f853b75 Add a tar.gz to the package step
Change-Id: Ie02c3240ae845b1bfd650c3ae786d374bcb18da7
2014-08-20 16:54:33 -06:00
Craig Bryant f61bde1051 Remove all dependencies on hpcloud maven repository
Changes to match the newest version of the influxdb java API. This
is the one on the public maven repository. This may require deletion
of the influxdb in the local maven repository if it is the version
from hpcloud nexus as they both have the same version number

Changed mon-persister start to pick up vertica jdbc jar from
/opt/mon/vertica since vertica jdbc jar can't be redistributed

Removed vertica jdbc jar and hpcloud nexus from pom.xml

Change-Id: I0bfc97a1e88638bdda3960ca025140cf3a486e8b
2014-08-18 15:31:56 -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
Craig Bryant b7f0888be7 Changes to work with new monasca_common build
Use monasca_common instead of com.hpcloud among other changes

Change-Id: I146d0eabd1c087888b4ad60cf6bff7b9b214ac92
2014-07-23 11:36:24 -06:00
Craig Bryant f435408486 Fix various pom issues
Mark some jars as only used for tests so they don't go into
the shaded jar.

Standardize on the 2.9.2 version of kafka since that is what
monasca-common uses

Remove the extra declaration of the maven clean plugin that I
put in

Change-Id: I2df38b53ba3baed8558a62dfe7de74f305f8172a
2014-07-21 15:11:00 -06:00
Deklan Dieterly 4911350f53 Use InfluxDbConfiguration from mon-influxdb.
Change-Id: Ide804843c9c807e2f175e5649560c74fbc79f86f
2014-07-21 13:53:36 -06:00
Craig Bryant 6fc4f6ebd9 Change the build to use the mon-common from the local repository. Updated README.md with build instructions.
Added a plugin so mvn clean also removes the deb.
2014-07-08 13:01:36 -06:00
Deklan Dieterly e9b3ab2b2e Handles metrics with influxDB. 2014-06-09 13:45:28 -06:00
Craig Bryant 1b7190865d Update to the latest build of mon-common where MetricEnvelope timestamp is now in seconds 2014-05-08 09:04:47 -06:00
Craig Bryant ff116abbbc Update to mon-common build 50 so that when api sends a MetricEnvelope with the new timestamp, it will still deserialize 2014-05-06 10:48:51 -06:00
Roland Hochmuth 9ff005daa6 Modified to use Metric in mon-common. 2014-04-15 13:03:30 -06:00
Deklan Dieterly 0958da7057 Migrate to Dropwizard 0.7.0. 2014-04-10 14:50:31 -06:00
Deklan Dieterly c58633526e Fix mon-model jar resolution issue. 2014-04-10 10:03:25 -06:00
Roland Hochmuth d53156ef30 Modified to use AlarmStateTransitionedEvent in mon.common and added alarm description. 2014-04-08 20:37:13 -06:00
Roland Hochmuth 97a49b28a9 Changed package name to com.hpcloud.mon.persister 2014-03-24 16:22:20 -06:00
Deklan Dieterly a06c150dcf Add metrics. 2014-03-06 08:49:24 -07:00
Deklan Dieterly 78c33f4a58 Fully process metric messages into the DB. 2014-03-04 13:27:54 -07:00
Deklan Dieterly 28d73219e2 Create deb. 2014-02-26 10:28:31 -07:00
Tim Kuhlman 50cc1e57af Initial import of jdeb
I expect that the config does not work at this point.
2014-02-25 14:45:00 -07:00
Deklan Dieterly 64f10ce202 Add repository for vertica db. 2014-02-24 17:03:00 -07:00
Deklan Dieterly fcb4de1727 Basic functionality for sending string message to DB.
DB schema 'test'.
  DB table 'test.metric'.
  DB column 'test.metric.metric'.
2014-02-24 11:32:24 -07:00
Deklan Dieterly 96269503af Basic consuming functionality working.
kafka consuming and sending thru disruptor.
  disruptor handlers handling.
2014-02-21 14:44:02 -07:00
Deklan Dieterly e9456b0dd3 Start adding testing scaffolding. 2014-02-20 15:16:39 -07:00
Deklan Dieterly 3e5255eafb Added Guice.
Added a KafkaConsumer.
Added KafkaConsumer configs.
2014-02-20 14:10:32 -07:00
Deklan Dieterly 71ed224c83 Collate the various META-INF/services entries in the JARs instead of overwriting them. (Jersey doesn’t work without those.) 2014-02-19 09:09:32 -07:00
Deklan Dieterly 59e5ff1759 A basic server that runs. 2014-02-19 08:41:55 -07:00
Deklan Dieterly 28aa90ebb7 Add dropwizard dependency. 2014-02-18 16:44:31 -07:00
Deklan Dieterly e773ed7265 Added more UTF-8 encoding goodness. 2014-02-18 16:39:21 -07:00
Deklan Dieterly f6e8fa2bfe Changed group. Corrected spelling. 2014-02-18 16:18:25 -07:00
Deklan Dieterly 6ec1da0976 Amend the pom.xml
Add kafka dependencies
      Add shading
      Set encoding
      Set lint
2014-02-18 16:15:34 -07:00
Deklan Dieterly 42ac0e9824 Added initial pom.xml. 2014-02-18 16:09:58 -07:00