Comments (1)
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)
- Most topics are ignored, others are randomly parsed HOT 3
- continuosly refresh if dashboard refresh time is set
- MQTT-DataSource - Transform - Extract fields
- Variable Filters while using MQTT Datasource HOT 1
- EMQX HOT 1
- Allow parsing of '+' topic into fields HOT 1
- Multiple Queries in 1 Panel HOT 2
- Official Grafana container: Cannot add data source (An unexpected error happened: Minified React error #130)
- README with working build instruction? HOT 1
- Bug with plugin when mapping docker volume on external drive for /var/lib/grafana
- Topic wildcards ('#' and '+') don't seem to be supported. Are they? HOT 1
- Seems to only get data as integer when it is actually published with decimals.
- Not working HOT 3
- Non ASCII characters in topic names not handled well when creating datasource channel id HOT 1
- MQTT CLIENT ID HOT 1
- Feature Request: Allow uploading CA certificate details
- Support od space characters in topics name
- Build fails / dependency grafana-toolkit HOT 1
- No data in mqtt HOT 8
- can't display last data if topic not refreshed
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 mqtt-datasource.