Elastic Agent's elasticsearch integration SSL settings does not work with self-signed cert

I uses elastic agent to monitor elasticsearch, kibana, logstash and postgresql. Elastic Agent can send all monitoring data to elasticsearch excluding elasticsearch metrics data.

This is my elasticsearch integration metrics settings

 "elasticsearch-elasticsearch/metrics": {
      "enabled": true,
      "vars": {
        "password": "...",
        "hosts": [
          "https://es01:9200"
        ],
        "scope": "cluster",
        "leaderelection": false,
        "ssl": "verification_mode: none",
        "username": "..."
      },

This is my cluster status and logs

After i disabled elasticsearch integration metrics, i did not receive any warnings and errors anymore.

Already set all SSL settings in elasticsearch integration, but it did not fix the problem. Then i chose to follow How do I add a CA root certificate inside a docker image?

Hi @Kelvin_Chan

I think it should perhaps look like

"elasticsearch-elasticsearch/metrics": {
      "enabled": true,
      "vars": {
        "hosts": [
          "http://localhost:9200"
        ],
        "scope": "node",
        "ssl": "verification_mode: \"none\"",
        "leaderelection": false
      },

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.