I’ve installed openHAB, influxdb, kapacitor and Chronograf in containers. I would like to store the logs coming from OH container into a influxdb database, in order to see this metric in Chronograf.
Any suggestion how to do that? I expect to use Telegraf …
What kind of data exactly are you looking for? The openHAB logs provide no metrics, only events, errors and rule generated custom entries.
I assume you are interested in resource usage information, like CPU, memory, threads, I/O, uptime, etc.? The plugin mentioned by @csi_oh would be a good starting point in that case.
I don’t use Chronograf’s log viewer, since I only run Chronograf during development for input monitoring.
Also, common logs are perfectly fine for me during testing with “tail -F”-ing .
Now I’m using Telegraf to collect metrics from docker containers (cpu, mem, …) I have an issue with Disk IO data (not able to collect), I’m working on it.
Maybe I need another Telegraf container to collect logs from Rsyslog to influxdb. It seems much more effective. Unfortunately I can’t redirect a single input to a different database with Telegraf, if I well understood
edit: not correct, it seems “namepass” should do the trick …