HubSpot / BuckyServer

Node server that receives metric data over HTTP & forwards to your service of choice
http://github.hubspot.com/bucky
MIT License
194 stars 33 forks source link

Ignore requests from configured ip/hostname/fragment #24

Closed laubsauger closed 8 years ago

laubsauger commented 8 years ago

Use case: Skip internal requests before they are passed to any of the collectors.

zackbloom commented 8 years ago

Can you explain this use case more? Why wouldn't the service sending the logs know not to report if it's in a local environment?

laubsauger commented 8 years ago

Hi, yes of course. Maybe i'm missing something here :)

My current setup is like follows: bucky-client -> gathers metrics -> posts to bucky-server -> posts to InfluxDB -> Grafana etc.

I'd like to detect internal traffic to the productive site much earlier. I just can't see a possibility to determine this in the browser (bucky-client or JS in general). The only clean way i can think of to know if it's an external or internal request is to check for the IP - which JS can't access without hacks.