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

Illegal host header , invalid host #80

Open
linuxhub opened this issue Oct 22, 2019 · 4 comments
Open

Illegal host header , invalid host #80

linuxhub opened this issue Oct 22, 2019 · 4 comments

Comments

@linuxhub
Copy link

linuxhub commented Oct 22, 2019

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
Copy link
Author

linuxhub commented Oct 22, 2019

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

@sysulq
Copy link
Owner

sysulq commented Oct 22, 2019

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

It is suggested to adjust nginx configuration to solve this problem

@panhow
Copy link

panhow commented Sep 29, 2020

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

It is suggested to adjust nginx configuration to solve this problem

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

@sysulq
Copy link
Owner

sysulq commented Sep 30, 2020

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

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

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

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

3 participants