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

Field "Name" missing when applying datasource #181

Closed
tenstad opened this issue Oct 19, 2021 · 1 comment
Closed

Field "Name" missing when applying datasource #181

tenstad opened this issue Oct 19, 2021 · 1 comment

Comments

@tenstad
Copy link
Contributor

tenstad commented Oct 19, 2021

Error

Non-200 response from Grafana while applying datasource prometheus: 422 Unprocessable Entity [{"fieldNames":["Name"],"classification":"RequiredError","message":"Required"}]

How to reproduce

In the examples/ folder, run grr apply grr.jsonnet.

Suggested solution

Add spec["name"] = m.Metadata().Name() below spec["uid"] = m.Metadata().Name().

@tenstad tenstad changed the title Field "Name" missing when appying datasource Field "Name" missing when applying datasource Oct 23, 2021
@malcolmholmes
Copy link
Collaborator

This I believe works now.

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

Successfully merging a pull request may close this issue.

2 participants