You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by garyhodgson <co...@garyhodgson.com> on 2015/04/09 21:24:44 UTC

Questions regarding Decanter

Hi,

I have a couple of questions regarding Decanter.

When used in multiple instances I found it was useful to add the instance
name as a logged attribute, i.e. the karaf.name system property.  This way
one can filter by instance.  Although it's a trivial change I'd happily
create a pull request via github, but my previous request appeared to go
unanswered.  Are Github PRs used at all? I see some PRs recorded in this
list, but not from the Decanter project. (btw, that PR is closed as the
change was implemented by someone else in parallel).

Regarding instances: I currently have it that each instance has a collector
and an Elasticsearch appender installed, which means that the entire ES
bundle is included.  There was mention in another thread about using an
alternative, lightweight, client to access Elasticsearch, and I just wanted
to mention that this would be a use case where such an option might be
attractive.


My other question is regarding metrics.  I see the JMX metrics being stored
in Elasticsearch, how are people presenting this information? via Kibana? 
Up until now I have been running a Graphite Server + Grafana for metrics
(with ES + Kibana + Logstash for logging).  I thought it might be an
attractive option to be able to include some kind of Grafana + Time Series
DB as a feature.  My initial research led me to KairosDB which works nicely
with Grafana, and being Java based may be a candidate for wrapping as a OSGI
bundle.  (My initial attempt to do this has not yet been successful, but
that is probably due to my relative inexperience in wrapping existing
applications - although it's use of Guice may also be being problematic :/). 
Kairos has the advantage that it can be backed by H2 or Cassandra, the
latter being also runnable on Karaf I believe.

So, the actual question: has anyone already considered such a metrics
solution? Is it desirable? feasible?


Best regards,

Gary



--
View this message in context: http://karaf.922171.n3.nabble.com/Questions-regarding-Decanter-tp4039542.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.

Re: Questions regarding Decanter

Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi,

sorry for screwing with Johnzon, should have checked that beforehand.
I reverted those commits.

regards, Achim


2015-04-10 22:36 GMT+02:00 garyhodgson <co...@garyhodgson.com>:

> Hello everyone,
>
> Thanks for the prompt responses!  A couple of things to mention.
>
> I just raised KARAF-3655 as it seems a recent commit has broken the ES
> appender and I had problems when I attempted to update to the latest
> version.
>
> @JB, "you don't have to install an elasticsearch instance in each Karaf
> instance" - sorry I wasn't clear, I was referring to the
> "org.apache.servicemix.bundles.elasticsearch" bundle rather than the
> complete ES instance.  On further  consideration I guess the additional
> 20MB
> it adds is acceptable, particularly when there is no suitable alternative.
>
> @Achim, regarding the suitability of bundling Cassandra in Karaf, I tend to
> agree.  The attraction of KairosDB was largely down to it being able to use
> H2.  My thinking so far is that any embedded metrics features would be
> small-scale, and local to the Karaf instance, dealing with much smaller
> quantities and possibly shorter timescales.  Anything more would certainly
> require a dedicated architecture behind it.
>
>
> I'll get the instance name PR up in short order, and will keep you informed
> of any interesting progress.
>
> Best regards,
> Gary
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Questions-regarding-Decanter-tp4039542p4039556.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

Re: Questions regarding Decanter

Posted by garyhodgson <co...@garyhodgson.com>.
Hello everyone,

Thanks for the prompt responses!  A couple of things to mention.

I just raised KARAF-3655 as it seems a recent commit has broken the ES
appender and I had problems when I attempted to update to the latest
version.

@JB, "you don't have to install an elasticsearch instance in each Karaf
instance" - sorry I wasn't clear, I was referring to the
"org.apache.servicemix.bundles.elasticsearch" bundle rather than the
complete ES instance.  On further  consideration I guess the additional 20MB
it adds is acceptable, particularly when there is no suitable alternative.

@Achim, regarding the suitability of bundling Cassandra in Karaf, I tend to
agree.  The attraction of KairosDB was largely down to it being able to use
H2.  My thinking so far is that any embedded metrics features would be
small-scale, and local to the Karaf instance, dealing with much smaller
quantities and possibly shorter timescales.  Anything more would certainly
require a dedicated architecture behind it.


I'll get the instance name PR up in short order, and will keep you informed
of any interesting progress.

Best regards,
Gary



--
View this message in context: http://karaf.922171.n3.nabble.com/Questions-regarding-Decanter-tp4039542p4039556.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.

Re: Questions regarding Decanter

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Gary,

First, thanks for your interest in Decanter.

Please, see my comments inline:

> When used in multiple instances I found it was useful to add the instance
> name as a logged attribute, i.e. the karaf.name system property.  This way
> one can filter by instance.  Although it's a trivial change I'd happily
> create a pull request via github, but my previous request appeared to go
> unanswered.  Are Github PRs used at all? I see some PRs recorded in this
> list, but not from the Decanter project. (btw, that PR is closed as the
> change was implemented by someone else in parallel).

Yes, PR is fine for Decanter: decanter is on Apache git-wip and with a 
mirror on github.

>
> Regarding instances: I currently have it that each instance has a collector
> and an Elasticsearch appender installed, which means that the entire ES
> bundle is included.  There was mention in another thread about using an
> alternative, lightweight, client to access Elasticsearch, and I just wanted
> to mention that this would be a use case where such an option might be
> attractive.

The elasticsearch-appender is an elasticsearch client: you don't have to 
install an elasticsearch instance in each Karaf instance. The appender 
can use a "remote" elasticsearch instance.

>
>
> My other question is regarding metrics.  I see the JMX metrics being stored
> in Elasticsearch, how are people presenting this information? via Kibana?
> Up until now I have been running a Graphite Server + Grafana for metrics
> (with ES + Kibana + Logstash for logging).  I thought it might be an
> attractive option to be able to include some kind of Grafana + Time Series
> DB as a feature.  My initial research led me to KairosDB which works nicely
> with Grafana, and being Java based may be a candidate for wrapping as a OSGI
> bundle.  (My initial attempt to do this has not yet been successful, but
> that is probably due to my relative inexperience in wrapping existing
> applications - although it's use of Guice may also be being problematic :/).
> Kairos has the advantage that it can be backed by H2 or Cassandra, the
> latter being also runnable on Karaf I believe.
>
> So, the actual question: has anyone already considered such a metrics
> solution? Is it desirable? feasible?

Right now we use Kibana for the dashboard. The Decanter Console is in 
preparation, especially to define the SLA and alerts.
Grafana looks interesting. For Kairos, I can create the bundle at 
ServiceMix.
This feature would be interesting, however, we just have to be careful 
to not focus too much on one direction: Decanter has to be generic, and 
can use very different appender. So, we should avoid to tight too much 
the dashboard/console with the appenders backends (and it's a challenge ;)).

Regards
JB

>
>
> Best regards,
>
> Gary
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Questions-regarding-Decanter-tp4039542.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Questions regarding Decanter

Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi Gary,

comments inline :)

regards, Achim


2015-04-09 21:24 GMT+02:00 garyhodgson <co...@garyhodgson.com>:

> Hi,
>
> I have a couple of questions regarding Decanter.
>
> When used in multiple instances I found it was useful to add the instance
> name as a logged attribute, i.e. the karaf.name system property.  This way
> one can filter by instance.  Although it's a trivial change I'd happily
> create a pull request via github, but my previous request appeared to go
> unanswered.  Are Github PRs used at all? I see some PRs recorded in this
> list, but not from the Decanter project. (btw, that PR is closed as the
> change was implemented by someone else in parallel).
>

yeah PR are still the preferred way to contribute, though I'm not sure why
we don't have
notification mails for the decanter project right now.
Sorry about your last PR looks like we missed it. At least it's nice it has
been included
in another PR.
Sounds like a reasonable extension to have the karaf.name in the indexes so
give us a pull request
and maybe a hint on the mailinglist since the notification doesn't work yet
;)


>
> Regarding instances: I currently have it that each instance has a collector
> and an Elasticsearch appender installed, which means that the entire ES
> bundle is included.  There was mention in another thread about using an
> alternative, lightweight, client to access Elasticsearch, and I just wanted
> to mention that this would be a use case where such an option might be
> attractive.
>

Ok, we just need to make sure we don't re-invent the logstash wheel ;)


>
>
> My other question is regarding metrics.  I see the JMX metrics being stored
> in Elasticsearch, how are people presenting this information? via Kibana?
>

till now yes :)


> Up until now I have been running a Graphite Server + Grafana for metrics
> (with ES + Kibana + Logstash for logging).  I thought it might be an
> attractive option to be able to include some kind of Grafana + Time Series
> DB as a feature.  My initial research led me to KairosDB which works nicely
> with Grafana, and being Java based may be a candidate for wrapping as a
> OSGI
> bundle.  (My initial attempt to do this has not yet been successful, but
> that is probably due to my relative inexperience in wrapping existing
> applications - although it's use of Guice may also be being problematic
> :/).
> Kairos has the advantage that it can be backed by H2 or Cassandra, the
> latter being also runnable on Karaf I believe.
>

The idea behind decanter is to be able to use different appenders, so one
could pump
data into a cassandra DB. Even though I build that showcase I wouldn't
recommend to keep
one running inside Karaf as productive server. It just draws to much memory
from the system.
A dedicated Cassandra Server should be better, but for local systems or
development it's fine to do that.


>
> So, the actual question: has anyone already considered such a metrics
> solution? Is it desirable? feasible?
>
>
Is it desirable ... don't know, but it sounds like a fun project and a
use-case which might already
fit your needs to go for it and give it a shot. If you find it's not worth
it let us know why ;)
If it turns out to be the best you ever did, give us a PR :D


>
> Best regards,
>
> Gary
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Questions-regarding-Decanter-tp4039542.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

Re: Questions regarding Decanter

Posted by Christian Schneider <ch...@die-schneider.net>.

Am 09.04.2015 um 21:24 schrieb garyhodgson:
> Hi,
>
> I have a couple of questions regarding Decanter.
>
>
>
> Regarding instances: I currently have it that each instance has a collector
> and an Elasticsearch appender installed, which means that the entire ES
> bundle is included.  There was mention in another thread about using an
> alternative, lightweight, client to access Elasticsearch, and I just wanted
> to mention that this would be a use case where such an option might be
> attractive.
I worked on an alternative appender for elastic search unfortunately the 
library I used was not very OSGi friendly so I gave it up in the end.
If you know a small connector for elastic search it might really make 
sense to use that.

Christian