Charts use fixed intervals based on the selected time range (for 1-day it’s
10 minutes).

Changing the agent interval doesn’t change this, so with a 15-minute
interval for data collection, you may end up with a chart with missing
bars, the only way to find out is to try.
If that happens and you don't want to have missing bars, you could either
lower the interval to 10 minutes, or monkeypatch the code to change this
line:

https://github.com/openwisp/openwisp-monitoring/blob/a01667ba0172dd9c96d95769faa3f95b782ec869/openwisp_monitoring/monitoring/base/models.py#L528

I recently shared on Github Discussions a solution to monkey-patch the
DeviceAdmin class to modify the columns listed in the device list:
https://github.com/openwisp/ansible-openwisp2/discussions/547#discussioncomment-14489173

You can adapt that solution and change the ready() method to do something
like:

AbstractChart.GROUP_MAP["1d"] = "15m"

You may want to ask yourself if it makes sense to have a monitoring system
that gets updates every 15 minutes, which in many deployments could be
considered a long time.
However, it may work for you, so if you think that's the case, you can
adapt the system.

I think we cannot ship a default setup that suits everyone, but we should
definitely make it possible to change the existing behavior whenever
possible.

I hope this helps.

Best regards
Federico Capoano


On Mon, 29 Sept 2025 at 02:24, Logunath K <[email protected]> wrote:

> Dear Team,
>
>                     I wanted to inform you about the behavior of charts
> when modifying the data collection interval in OpenWISP2.
>
> Currently, the interval is set to *300 seconds (5 minutes)*, which means
> the agent sends data to the server every 5 minutes. If we change this value
> to *900 seconds (15 minutes) or *any other value.
>
> “What will be the behavior of the charts if I select a 1-day view, since
> the chart data will be displayed at 10-minute intervals?”
>
> Thanks in advance
>
> Regards,
>
> logu
>
> --
> You received this message because you are subscribed to the Google Groups
> "OpenWISP" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion, visit
> https://groups.google.com/d/msgid/openwisp/CAJy2ivrN3OuBy2_11VgNmEV_Up9cGL9ftefEXbh7aGcm%2BoiStg%40mail.gmail.com
> <https://groups.google.com/d/msgid/openwisp/CAJy2ivrN3OuBy2_11VgNmEV_Up9cGL9ftefEXbh7aGcm%2BoiStg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion, visit 
https://groups.google.com/d/msgid/openwisp/CAAGgX6%2B6kHpbS_gEPcZ%3DEh4nO71K%2BVKm088wVTHM%3DeaujtCiVQ%40mail.gmail.com.

Reply via email to