bb-Ricardo/fritzinfluxdb

2 minor issues found that need to be fixed!

jimpapi opened this issue · 10 comments

  1. the external ip address that grafana dashboard shows is wrong.
    i also checked the fritzinfluxdb database and also there the external_ip written is wrong. Probably the python files need to be updated
    grafana ip
    fritzbox ip

  2. the other problem might be a dashboard problem.
    the download or upload speed bandwidth is wrong if the dashboard selected time interval is the past 12h or 24h or more than 12h anyway. It is right if the interval is the last 6 hours or less
    right bandwidth
    wrong bandwidth

Hi, thank you for the issue report.

I see the issue with 1) and might have something to do with carrier grade NAT. Can you run the script in DEBUG log level and send me the output from start until all the data is sent to influxdb?

The 2. issue is not really an issue.

This is the way how grafana limits the amount of datapoints displayed per panel.

A bigger timeframe increases the inaccuracy of the displayed data, especially for short peaks.

This is (afaik) a default behavior and can only be changed with a massive trade off in performance, displaying the data.

Cheers
Ricardo

Thank you for the quick responce...i will send it to you soon...
But my log files has all my settings and my personal information....could i send you only the data you need? tell me where to look and what you need....

Hey, just wondering if the issue still persists. Otherwise I would close this issue.

Hello! I have done 1router restart and again…the Ip is different in grafana

Would you be able to provide the logs if you run it with log level DEBUG?

Hi, no I meant the logs from the fritzinfluxdb script with option -v

To elaborate on item 2 from the original report regarding different values depending on the graph's time range: If the database holds one measurement every 10 seconds, that amounts to 8640 measurements over 24 hours. This is impossible to display precisely on all but the highest resolution screens anyway, however, all that data has to be transferred between InfluxDB and Grafana. It improves performance to combine multiple values at the database level and transfer only those aggregates, say one value every minute for 1440 values over a 24-hour period. Grafana can automatically pick a sensible interval depending on the graph width in pixels and its time range by using $__interval in an InfluxQL query like SELECT mean(...) FROM ... WHERE $timeFilter GROUP BY time($__interval) fill(...).

InfluxDB will then calculate the mean (i. e., average) over each interval. The longer the graph's time range, the more raw values get averaged into one transferred aggregate value, so peaks get "ironed out". If one is particularly interested in the peaks, these can be shown regardless of graph width and time range by replacing mean() with max() in the query.

Personally, I find an average over a defined, long-ish interval like an hour or a day quite useful whereas I look more for the peaks in a "show as much detail as the graph width allows" type of graph. Then again, if the time range gets so long that the troughs between the peaks get lost, I would prefer the average. Depending on the data, this may only apply to time ranges spanning several months plus. Most universal, of course, is showing both.

Would anyone be able to provide logs which is behind a carrier grade NAT in oder to be able to Find and extract the correct external IP address?

closing this due to no response.