Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WARN] Found unexpected data from json: version: "1" #86

Closed
perlun opened this issue Mar 17, 2023 · 1 comment
Closed

[WARN] Found unexpected data from json: version: "1" #86

perlun opened this issue Mar 17, 2023 · 1 comment

Comments

@perlun
Copy link

perlun commented Mar 17, 2023

  • Varnish varnish-6.6.1 revision e6a8c860944c4f6a7e1af9f40674ea78bbdcdc66
  • prometheus_varnish_exporter v1.5.1 (dc01100)

I am seeing this error when running the exporter in "console" (foreground) mode:

$ /opt/hibox/prometheus-varnish-exporter/bin/prometheus_varnish_exporter -verbose 
2023/03/16 13:01:04 prometheus_varnish_exporter v1.5.1 (dc01100) {
  "ListenAddress": ":9131",
  "Path": "/metrics",
  "HealthPath": "",
  "VarnishstatExe": "varnishstat",
  "VarnishDockerContainer": "",
  "Params": {
    "Instance": "",
    "VSM": ""
  },
  "Verbose": true,
  "ExitOnErrors": false,
  "Test": false,
  "Raw": false,
  "WithGoMetrics": false
}
2023/03/16 13:01:04 Found varnishstat 6.6.1 e6a8c860944c4f6a7e1af9f40674ea78bbdcdc66
2023/03/16 13:01:04 [WARN] Found unexpected data from json: version: "1"
2023/03/16 13:01:04 Test scrape done in 4.374188ms

The exposed metrics also lack almost everything of interest:

$ curl http://localhost:9131/metrics
# HELP varnish_main_counters 
# TYPE varnish_main_counters gauge
varnish_main_counters 0
# HELP varnish_up Was the last scrape of varnish successful.
# TYPE varnish_up gauge
varnish_up 1
# HELP varnish_version Varnish version information
# TYPE varnish_version gauge
varnish_version{major="6",minor="6",patch="1",revision="e6a8c860944c4f6a7e1af9f40674ea78bbdcdc66",version="6.6.1"} 1

I'll try with a newer version of the exporter now, but filing this anyway. If not for anything else, it might help others running into the same issue.

@perlun
Copy link
Author

perlun commented Mar 17, 2023

I think the answer is easy: I need #64, i.e. a newer version of the exporter.

Upgraded to 1.6.1 and the problem is indeed resolved. 🎉 Closing issue.

@perlun perlun closed this as completed Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant