Comments (7)
Ok. Are you using the container name in a docker network?
Can you please test it again with an IP address. Either the Host or VM IP or maybe the docker network IP if it's all running in a docker network.
from npmgrafstats.
Hi,
this is not a logs problem.
No host specified
, Traceback (most recent call last): File "/root/.config/NPMGRAF/Getipinfo.py", line 122, in <module>
and the fact that the logs show the Measurement Time (last think before sending them to influx), this seems that the container isn't able to talk to your influxdbv2. Or you haven't set one No host specified
.
Please test your InfluxDBv2 connection.
from npmgrafstats.
npmgraf, influxdb2 and npm are on the same network.
I can reach the webui from npm, so the hostname should be ok.
Also, from npmgraf container i can reach influxdb:
docker compose exec npmgraf sh
# curl influxdb
curl: (7) Failed to connect to influxdb port 80 after 1 ms: Couldn't connect to server
# curl influxdb:8086
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="description" content="InfluxDB is a time series platform, purpose-built by InfluxData for storing metrics and events, provides real-time visibility into stacks, sensors, and systems."><title>InfluxDB</title><base href="/"><base href=""><link rel="icon" href="/favicon.ico"></head><body><div id="react-root" data-basepath=""></div><script defer="defer" src="/fa4773d142.js"></script></body></html>
from npmgrafstats.
Apologies for the lack of replys :)
INFLUX_HOST: 'localip:8086' # use host IP
I think i have progress :)
stats-npmgraf-1 | **************** start *********************
stats-npmgraf-1 | Measurement-name: ReverseProxyConnections
stats-npmgraf-1 | Hungary
stats-npmgraf-1 | Budapest
stats-npmgraf-1 | Budapest
stats-npmgraf-1 | 1125
stats-npmgraf-1 | 19.0947
stats-npmgraf-1 | 47.5636
stats-npmgraf-1 | HU
stats-npmgraf-1 | Outside IP: 46.139.3.54
stats-npmgraf-1 | Target IP: 46.139.3.54
stats-npmgraf-1 | Domain: aguiarvieira.pt
stats-npmgraf-1 | Measurement Time: 2023-09-17T15:33:52+00:00
stats-npmgraf-1 | *************** data send ******************
from npmgrafstats.
That seem`s to work. What was the issue?
One thing is of. The Target IP should be in your network and not the same as Outside. So you have changed the logging sheme for that?
from npmgrafstats.
It seems npmgraft does not like to resolve hostname ->IP when connecting to Influx...
Regarding your question, i don't think i've changed anything, but that specific host is a Matrix host, it's quite complex with many forwards on the advanced that, lots of options, and also specific loggings per location.
from npmgrafstats.
Ah ok. This seems to be a problem with the python package influxdb-client
.
Ok. Then i will close this issue. 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
- 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.