Giter Site home page Giter Site logo

Comments (1)

Drakynn avatar Drakynn commented on August 21, 2024

I believe I'm also seeing this same condition. Since I'm not sure if this is an issue with the plugin or a core Grafana issue, I'm going to report to both projects.

Here is my environment. It is a fresh build within the last week. My raw data originates from an IoT controller which is monitoring the water level, temp, and humidity in a sump hole. I'm using Grafana to graph the data and generate an alert if the levels exceed a specific value or if there is no data stream.

The following packages are running on Debian 11.2 on a Raspberry Pi4 4GB board however I saw the same issues when running on Debian 11.2 in a VMware guest instance with 8GB of memory on a much more capable machine (CPU).

grafana/stable, now 8.4.3 arm64 (Edit: not resolved with Ver 8.4.4)
mosquitto/stable, now 2.0.11-1 arm64
grafana/mqtt-datasource current version

I have tested Firefox, Safari, and Chrome on macOS 10.15.7 and Firefox and Chrome on Win11. All yield the same result.

Closing the browser while viewing the dashboard causes all collected data to be lost and for the DataSourceNoData alert to be triggered. After about a minute, the Resolved message is received and data collection resumes. Data will continue to collect normally until I open a browser to view the data, where it continues to work right up to the point where the window is closed again - resetting the data and triggering the data loss alarm.

It somewhat defeats the purpose of having a control panel if you can't monitor it at least occasionally. Currently, if I look, I can never close the window.

The grafana.log shows the following relevant entries

logger=context t=2022-03-17T08:38:08-0400 lvl=info msg="Request Completed" method=GET path=/ status=302 remote_addr=192.168.2.10 time_ms=0 size=29 referer=
logger=http.server t=2022-03-17T08:38:24.64-0400 lvl=info msg="Successful Login" User=admin@localhost
logger=context t=2022-03-17T08:38:25.22-0400 lvl=info msg="Request Completed" method=GET path=/api/live/ws status=0 remote_addr=192.168.2.10 time_ms=2 size=0 referer=
logger=plugin.grafana-mqtt-datasource t=2022-03-17T08:39:35.39-0400 lvl=info msg="stop streaming (context canceled)"
logger=alertmanager org=1 level=debug component=dispatcher msg="Received alert" alert=DatasourceNoData[24f10d8][active]
logger=alertmanager org=1 level=debug component=dispatcher aggrGroup="{}/{scope=\"house\"}:{}" msg=flushing alerts=[DatasourceNoData[24f10d8][active]]
logger=alertmanager org=1 level=debug component=dispatcher receiver="House Alert" integration=email[0] msg="Notify success" attempts=1
logger=alertmanager org=1 level=debug component=dispatcher aggrGroup="{}/{scope=\"house\"}:{}" msg=flushing alerts=[DatasourceNoData[24f10d8][resolved]]
logger=alertmanager org=1 level=debug component=dispatcher receiver="House Alert" integration=email[0] msg="Notify success" attempts=1

from mqtt-datasource.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.