[jira] [Commented] (KARAF-5976) Add TimescaleDB appender
[ https://issues.apache.org/jira/browse/KARAF-5976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16674669#comment-16674669 ] ASF subversion and git services commented on KARAF-5976: Commit aea9f002312a89b8a745c211b2dfe6b9b5f2 in karaf-decanter's branch refs/heads/master from [~j...@nanthrax.net] [ https://gitbox.apache.org/repos/asf?p=karaf-decanter.git;h=aea9f00 ] Merge pull request #58 from fpapon/KARAF-5976 [KARAF-5976] Add TimescaleDB appender > Add TimescaleDB appender > > > Key: KARAF-5976 > URL: https://issues.apache.org/jira/browse/KARAF-5976 > Project: Karaf > Issue Type: Improvement > Components: decanter >Reporter: Francois Papon >Assignee: Francois Papon >Priority: Major > Fix For: decanter-2.2.0 > > > TimescaleDB is an open source time-series database powered by PostgreSQL. > We could add an appender to store collected data into a TimescaleDB database. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (KARAF-5976) Add TimescaleDB appender
[ https://issues.apache.org/jira/browse/KARAF-5976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16674667#comment-16674667 ] ASF GitHub Bot commented on KARAF-5976: --- jbonofre closed pull request #58: [KARAF-5976] Add TimescaleDB appender URL: https://github.com/apache/karaf-decanter/pull/58 This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/appender/pom.xml b/appender/pom.xml index 42cef43..6546526 100644 --- a/appender/pom.xml +++ b/appender/pom.xml @@ -52,6 +52,7 @@ redis rest socket +timescaledb \ No newline at end of file diff --git a/appender/timescaledb/pom.xml b/appender/timescaledb/pom.xml new file mode 100644 index 000..7738326 --- /dev/null +++ b/appender/timescaledb/pom.xml @@ -0,0 +1,72 @@ + +http://maven.apache.org/POM/4.0.0; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd;> + + + +4.0.0 + + +org.apache.karaf.decanter +appender +2.2.0-SNAPSHOT +../pom.xml + + +org.apache.karaf.decanter.appender +org.apache.karaf.decanter.appender.timescaledb +bundle +Apache Karaf :: Decanter :: Appender :: TimescaleDB + + + +javax.json +javax.json-api + + +org.apache.karaf.decanter +org.apache.karaf.decanter.api + + + + + + +org.codehaus.mojo +build-helper-maven-plugin + + +package + +attach-artifact + + + + + src/main/cfg/org.apache.karaf.decanter.appender.timescaledb.cfg +cfg + + + + + + + + + + \ No newline at end of file diff --git a/appender/timescaledb/src/main/cfg/org.apache.karaf.decanter.appender.timescaledb.cfg b/appender/timescaledb/src/main/cfg/org.apache.karaf.decanter.appender.timescaledb.cfg new file mode 100644 index 000..3178b5c --- /dev/null +++ b/appender/timescaledb/src/main/cfg/org.apache.karaf.decanter.appender.timescaledb.cfg @@ -0,0 +1,31 @@ + +# +#Licensed to the Apache Software Foundation (ASF) under one or more +#contributor license agreements. See the NOTICE file distributed with +#this work for additional information regarding copyright ownership. +#The ASF licenses this file to You under the Apache License, Version 2.0 +#(the "License"); you may not use this file except in compliance with +#the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +#Unless required by applicable law or agreed to in writing, software +#distributed under the License is distributed on an "AS IS" BASIS, +#WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +#See the License for the specific language governing permissions and +#limitations under the License. +# + + +### +# Decanter TimescaleDB Appender Configuration +### + +# DataSource to use +dataSource.target=(osgi.jndi.service.name=jdbc/decanter-timescaledb) + +# Name of the table storing the collected data +table.name=decanter + +# Marshaller to use (json is recommended) +marshaller.target=(dataFormat=json) \ No newline at end of file diff --git a/appender/timescaledb/src/main/java/org/apache/karaf/decanter/appender/timescaledb/TimescaleDbAppender.java b/appender/timescaledb/src/main/java/org/apache/karaf/decanter/appender/timescaledb/TimescaleDbAppender.java new file mode 100644 index 000..ef95c25 --- /dev/null +++ b/appender/timescaledb/src/main/java/org/apache/karaf/decanter/appender/timescaledb/TimescaleDbAppender.java @@ -0,0 +1,122 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in
[jira] [Commented] (KARAF-5976) Add TimescaleDB appender
[ https://issues.apache.org/jira/browse/KARAF-5976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16674668#comment-16674668 ] ASF subversion and git services commented on KARAF-5976: Commit 9e3e58d9161200b5106eb34ace2c43cb96ec482f in karaf-decanter's branch refs/heads/master from [~fpapon] [ https://gitbox.apache.org/repos/asf?p=karaf-decanter.git;h=9e3e58d ] [KARAF-5976] Add TimescaleDB appender > Add TimescaleDB appender > > > Key: KARAF-5976 > URL: https://issues.apache.org/jira/browse/KARAF-5976 > Project: Karaf > Issue Type: Improvement > Components: decanter >Reporter: Francois Papon >Assignee: Francois Papon >Priority: Major > Fix For: decanter-2.2.0 > > > TimescaleDB is an open source time-series database powered by PostgreSQL. > We could add an appender to store collected data into a TimescaleDB database. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (KARAF-5976) Add TimescaleDB appender
[ https://issues.apache.org/jira/browse/KARAF-5976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16674670#comment-16674670 ] ASF subversion and git services commented on KARAF-5976: Commit aea9f002312a89b8a745c211b2dfe6b9b5f2 in karaf-decanter's branch refs/heads/master from [~j...@nanthrax.net] [ https://gitbox.apache.org/repos/asf?p=karaf-decanter.git;h=aea9f00 ] Merge pull request #58 from fpapon/KARAF-5976 [KARAF-5976] Add TimescaleDB appender > Add TimescaleDB appender > > > Key: KARAF-5976 > URL: https://issues.apache.org/jira/browse/KARAF-5976 > Project: Karaf > Issue Type: Improvement > Components: decanter >Reporter: Francois Papon >Assignee: Francois Papon >Priority: Major > Fix For: decanter-2.2.0 > > > TimescaleDB is an open source time-series database powered by PostgreSQL. > We could add an appender to store collected data into a TimescaleDB database. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (KARAF-5976) Add TimescaleDB appender
[ https://issues.apache.org/jira/browse/KARAF-5976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16672903#comment-16672903 ] ASF GitHub Bot commented on KARAF-5976: --- fpapon opened a new pull request #58: [KARAF-5976] Add TimescaleDB appender URL: https://github.com/apache/karaf-decanter/pull/58 Can you review please ? This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Add TimescaleDB appender > > > Key: KARAF-5976 > URL: https://issues.apache.org/jira/browse/KARAF-5976 > Project: Karaf > Issue Type: Improvement > Components: decanter >Reporter: Francois Papon >Assignee: Francois Papon >Priority: Major > Fix For: decanter-2.2.0 > > > TimescaleDB is an open source time-series database powered by PostgreSQL. > We could add an appender to store collected data into a TimescaleDB database. -- This message was sent by Atlassian JIRA (v7.6.3#76005)