grafana-gauge-panel icon indicating copy to clipboard operation
grafana-gauge-panel copied to clipboard

Needle stays always at zero

Open na-am opened this issue 6 years ago • 9 comments

Hi@all i'm using latest grafana und installed yesterday d3 gauge plugin datasource is influxdb ( select last(value) from hum )

gauge

the unit is not shown and the correct value of 37.0 isn't formatted at 1 decimal

na-am avatar Feb 07 '19 07:02 na-am

can you show the metric query inspector output?

briangann avatar Feb 08 '19 07:02 briangann

Hi Brian,

hope, thats what you wanted to see: xhrStatus:"complete" request:Object method:"GET" url:"api/datasources/proxy/1/query" params:Object db:"thp" q:"SELECT last(value) FROM hum" epoch:"ms" data:null precision:"ms" response:Object results:Array[1] 0:Object statement_id:0 series:Array[1] 0:Object name:"hum" columns:Array[2] 0:"time" 1:"last" values:Array[1] 0:Array[1549712333926,33]

Von: Brian Gannmailto:[email protected] Gesendet: Freitag, 8. Februar 2019 08:09 An: briangann/grafana-gauge-panelmailto:[email protected] Cc: na-ammailto:[email protected]; Authormailto:[email protected] Betreff: Re: [briangann/grafana-gauge-panel] Needle stays always at zero (#46)

can you show the metric query inspector output?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/briangann/grafana-gauge-panel/issues/46#issuecomment-461711440, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AtNrwxcYcYUKKV3qXDj-DzEDDBa3lxl2ks5vLSKTgaJpZM4amt5y.

na-am avatar Feb 09 '19 11:02 na-am

The response looks fine, can you try creating a new panel with no changes (all default) and the same query?

I made a similar query with influx and it shows the data (with decimals and units)

briangann avatar Feb 09 '19 21:02 briangann

Surprise, surprise, Brian, the needle is moving when I Change the select statement to COUNT!!!


Von: Brian Gann [email protected] Gesendet: Saturday, February 9, 2019 10:20:47 PM An: briangann/grafana-gauge-panel Cc: na-am; Author Betreff: Re: [briangann/grafana-gauge-panel] Needle stays always at zero (#46)

The response looks fine, can you try creating a new panel with no changes (all default) and the same query?

I made a similar query with influx and it shows the data (with decimals and units)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/briangann/grafana-gauge-panel/issues/46#issuecomment-462080435, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AtNrw7sCsw355r1b0feFxvsR4zlBNoqSks5vLzuvgaJpZM4amt5y.

na-am avatar Feb 11 '19 10:02 na-am

image I am getting similar error whenever the value is less than zero, needle stays at bottom. Any idea

vikram-kadian avatar Mar 05 '19 07:03 vikram-kadian

Hi @briangann I have the same issue the gauge always stays at the maximum value. Grafana version: Grafana v6.2.5 (6082d19) D3 gauge version: 0.0.6 Screenshot (36) Limits i have given Min 0 and Max 100. I have tried giving MAX 700 too but still stays at max value

SwathiMuppalla avatar Aug 27 '19 19:08 SwathiMuppalla

Hello, I had same issue and same behaviour, needle moves only when I used count of measurements. Than I found, that the values that I tried to visualize are not integer or float... it was number but saved as string. So check your input if it is real number.

Surprise, surprise, Brian, the needle is moving when I Change the select statement to COUNT!!! ________________________________ Von: Brian Gann [email protected] Gesendet: Saturday, February 9, 2019 10:20:47 PM An: briangann/grafana-gauge-panel Cc: na-am; Author Betreff: Re: [briangann/grafana-gauge-panel] Needle stays always at zero (#46) The response looks fine, can you try creating a new panel with no changes (all default) and the same query? I made a similar query with influx and it shows the data (with decimals and units) — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub<#46 (comment)>, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AtNrw7sCsw355r1b0feFxvsR4zlBNoqSks5vLzuvgaJpZM4amt5y.

pbousek avatar Jun 08 '21 07:06 pbousek

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!

stale[bot] avatar Jul 28 '22 08:07 stale[bot]

(Grafana 9.2.5) I get some strange behaviour dependent on decimals. Here the value is 0.499, and the units set to "Kilowatt (kW)"

When decimals set to "auto":

image

When decimals set to "0":

image

However, with decimals set to "1" the needle position is correct:

image

candlerb avatar Nov 19 '22 18:11 candlerb