Comments (9)
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.
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.
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.
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.
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.
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.
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.
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.
I just pushed v2.4.0 with the ASN function.
Thanks for you push request. Enjoy :)
from npmgrafstats.
Related Issues (20)
- Some domains not working and Map not working HOT 5
- Support for multiple NPM instances HOT 2
- Connection Refused in npmgraf HOT 1
- [SURVEY]: keep map dots or change back to original design? HOT 1
- Map filter domain HOT 3
- Exclude IP from dashboard ? HOT 1
- No Host Specified HOT 7
- Can't seem to work with LePresidente/docker-nginx-proxy-manager HOT 2
- Grafana dashboard issue HOT 3
- Cannot login to InfluxDB HOT 6
- Requests not logging into Influx/Visible in Grafana. HOT 1
- No Issue/More of a feature request HOT 1
- Adding default-host_access.log HOT 1
- AbuseIPDB feature HOT 3
- Not a issue: It can't keep up :) HOT 1
- Support for NPMPlus? HOT 29
- Allow/Block from country HOT 1
- new installation influx empty HOT 9
- [Feature Request] Support Remote NPM Instance HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from npmgrafstats.