Skip to content

Commit

Permalink
Merge pull request #126 from tiithansen/release-zip-file
Browse files Browse the repository at this point in the history
ci: Add feature to release as zip file
  • Loading branch information
tiithansen authored Jan 19, 2025
2 parents 0a10f2f + 7c906e1 commit 497c9e2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/v<version>grafana-k8s-app-v<version>.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:
Expand Down Expand Up @@ -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.

Expand Down

0 comments on commit 497c9e2

Please sign in to comment.