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

Use grizzly with multiple file output jsonnet feature #166

Closed
NicoAdrian opened this issue Aug 30, 2021 · 1 comment
Closed

Use grizzly with multiple file output jsonnet feature #166

NicoAdrian opened this issue Aug 30, 2021 · 1 comment

Comments

@NicoAdrian
Copy link

NicoAdrian commented Aug 30, 2021

I have a jsonnet file and I'm able to generate multiple json file out of it by using the -m option. How can I combine this option with grizzly main file ?
When trying to import my jsonnet file in the grafanaDashboards field, grizzly says that my dashboard has no UID set.

@malcolmholmes
Copy link
Collaborator

When using Jsonnet and Grizzly, you want to render a single Jsonnet tree, so -m doesn't make so much sense here.

The no UID issue is because your JSON for the dashboard isn't reporting a UID - without a UID in the dashboard, Grizzly won't know how to refer to it a second time once it is uploaded. Just add a "uid" element to the root of your dashboard JSON, sticking to alphanum and dashes (I think is the rule).

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