Add dashboard JSON -> configMap conversion scripts + source JSON files #1155
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Editing Grafana dashboard JSON content directly from their configMaps is really awkward. It's much easier just to edit dashboard in Grafana, save the resulting JSON, use and the script(s) in this PR to convert it into a suitable configMap.
This adds conversion scripts for use with KubeAI and Helm dashboard chart. When used with Helm, there needs to be some additional (chart specific) changes for the configMaps and their contents, so these are separate scripts.
JSON files matching the current configMap contents are also included. That way they can be used also with Docker installs, and compared against corresponding dashboard JSON specs in the GenAIEval repository: https://github.com/opea-project/GenAIEval/tree/main/evals/benchmark/grafana
Issues
n/a.Type of change
Dependencies
n/a.Tests
Manually tested that using the scripts with the included JSON files produces (nearly) identical configMap files.