Welcome to the Linux Foundation Forum!

Lab 9.2 error

Options

Hello,
When I start "python2 server.py" it seems Ok:

INFO:root:Starting background task loop...
INFO:root:Performing background task...
INFO:root:Background task completed successfully.
INFO:root:Performing background task...
INFO:root:Background task completed successfully.
INFO:root:Performing background task...127.0.0.1 - - [13/Jun/2022 18:42:28] "GET /metrics HTTP/1.1" 404 -
INFO:root:Background task completed successfully.
127.0.0.1 - - [13/Jun/2022 18:42:33] "GET /metrics HTTP/1.1" 404 -
INFO:root:Performing background task...
INFO:root:Background task completed successfully.
127.0.0.1 - - [13/Jun/2022 18:42:38] "GET /metrics HTTP/1.1" 404 -

But whet I checked the Prometheus with http://my_ip:9090 i can see a new endpoint http://locallhost:12345/metrics but the state is down and the error is
Get "http://localhost:12345/metrics": dial tcp [::1]:12345: connect: connection refused

thank you

Categories

Upcoming Training