nginx-vts-exporter icon indicating copy to clipboard operation
nginx-vts-exporter copied to clipboard

Illegal host header , invalid host

Open linuxhub opened this issue 6 years ago • 4 comments

Illegal host header , invalid host Prometheus many invalid host metrics tag Causes too much influxDB SERIES For example,

curl http://127.0.0.1 -H 'Host: www.linuxhub.org'
curl http://127.0.0.1 -H 'Host: test'
curl http://127.0.0.1 -H 'Host: xxx'

Record a lot of invalid hosts

linuxhub avatar Oct 22 '19 10:10 linuxhub

产生很多乱七八糟 与 nginx service name 无关 host 到 Prometheus , 如果 Prometheus 远端存储 用了 influxDB 存储数据,时间线数量猛增,直接完爆时序数据库。 * 建议加个host正则过滤配置

linuxhub avatar Oct 22 '19 10:10 linuxhub

建议通过规范nginx配置解决这个问题

It is suggested to adjust nginx configuration to solve this problem

sysulq avatar Oct 22 '19 11:10 sysulq

建议通过规范nginx配置解决这个问题

It is suggested to adjust nginx configuration to solve this problem

在使用Kong,Apisix等支持根据动态路由转发流量时,不可避免的会接收到特别的host

panhow avatar Sep 29 '20 12:09 panhow

建议通过规范nginx配置解决这个问题 It is suggested to adjust nginx configuration to solve this problem

在使用Kong,Apisix等支持根据动态路由转发流量时,不可避免的会接收到特别的host

嗯,这个改进可以,欢迎提PR :)

sysulq avatar Sep 30 '20 01:09 sysulq