I renamed postgresql.yml.disabled to postgresql.yml inside of /etc/metricbeat/modules.d/ directory, followed by restarting of metricbeat.service per following:
I probably didn't made myself clear at the first place, perhaps metricbeat works just fine and maybe my main issue is more with Kibana rather then metricbeat. I'm don't see anything in relates to Postgresql inside of visualize and/or dashboard inside of Kibana.
Can you check the log for lines that have "non-zero". This line has metrics in it that will say how many events or errors were produced by each metricset. And how many events were published to the output.
If there were events published they should be showing up in the Discover tab on Kibana when you query for metricset.module: postgresql.
That log statement indicates that metricbeat is failing when getting the metrics from the DB. The errors should be sent to elasticsearch. This is probably where the message above is from (full field name should be error.message).
I think this means you need to disable SSL. Try a URL like postgres://localhost:40001?sslmode=disable.
Regarding the dashboards, did you install them? What version of ES and Kibana are you using?
I don't see anything in our documentation for the module about dashboards so perhaps no one has contributed dashboards for this module yet. Let me check.
I'm also exploring elasticsearch.yml and kibana.yml modules from metricbeat and they're also "missing" dashboards (visualizers), shouldn't at least elasticsearch and kibana have dashboards (visualizers)?
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.