file.name":"module/wrapper.go","file.line":259},"message":"Error fetching data for metricset kibana.status: error making http request: Get \"https://kibana/api/status\": x509: certificate signed by unknown authority

Im using fleet server and elastic agent to monitoring kibana, i have cert error
fleet server is running in a container
bootstrap with ansible

 env:
      FLEET_SERVER_ENABLE: "1"
      FLEET_URL: "{{ docker_fleet_server_url }}"  
      FLEET_CA: "/usr/share/elastic-agent/ca.crt"
      ELASTICSEARCH_HOST: "{{ docker_fleet_server_es_host }}"
      FLEET_SERVER_SERVICE_TOKEN: "{{ docker_fleet_server_service_token }}"
      FLEET_SERVER_ELASTICSEARCH_CA: "/usr/share/elastic-agent/ca.crt"
      FLEET_SERVER_CERT: "/usr/share/elastic-agent/{{ docker_fleet_server_name }}.crt"
      FLEET_SERVER_CERT_KEY: "/usr/share/elastic-agent/{{ docker_fleet_server_name }}.key"
      FLEET_SERVER_POLICY_ID: "{{ docker_fleet_policy_id }}"

elastic agent is running normal:

elastic-agent install --force --url=https://ip:8220 --enrollment-token=token --certificate-authorities=/opt/elastic-agent/certs/ca.crt

what im missing ?

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