chronograf icon indicating copy to clipboard operation
chronograf copied to clipboard

Kapacitor rule graph isn't displaying the threshold value

Open rkuchan opened this issue 9 years ago • 5 comments

In previous versions, I was able to see the threshold value on the graph on the alert creation page. Now, the graph hops around when I set a threshold and I can't see the value on the graph.

(I think I've seen this before. Maybe related to https://github.com/influxdata/chronograf/pull/926?)

Repro steps

On the rules page:

Step 1: Select a Time Series

I used:

SELECT "usage_idle" FROM "telegraf"."autogen"."cpu" WHERE time > now() - 15m

Step 2: Define a simple threshold rule

I did: image

Step 3: Look at the graph and feel a deep emptiness

image

rkuchan avatar Mar 21 '17 20:03 rkuchan

@rkuchan I'm not able to reproduce this on master.

goller avatar Mar 24 '17 20:03 goller

Looks like this might only be an issue on chrome.

nhaugo avatar Mar 27 '17 21:03 nhaugo

Might be related to https://github.com/influxdata/chronograf/pull/882 also

jaredscheib avatar Mar 30 '17 00:03 jaredscheib

@nhaugo @rkuchan This is what I get after following the above reproduction steps on master: screen shot 2017-03-30 at 9 42 49 am

lukevmorris avatar Mar 30 '17 16:03 lukevmorris

Ok, found it. The graph will look fine if you're creating or updating a RuleAlert, but the issue seems to appear after refreshing the page, and only if the defined threshold is far lower or far greater than the nominal range of values. I believe that Dygraphs is correctly drawing the overlay, but is not recalculating the range of the y-axis to show it.

Additionally, after reloading the page and focusing the threshold input, simply moving your text cursor left and right will force the graph to recalculate and make the overlay appear. Fixing this is simple, and I have a PR incoming.

lukevmorris avatar May 05 '17 21:05 lukevmorris