Comments (10)
I released v2.3.1. It should fix the need of restarting npmGrafStats.
Just pull the latest image and recreate npmGrafStats. Please let me know if we can close this issue :)
@G3VV i haven't done anything about the spikes. Please also let me know if they persist.
from npmgrafstats.
A workaround has come with v2.2.0.
Restarting the container now doesn't duplicate the logs.
You can create a cron job to restart npmgrafstats to avoid that the collection stops.
from npmgrafstats.
If somebody has any idea with this issue or can help please let me know :)
from npmgrafstats.
Still no update on this? I'm having this issue now every 5 minutes.
Hit's slowly drop from their peak to "No Data", this was fixed with a cron.
What the cron does not fix is the spikes of hit's per minute due to each restart..
from npmgrafstats.
@G3VV Sorry still not. Every 5 minutes seems to be too quick for my liking. In my use it happens about every 7 days with about 50 domains. The vm has for testing 4 GB Ram.
Can you share something about your system? Maybe i can narrow it down a bit better? Ram usage and number of domains?
I will have a look at the spikes.
from npmgrafstats.
@G3VV Sorry still not. Every 5 minutes seems to be too quick for my liking. In my use it happens about every 7 days with about 50 domains. The vm has for testing 4 GB Ram. Can you share something about your system? Maybe i can narrow it down a bit better? Ram usage and number of domains?
I will have a look at the spikes.
My proxy server is 8GB with 4 cores, i have 210 proxy hosts.
About 5 minutes after restarting the npmgraf docker the "Hit's in the last 5 minutes" will drop to "No Data" along-side all other information ceasing to update? I've looked at logs on all services and nothing shows any errors?
from npmgrafstats.
You can create a cron job to restart npmgrafstats to avoid that the collection stops.
Is there a nice way to do so in Docker?
I have checked the code and thought about it.
My first Idea: The problem could be in https://github.com/smilebasti/npmGrafStats/blob/main/Getipinfo.py#L122 . The Syncronus write would maye stop the whole process if Influxdb is not responding.
Solution: Set some kind of timeout to this operation or make it async. Async would be easy to do (https://github.com/smilebasti/npmGrafStats/blob/main/Getipinfo.py#L95). Maybe you could try this and add it to the image.
from npmgrafstats.
@bam91 Thanks for the ideas. I will test them.
I am also currently testing if it's a problem with not closing the connection after the data is written to InfluxDB. Will update when something works.
from npmgrafstats.
Closing the connection to InfluxDB after the data was sent seemed to help.
Now I had it stop working when the logs rotated. I will try tail -F
instead of tail -f
. That will be easier to test than the connection limit.
If it works I can push a preview/test image with the fix in a couple of days.
from npmgrafstats.
With no feedback and my experience that npmgrafstats now runs without interruptions i will close this issue.
Don't hesitate to comment/feedback on this issue or just open a new one.
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
- [Request] Whois integration HOT 9
- 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.