kenhub / giraffe

Giraffe - a graphite dashboard with a long neck

Home Page:http://giraffe.kenhub.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Constant line function fails in Giraffe, but succeeds in Graphite

avnivamsikrishna opened this issue · comments

Hi I have the following configuration code, for some reason it does not work as expected.

//Warning Notifications
var cpu_warn = "constantLine(80)" ;
var memory_warn = "constantLine(1024)";
var throughput_warn = "constantLine(1000)"

{
"alias": "CPU Usage", // display name for this metric
"target": [cpu,"stats.gauges.server1.cpu", cpu_warn],
"description": "CPU usage as a function of time",
"summary": "last",
"summary_formatter": d3.format(",f")
},

However when i tried in graphite it worked without a problem.

  1. Regarding Dark CSS version of Giraffe, Do we have it available? I tried cloning the version of syepes #36., rendering was improper.
  2. In case I would want to parse the URL, where must i write the parsing script, currently i am writing it in config.js which is logically incorrect, Where would the controller be?

Thanks

Sorry, I somehow missed this issue. It looks to me like your dashboards.js isn't configured properly. For example, "target": [cpu,"stats.gauges.server1.cpu", cpu_warn] seems invalid. Please check the documentation and sample dashboards.js file to see how to specify the targets for your graphs.

The issue was that there is a bug in graphite (0.9.12). The constant Line
returns just a single value. There is a work around which i suggested here:
https://github.com/torkelo/grafana/issues/50

On Mon, Feb 10, 2014 at 1:02 PM, gingerlime notifications@github.comwrote:

Closed #52 #52.

Reply to this email directly or view it on GitHubhttps://github.com//issues/52
.

That's useful to know. Thanks.