2024-03-12 08:25:32 -05:00
|
|
|
# promlib
|
|
|
|
|
|
|
|
Prometheus Library (a.k.a. promlib) is the foundation of the Grafana Prometheus data source backend.
|
|
|
|
|
|
|
|
### How to tag/version?
|
|
|
|
|
|
|
|
- Checkout the commit you want to tag (`git checkout <COMMIT_SHA>`)
|
2024-03-22 12:28:22 -05:00
|
|
|
- Run `git tag pkg/promlib/<VERSION>` (For example `git tag pkg/promlib/v0.0.12`)
|
2024-03-12 08:25:32 -05:00
|
|
|
- NOTE: We're using Lightweight Tags, so no other options are required
|
2024-03-22 12:28:22 -05:00
|
|
|
- Run `git push origin pkg/promlib/<VERSION>`
|
2024-03-12 08:25:32 -05:00
|
|
|
- Verify that the tag was created successfully [here](https://github.com/grafana/grafana/tags)
|
|
|
|
- DO NOT RELEASE anything! Tagging is enough.
|
2024-03-22 12:28:22 -05:00
|
|
|
- After tagging and waiting 5-10 minutes for go module registry to catch up just bump the `promlib` version on `grafana/grafana`
|
|
|
|
- Bumping the version on `grafana/grafana` is not necessary as `grafana/grafana` is using the local version of it always.
|
|
|
|
- **But it is a good practice to do it.**
|