I installed metricbeat to provide metrics from postgresql and it works, but main goal was to analize queries in elastic and build dashboard for custom queries.
As I started to configure, any statements from database won't work.
I saw that I should install plugin like jdbc to bring database queries to ELK ?.
What is the best solution ?
Thanks in advance for help.
Metricbeat will only collect metrics related to PostgreSQL instance health like CPU, memory, latency ... etc
if you want to analyse Business data from postgresql database with kibana you should bring your postgresql data into elasticsearch with logstash using jdbc input plugin
last logs from container with logstash
logstash_1 | [2020-11-24T14:34:43,203][INFO ][logstash.javapipeline ][.monitoring-logstash] Pipeline Java execution initialization time {"seconds"=>0.83}
logstash_1 | [2020-11-24T14:34:43,235][INFO ][logstash.javapipeline ][.monitoring-logstash] Pipeline started {"pipeline.id"=>".monitoring-logstash"}
logstash_1 | [2020-11-24T14:34:43,550][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
logstash_1 | [2020-11-24T14:34:45,494][INFO ][logstash.javapipeline ] Pipeline terminated {"pipeline.id"=>".monitoring-logstash"}
logstash_1 | [2020-11-24T14:34:45,589][INFO ][logstash.runner ] Logstash shut down.
logstash_1 | OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.