Griesbacher / histou

Adds templates to Grafana in combination with nagflux
GNU General Public License v2.0
35 stars 16 forks source link

use “fill(previous)” instead of “fill(null)” in histou application while querying influxdb timeseries database #36

Open kaushalshriyan opened 4 years ago

kaushalshriyan commented 4 years ago

Hi Philip Griesbacher,

I am referring to https://support.nagios.com/kb/article/nagios-core-performance-graphs-using-influxdb-nagflux-grafana-histou-802.html I am currently facing issue with the setup. For example, is there a way to run SQL query in InfluxDB for the time period between 17:20 till 18:00 where there is no data? For example http://externalIP:3000/dashboard/script/histou.js?orgId=1&host=dublin-dmz-non-dmz-cszk1.testmoconnect.io&service=Check%20Disk&refresh=30s&fullscreen&edit&panelId=1 I see the below issue.

Screenshot 2020-02-09 at 10 58 31 PM

Is there a way to use “fill(previous)” instead of “fill(null)”, which is the default one in histou application https://github.com/Griesbacher/histou as per the below screenshot?

grafanadashboard

Please let me know if you need any additional information and I look forward to hearing from you. Thanks in advance.

Best Regards,

Kaushal

kaushalshriyan commented 4 years ago

@Griesbacher Checking in if you had a chance to look at the issue. I look forward to hearing from you. Much appreciated for your help and thanks in advance.

Best Regards,

Kaushal

kaushalshriyandac commented 4 years ago

@Griesbacher Checking in again if you got a chance to look at this issue.

kaushalshriyan commented 4 years ago

@Griesbacher Checking in again if you had a chance to look at the issue. Thanks in Advance.

Griesbacher commented 4 years ago

Hi, sorry I'm not actively working on Histou. You could create custom simple templates and change the fill behavior, like here: https://github.com/Griesbacher/histou/blob/master/templates/default/ping.simple.example#L54

kaushalshriyan commented 4 years ago

@Griesbacher I am not sure if I understand it completely. Any examples?

kaushalshriyan commented 4 years ago

@Griesbacher I will appreciate it if you can help me understand with examples. Thanks in Advance. I working hard to fix this task.

Griesbacher commented 4 years ago

The link I've provided is an example, histou generates JSON which will be used as dashboard by Grafana. Therefore you have to change the histou output to match the Grafana config for your desired Dashboard. The line I've marked is for the filling behavior.