This is a modified version of Grafana used by Intergral on FusionReactor Cloud platform.
The update process for Grafana can be complex. If we are updating a new major oor minor version e.g. there is a new maintenance branch for the version like v11.2.x. Then we have to reapply our changes mostly manually. If it is a micro update e.g. v11.2.3, and we have a v11.2.x branch then we can just do a merge.
To update this project when a new version of Grafana is released follow these steps:
- CheckOut this project locally
git checkout [email protected]:intergral/grafana.git
- Add a new remote for the upstream grafana/grafana project
git remote add grafana [email protected]:grafana/grafana.git
- Fetch the upstream tags etc
git fetch grafana
- Create a new branch for the grafana maintenance branch
git checkout -b v11.2.x grafana/v11.2.x
- Push branch to act as our maintenance branch - this is where we will merge into and tag from to release our changes
git push -u orign v11.2.x
- Now create a new branch for us to work from
git branch -b update_v11_2_x origin/v11.2.x
- Now we have to apply our changes to this branch. To do this the easiest way to is to create a patch from
our_changes
branch and apply then to this branch. 8. Create a patch# Checkout the branch with our changes on it git checkout origin/our_changes # Create a patch from our first commit to HEAD git format-patch cb1b5eae81f089fe039495895da8c298d665d618..HEAD --stdout > our_changes.patch # Go back to the branch we want to apply the changes to git checkout update_v11_2_x
- Apply the patch
# This will apply as many of our changes as it could. It will create a .rej file for any change it could not apply git apply our_changes.patch --reject
- Now review the output and ensure that all the changes have been applied dealing with any .rej files
- Ensure that all the original workflows are removed and that only our workflow files are included
- Push the changes and create an PR from your new branch to the target maintenance branch e.g.
update_v11_2_x
->v11.2.x
- Review PR, test and make any additional changes
- Once happy merge and tag from the maintenance branch
- We now need to ensure that any additional changes are copied to the
our_changes
branch. This should NOT use merge or rebase.
Below are some changes that we have made for this project vs grafana/grafana
The build workflows have been re worked to support our needs when updating do not accept any changes from upstream.
Grafana is distributed under AGPL-3.0-only. For Apache-2.0 exceptions, see LICENSING.md.