-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error getting dashboard #19
Comments
Trouble appears to be https://github.com/stephenyeargin/hubot-grafana/blob/master/src/grafana.coffee#L113 that perhaps the template |
@Seraf can you set:
and see what the output looks like from around that line? I'm curious what those template objects look like from your install. |
|
Well, that wasn't as helpful as I'd hoped it would be. 😞 The JSON response is coming back missing that property, but it seems like that's the most critical piece of information for selecting a templated Dashboard (which you don't appear to be using based on your query). I'll need to dig deeper into it, or at least add more sanity checks around those lines of code to ensure the property exists before trying to use it. |
@stephenyeargin if it can help, here the debug with my variable :
|
Actually, it's I'm not really sure what we are expecting to get from |
So this is what it looks like on http://play.grafana.org/dashboard/db/issue-2534
This will probably need revisiting as more folks use it, but for the time being, I'm going to skip assigning template variables if a |
Fixes #19 Apparently this is not set on every returned value of `dashboard.template.list`, so we shouldn't depend on it when building the string iteroplation array. Skip if not set.
@Seraf Check out |
@stephenyeargin I'm not very comfortable with nodejs, not very sure if I have correctly installed it. I unzipped the zip release into my node_modules directory in /home/admin/hubot where I setup the app. It was missing knox, so I went into the hubot-grafana modules and did a npm install. Then the bot was able to start. When I try the command I have a :
|
I may have Ruby'd when I should have JavaScript'd |
Try |
@stephenyeargin thanks, the 1.4.2 fix my problem, everything works as expected now :) 👍 |
Hello,
First, thanks for this project ! 👍
Grafana version : 2.1.3
I have an error trying to get panels :
Then hubot answers nothing and in the log I get :
But test-dahboard works correctly. I thought it was the parameter $SERVER which was missing, but adding this parameter give exactly the same error
Any idea about this please ?
Thanks
The text was updated successfully, but these errors were encountered: