Open zajdee opened 4 years ago
@zajdee
Thanks for reporting.
The resolve
option in upstream block is being used, are you using nginx commercial version?
Or, please let me know the 3rd party module(resolve
) you are using.
The option is probably suspicious, so I'll try to reproduce it.
Hi all,
considering the last commit was some 2 years ago, this issue is logged just to keep the evidence for others potentially seeing the same issue.
From time to time we are seeing weird output when fetching data from the VTS module using the VTS exporter - both Prometheus and regular (JSON) data in the
::nogroups
upstream list. The weirdness means it's either a gibberish (binary data) or a weird upstream name, which looks like some data copied over from a HTTP request.It is unclear if this is some bug (memory leak?) in the VTS module or in
nginx
itself. A similar (same?) issue has been previously briefly mentioned by @dkrutsko in https://github.com/vozlt/nginx-module-vts/issues/170#issuecomment-547081336nginx
version: 1.17.7nginx-module-vts
version - latest commit (46d85558e344dfe2b078ce757fd36c69a1ec2dd3 to date)nginx-vts-exporter
, commit b935b793fbd8478d3feea529b036e753169ddabd (https://github.com/hnlq715/nginx-vts-exporter/commits/master)nginx config (simplified):
Our
/etc/nginx/sites-enabled/status_vts
:We also have a regular
/etc/nginx/sites-enabled/status
module enabled:If I run
curl http://localhost:800/status_hc
there is no gibberish, no extra upstream. But when running eithercurl -s http://localhost:8080/status/format/json
orcurl -s http://localhost:8080/metrics
, the gibberish is there:The JSON output fed through
hexdump
looks like: