Skip to content
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

grafana_dashboard can't use it #114

Open
Jerry1488 opened this issue Nov 4, 2016 · 1 comment
Open

grafana_dashboard can't use it #114

Jerry1488 opened this issue Nov 4, 2016 · 1 comment

Comments

@Jerry1488
Copy link

Hi,

I did the simplest init.pp to test grafana_dashboard. I also exported a test dashboard I created in grafana as test.json and put it in grafana/templates. But when I test my module I gete this error:
Error: /Stage[main]/Grafana/Grafana_dashboard[testboard]: Could not evaluate: can't convert Hash into String

I just can't figure out why it's happening, is there a problem with my json file since I exported it directly from grafana I assumed it was ok. If not how should it looks.

Thx!

class grafana {

grafana_dashboard { 'testboard':
grafana_url => 'http://localhost:3000',
grafana_user => 'admin',
grafana_password => 'admin',
content => template('grafana/test.json'),
}
}

@kbon
Copy link

kbon commented Nov 9, 2016

I had the same error on CentOS 6.8. Created #115 with a fix which worked for my case.

bastelfreak pushed a commit to bastelfreak/puppet-grafana that referenced this issue Jun 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants