mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-03-20 12:41:03 +00:00
Signed-off-by: Andrei Kvapil <kvapss@gmail.com> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes - **New Features** - Updated Grafana to version 11.4.0 - Added new Grafana plugins: VictoriaMetrics logs datasource, Natel Discrete Panel, and Worldmap Panel - **Improvements** - Enhanced Grafana image build process - Dynamically manage Grafana image versioning - Updated plugin installation method - **Version Update** - Monitoring package version bumped from 1.7.0 to 1.8.0 <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
27 lines
934 B
Makefile
27 lines
934 B
Makefile
GRAFANA_TAG = $(shell awk '$$1 == "version:" {print $$2}' Chart.yaml)
|
|
|
|
NAME=monitoring
|
|
|
|
include ../../../scripts/common-envs.mk
|
|
include ../../../scripts/package.mk
|
|
|
|
generate:
|
|
readme-generator -v values.yaml -s values.schema.json.tmp -r README.md
|
|
cat values.schema.json.tmp | \
|
|
jq '.properties.metricsStorages.items.type = "object" | .properties.logsStorages.items.type = "object"' \
|
|
> values.schema.json
|
|
rm -f values.schema.json.tmp
|
|
|
|
image:
|
|
docker buildx build --platform linux/amd64 images/grafana \
|
|
--provenance false \
|
|
--tag $(REGISTRY)/grafana:$(call settag,$(GRAFANA_TAG)) \
|
|
--cache-from type=registry,ref=$(REGISTRY)/grafana:latest \
|
|
--cache-to type=inline \
|
|
--metadata-file images/grafana.json \
|
|
--push=$(PUSH) \
|
|
--load=$(LOAD)
|
|
echo "$(REGISTRY)/grafana:$(call settag,$(GRAFANA_TAG))@$$(yq e '."containerimage.digest"' images/grafana.json -o json -r)" \
|
|
> images/grafana.tag
|
|
rm -f images/grafana.json
|