exporter-toolkit icon indicating copy to clipboard operation
exporter-toolkit copied to clipboard

response 200 when url is incorrect

Open hailong1004 opened this issue 1 year ago • 1 comments

Host operating system: output of uname -a

Darwin Kernel Version 24.0.0: Mon Aug 12 21:27:44 PDT 2024; root:xnu-11215.1.10~5/RELEASE_ARM64_T8103 arm64

node_exporter version: output of node_exporter --version

node_exporter, version 1.8.2 (branch: HEAD, revision: f1e0e8360aa60b6cb5e5cc1560bed348fc2c1895)

node_exporter command line flags

./node_exporter

node_exporter log output

Are you running node_exporter in Docker?

no

What did you do that produced an error?

➜ ~ curl -Iv http://127.0.0.1:9100/tes

  • Trying 127.0.0.1:9100...
  • Connected to 127.0.0.1 (127.0.0.1) port 9100

HEAD /tes HTTP/1.1 Host: 127.0.0.1:9100 User-Agent: curl/8.7.1 Accept: /

  • Request completely sent off < HTTP/1.1 200 OK HTTP/1.1 200 OK < Content-Type: text/html; charset=UTF-8 Content-Type: text/html; charset=UTF-8 < Date: Thu, 29 Aug 2024 09:41:39 GMT Date: Thu, 29 Aug 2024 09:41:39 GMT < Content-Length: 961 Content-Length: 961

What did you expect to see?

http return 404

What did you see instead?

HTTP returns a 200 status code, which is unusual.

hailong1004 avatar Aug 29 '24 09:08 hailong1004

This is an issue for the exporter toolkit.

SuperQ avatar Aug 31 '24 05:08 SuperQ