Hi Mark,

Elasticsearch collector means that you get data from elasticsearch. Is it what 
you want or more pushing data to elasticsearch (and in that case, it’s the 
elasticsearch appender).

Anyway, I just double checked and it works fine. Here’s what I did:

$ feature:repo-add decanter 2.5.0

# for the decanter elasticsearch collector (getting data from elasticsearch)
$ feature:install decanter-collector-elasticsearch
# edit etc/org.apache.karaf.decanter.collector.elasticsearch.cfg to set 
addresses
# check in component config
$ scr:info org.apache.karaf.decanter.collector.elasticsearch
…
addresses<String> = http://foo:9201 <http://foo:9201/>
...
# in the log, I see
...
Caused by: java.net.UnknownHostException: foo: nodename nor servname provided, 
or not known
...
So it’s correct ;)

# for the decanter elasticsearch appender (pushing data to elasticsearch)
$ feature:install decanter-appender-elasticsearch
# edit etc/org.apache.karaf.decanter.appender.elasticsearch.cfg to set addresses
# check in component config
$ scr:info org.apache.karaf.decanter.appender.elasticsearch
…
addresses<String> = http://foo:9201 <http://foo:9201/>
...
# to test it I’m adding the log collector for instance (just to generate data)
$ feature:install decanter-collector-log
# in the log I see:
…
Caused by: java.net.UnknownHostException: foo
…

So, both works fine.

What Karaf version are you using ? If you use 4.2.9, can you please try with 
4.2.8 ?

Thanks,
Regards
JB

> Le 30 sept. 2020 à 00:49, Mark Bordelon <mborde...@savoirtech.com> a écrit :
> 
> Hello Karaf experts.
> 
> I have followed the documentation 
> http://karaf.apache.org/manual/decanter/latest-2/html/#_prometheus 
> <http://karaf.apache.org/manual/decanter/latest-2/html/#_prometheus> while 
> going through JBO’s blog http://blog.nanthrax.net/?p=715 
> <http://blog.nanthrax.net/?p=715> with his quick start.
> 
> Unfortunately, try as I might, I cannot get the elastic search collector to 
> read the host/port values in my config file 
> org.apache.karaf.decanter.collector.elasticsearch.cfg. The logs show only 
> that localhost:9200 is being read from, and since there is no local elastic 
> search, it fails and doesnt start kibana.
> 
> Here is the important exceprt content of my config file:
> #addresses=http://elasticsearch-vela-1.sit.etrade.com:9200 
> addresses=http://ceng4w100m3.etrade.com:7070/logsearch-sit
> 
> Is a local elastic search absolutely necessary to run kibana on the karaf 
> container?  
> 
> Thanks,
> Mark Bordelon

Reply via email to