Hello,
I'm going through the observability fundamentals training and for the NGINX metrics section i'm getting this error:
{"log.level":"error","@timestamp":"2022-03-09T00:57:04.303Z","log.origin":{"file.name":"module/wrapper.go","file.line":254},"message":"Error fetching data for metricset nginx.stubstatus: error fetching status: HTTP error 502 in : 502 Bad Gateway","service.name":"metricbeat","ecs.version":"1.6.0"}
the nginx.yml file configure is below:
- module: nginx
#metricsets:
# - stubstatus
period: 10s
# Nginx hosts
hosts: ["http://127.0.0.1"]
# Path to server status. Default nginx_status
#server_status_path: "nginx_status"
username: "training"
password: "nonprodpwd"