Giter Site home page Giter Site logo

Comments (9)

smilebasti avatar smilebasti commented on July 18, 2024

Hi, this seems to be a great addition.
I think the problem would be a rate limit of the whois service. I have about 10-20 Hits per Minute (monitoring and internal calls deactivated) and that seems to much for many api's.
Maybe a cache server could be implemented for that. Maybe someone is able to build this or has thoughts on the performance impact?

You can also query the database maybe with a separate program.

from npmgrafstats.

maxdd avatar maxdd commented on July 18, 2024

Are you concerned that spamming whois command will result in a rate limit on the regional internet registry server? Maybe something like this can help? https://github.com/rioncarter/whois-caching-proxy

My simple idea was to have a python dict or an sql in which I save the ip - registrant pair and search for it before issuing a whois, then push it to influx

from npmgrafstats.

maxdd avatar maxdd commented on July 18, 2024

Actually based on this https://pypi.org/project/geoip2/ it would be sufficient to do

response.autonomous_system_organization

on the ASN database and send it over to influxdb

I'm wondering what added value are giving

response.isp
response.organization
response.domain

from npmgrafstats.

smilebasti avatar smilebasti commented on July 18, 2024

Actually based on this https://pypi.org/project/geoip2/ it would be sufficient to do

response.autonomous_system_organization

on the ASN database and send it over to influxdb

The ASN database is freely available. Not sure if the returned information is the one you want:

 response.autonomous_system_organization = 'Telstra Pty Ltd'

I'm wondering what added value are giving

response.isp
response.organization
response.domain

The ISP and Domain information is not freely available.

from npmgrafstats.

maxdd avatar maxdd commented on July 18, 2024

Yeah, i've update the docker image with the ASN database as well.
I must say that i was expecting a little bit more accuracy, ofc the Lite version is free for a reason.

from npmgrafstats.

smilebasti avatar smilebasti commented on July 18, 2024

Thanks for testing.
As you closed this issue the ASN doesn't add value to implement it as optional addition?

Would the whois approach be more accurate?

from npmgrafstats.

maxdd avatar maxdd commented on July 18, 2024

Thanks for testing. As you closed this issue the ASN doesn't add value to implement it as optional addition?

Would the whois approach be more accurate?

For me it add values because i know from which entity the request comes in so i would definitely keep it and add it every if you don't plan to integrate the ASN.
Regarding the whois approach im struggling to find a service which is more accurate than maxmind although it still lacks unless one uses the non-lite version

from npmgrafstats.

smilebasti avatar smilebasti commented on July 18, 2024

I have no problem with integrating the ASN database as optional feature.

Would you mind opening a pull request and sharing your implementation?

from npmgrafstats.

smilebasti avatar smilebasti commented on July 18, 2024

I just pushed v2.4.0 with the ASN function.

Thanks for you push request. Enjoy :)

from npmgrafstats.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.