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_datasource - support for organizations per given account #100

Open
nvtkaszpir opened this issue Jun 19, 2016 · 3 comments
Open

grafana_datasource - support for organizations per given account #100

nvtkaszpir opened this issue Jun 19, 2016 · 3 comments

Comments

@nvtkaszpir
Copy link

If grafana_datasource is used with user account which belongs to few organizations, then grafana_datasource adds data sources to the currently selected organization.

Fix should allow adding specific datasources to the given organization.
Current workaround is to create separate accounts per organizations.

@simonpasquier
Copy link
Contributor

Something like this?

grafana_datasource { 'influxdb':
  grafana_url       => 'http://localhost:3000',
  grafana_user      => 'admin',
  grafana_password  => '5ecretPassw0rd',
  grafana_org       => 'Acme',
  ...
}

I guess this also applies to the grafana_dashboard resource.

@nvtkaszpir
Copy link
Author

More likely to grafana_org to be id and not the name.

I guess it depends on how grafana treats user loging, it would require more interaction to log in, set org id to given value and then invoke datasource/dashboard creation.

@simonpasquier
Copy link
Contributor

Ok. It might still be interesting to be able to pass the org name, especially if/when a grafana_organization resource exists...

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