This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Increase Grafana graph resolution
#1
Hi,

Last night, i've been playing around with SignalK, influxDB and Grafana. The main goal is to use this openplotter setup for seatrails. What we want to log and show on graphs is the position, heading, heel and pithch of the yacht over a specif time. Now the challenge is, that the resolution of the plotted data in Grafana is about 1 second. Is there a way to get this resolution up to say at least 0.2 seconds?

For now, i don't know where to search. Is it that the signalK pass through influxDB isn't high enough (what is the pass through resolution of signalk?)? Or is it that Grafana doesn't show higher than 1 second?

regards,
Wouter
Reply
#2
The only limits in sensor to Influx are the native update rate of your sensor and db write resolution in InfluxDb plugin settings, defaullt 200 milliseconds. I don’t think Grafana has a limit here, try selecting last 15seconds for example.

So no limits if you configure things correctly.

Use the Logging plugin to log your input data independent of InfluxDb to see what your input actually looks like.



Sent from my iPhone using Tapatalk
Reply
#3
ah, thanks for the reply. 

I've tried the logging plugin which was in the list of available apps. But i couldn't locate the log-files. Do you know were I can find them?

If you mean the logging incoorperated in the "Server-tab" of the signalk web page (i.e. Data log files), i've found these files. And also i've attached one here. The times stamp doesn't make any sense to me. But when I count the amount of lines in this file, it seems that the logging is every 0.5 seconds. But somehow I cannot see this in the Grafana page?

Also, as you indicated, the logging should be about 0.2s? 

regards,
Wouter


Attached Files
.zip   skserver-raw_2020-02-06T22.zip (Size: 118.88 KB / Downloads: 159)
Reply
#4
(2020-02-27, 01:19 PM)Vic Wrote: If you mean the logging incoorperated in the "Server-tab" of the signalk web page (i.e. Data log files), i've found these files. And also i've attached one here. The times stamp doesn't make any sense to me. But when I count the amount of lines in this file, it seems that the logging is every 0.5 seconds. But somehow I cannot see this in the Grafana page?

Also, as you indicated, the logging should be about 0.2s? 

The timestamps are milliseconds since Jan 1st 1970. See for example https://currentmillis.com/ Yes, they show data every 0.5 seconds.

200 ms is the minimum interval of data per path written to InfluxDb. If your sensor produces data every 500 milliseconds all of it is written - the limit only concerns data that is produced more often than at 200 ms intervals.

Did you check that the setting is at default in the plugin configuration?

If you zoom in in Grafana so that time span is just some seconds what does your data look like? Have you tried turning on "Points" in visualization properties?

Running out of ideas, works ok for me with sub second sample intervals.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)