Apache tomcat module

Hello team,
We configured apache module in our server but we are able to get only below two types of message in our ELK.
Can any one please help on this

Error:

  1. HTTP error 404 in : 404
  2. error making http request: Post http://localhost:8080/jolokia/%3FignoreErrors=true&canonicalNaming=false: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

Config:

metricbeat.modules:
- module: tomcat
  metricsets: ['threading', 'cache', 'memory', 'requests']
  period: 10s
  hosts: ['localhost:8080'] 
  path: "/jolokia/?ignoreErrors=true&canonicalNaming=false"

also used hosts: ['https://localhost:8080']