From 7c906e167a71c849db4f6c1cf8ae005c7a219f4d Mon Sep 17 00:00:00 2001 From: Tiit Hansen Date: Sun, 19 Jan 2025 12:42:45 +0200 Subject: [PATCH] ci: Add feature to release as zip file --- .github/workflows/release.yml | 6 ++++++ README.md | 19 ++++++++++++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bcf41aa..322f88c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -141,6 +141,12 @@ jobs: echo "plugin-version=${GRAFANA_PLUGIN_VERSION}" >> $GITHUB_OUTPUT echo "archive=${GRAFANA_PLUGIN_ARTIFACT}" >> $GITHUB_OUTPUT + - name: Upload release assets + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release create ${{ env.PKG_TAG }} ./dist/* + - name: Log in to the Container registry if: steps.release.outputs.release_created uses: docker/login-action@v3 diff --git a/README.md b/README.md index 338de37..d0e7149 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,23 @@ Metrics and required labels used by application can be found in [metrics.ts](src Add packaged docker image as init container to Grafana deployment. +#### With zip file + +```yaml +grafana: + plugins: + - https://github.com/tiithansen/grafana-k8s-app/releases/download/vgrafana-k8s-app-v.zip;grafana-k8s-app + grafana.ini: + plugins: + # Allow this plugin to be loaded even if it's unsigned + allow_loading_unsigned_plugins: k8s-app + navigation.app_sections: + # Move the plugin from More Apps to Infrastructure in the menu + k8s-app: infrastructure +``` + +#### With init container + ```yaml # Init container extraInitContainers: @@ -82,7 +99,7 @@ Allows displaying logs and events from Loki. * Datasource used must support multi-tenant queries where stream label `k8s_cluster_name` is used to select logs from specific tenant. * It is possible to override the default queries per view (Cluster, Node, Pod, Deployment, Statefulset, Daemonset). -##### Sample configuration for k8seventsreceiver +##### Sample configuration for events collection with k8seventsreceiver [Opentelemetry-collector helm chart](https://github.com/open-telemetry/opentelemetry-helm-charts/tree/main/charts/opentelemetry-collector) is used as a parent chart for the following configuration.