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 Configmap errors #3419

Closed
pieterv-icloud-com opened this issue Apr 15, 2024 · 9 comments · Fixed by #3426
Closed

Grafana Dashboard Configmap errors #3419

pieterv-icloud-com opened this issue Apr 15, 2024 · 9 comments · Fixed by #3426
Assignees

Comments

@pieterv-icloud-com
Copy link

Running:

kubectl apply -f https://github.com/keptn/lifecycle-toolkit/blob/main/dashboards/grafana/configmap/grafana-dashboard-keptn-workloads.yaml

returns the following error:

error: error parsing https://github.com/keptn/lifecycle-toolkit/blob/main/dashboards/grafana/configmap/grafana-dashboard-keptn-workloads.yaml: error converting YAML to JSON: yaml: line 208: mapping values are not allowed in this context
@pieterv-icloud-com
Copy link
Author

All grafana dashboard configmaps cause the same issue

@pieterv-icloud-com pieterv-icloud-com changed the title Grafana Dashboard Configmaps cannot be imported Grafana Dashboard Configmaps errors Apr 15, 2024
@pieterv-icloud-com pieterv-icloud-com changed the title Grafana Dashboard Configmaps errors Grafana Dashboard Configmap errors Apr 15, 2024
@bacherfl bacherfl self-assigned this Apr 16, 2024
@mowies
Copy link
Member

mowies commented Apr 16, 2024

Thanks for posting this! @bacherfl will look into it and check what's going on.

@bacherfl
Copy link
Member

Hi @pieterv-icloud-com ! Thanks for submitting the issue - Please try the kubectl apply command with the URL to the raw file, i.e. like the following:

kubectl apply -f https://raw.githubusercontent.com/keptn/lifecycle-toolkit/main/dashboards/grafana/configmap/grafana-dashboard-keptn-workloads.yaml

@pieterv-icloud-com
Copy link
Author

Thanks for that, I got 2 working now except for this one:

kubectl apply -f https://raw.githubusercontent.com/keptn/lifecycle-toolkit/main/dashboards/grafana/configmap/grafana-dashboard-keptn-applications.yaml
error: error parsing https://raw.githubusercontent.com/keptn/lifecycle-toolkit/main/dashboards/grafana/configmap/grafana-dashboard-keptn-applications.yaml: error converting YAML to JSON: yaml: line 863: did not find expected key

@pieterv-icloud-com
Copy link
Author

Looks like that dashboard is missing some indentation on the dashboard JSON

@bacherfl
Copy link
Member

Looks like that dashboard is missing some indentation on the dashboard JSON

You're right, the formatting was off in that file - I just created a PR that should fix that

@mowies
Copy link
Member

mowies commented Apr 16, 2024

@pieterv-icloud-com the fix PR is merged, please double check if it works for you now and post here if you have any more issues with this :)

@pieterv-icloud-com
Copy link
Author

Thx, just tested this and it works 100% now, thanks for the quick turnaround

@mowies
Copy link
Member

mowies commented Apr 16, 2024

awesome! happy to help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants