Skip to content

Commit

Permalink
Update Grafana 11 and dependencies (#40)
Browse files Browse the repository at this point in the history
* Update Grafana 11 and dependencies

* Update actions

* Update jest

* Update packages and README

* Update go and dashboard

* Update dashboard

* Updates

* Update go version

* Update workflow

* Update workflow
  • Loading branch information
mikhail-vl authored Jul 10, 2024
1 parent 9b1996f commit d48dc20
Show file tree
Hide file tree
Showing 18 changed files with 3,695 additions and 4,894 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Node.js environment
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
node-version: "20"
cache: "npm"

- name: Setup Go environment
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: "1.22"

- name: Install dependencies
run: npm install
Expand All @@ -38,6 +38,18 @@ jobs:
- name: Build
run: npm run build

- name: Test backend
uses: magefile/mage-action@v3
with:
version: latest
args: coverage

- name: Build backend
uses: magefile/mage-action@v3
with:
version: latest
args: buildAll

- name: Sign plugin
run: npm run sign
env:
Expand All @@ -60,18 +72,6 @@ jobs:
echo "archive=${GRAFANA_PLUGIN_ARTIFACT}" >> $GITHUB_OUTPUT
echo "archive-checksum=${GRAFANA_PLUGIN_ARTIFACT_CHECKSUM}" >> $GITHUB_OUTPUT
- name: Test backend
uses: magefile/mage-action@v1
with:
version: latest
args: coverage

- name: Build backend
uses: magefile/mage-action@v1
with:
version: latest
args: buildAll

- name: Package plugin
id: package-plugin
run: |
Expand All @@ -81,21 +81,21 @@ jobs:
echo "checksum=$(cat ./${{ steps.metadata.outputs.archive-checksum }} | cut -d' ' -f1)" >> $GITHUB_OUTPUT
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
directory: ./coverage/
files: ./coverage/lcov.info,./coverage/backend.out
env_vars: OS,PYTHON
fail_ci_if_error: false

- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.metadata.outputs.archive }}
path: ${{ steps.metadata.outputs.archive }}

- name: Upload artifact checksum
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.metadata.outputs.archive-checksum }}
path: ${{ steps.metadata.outputs.archive-checksum }}
6 changes: 3 additions & 3 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Node.js environment
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'
cache: 'npm'

- name: Install dependencies
Expand Down
22 changes: 8 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,40 +3,34 @@ name: Release
on:
push:
tags:
- 'v*.*.*' # Run workflow on version tags, e.g. v1.0.0.
- "v*.*.*" # Run workflow on version tags, e.g. v1.0.0.

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Node.js environment
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
node-version: "20"
cache: "npm"

- name: Setup Go environment
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: "1.22"

- name: Install dependencies
run: npm install

- name: Build
run: npm run build

- name: Test backend
uses: magefile/mage-action@v1
with:
version: latest
args: coverage

- name: Build backend
uses: magefile/mage-action@v1
uses: magefile/mage-action@v3
with:
version: latest
args: buildAll
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@

## 4.0.0 (IN PROGRESS)

### Breaking changes

- Requires Grafana 10 and Grafana 11

### Features / Enhancements

- Add plugin e2e tests and remove cypress (#35)
- Updated E2E tests to use Docker (#39)
- Update Grafana 11 dependencies (#40)
- Updated workflow actions (#40)

## 3.1.0 (2023-10-13)

Expand Down
31 changes: 18 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![Dashboard](https://raw.githubusercontent.com/VolkovLabs/volkovlabs-env-datasource/main/src/img/dashboard.png)

![Grafana](https://img.shields.io/badge/Grafana-10.1-orange)
![Grafana](https://img.shields.io/badge/Grafana-11.1-orange)
![CI](https://github.com/volkovlabs/volkovlabs-env-datasource/workflows/CI/badge.svg)
![E2E](https://github.com/volkovlabs/volkovlabs-env-datasource/workflows/E2E/badge.svg)
[![codecov](https://codecov.io/gh/VolkovLabs/volkovlabs-env-datasource/branch/main/graph/badge.svg?token=2W9VR0PG5N)](https://codecov.io/gh/VolkovLabs/volkovlabs-env-datasource)
Expand All @@ -16,16 +16,17 @@ The Environment Data Source is a plugin for Grafana that returns environment var

## Requirements

- Version 3.X requires Grafana 9 or Grafana 10.
- Version 2.X requires Grafana 8.5 or Grafana 9.
- Version 1.X requires Grafana 8.
- Environment Data Source 4.X requires Grafana 10 or Grafana 11.
- Environment Data Source 3.X requires Grafana 9 or Grafana 10.
- Environment Data Source 2.X requires Grafana 8.5 or Grafana 9.
- Environment Data Source 1.X requires Grafana 8.

## Getting Started

Environment Data Source is not included in the Grafana Catalog. It can be installed directly from GitHub.

```bash
grafana cli --pluginUrl https://github.com/VolkovLabs/volkovlabs-env-datasource/releases/download/v3.1.0/volkovlabs-env-datasource-3.1.0.zip plugins install volkovlabs-env-datasource
grafana cli --pluginUrl https://github.com/VolkovLabs/volkovlabs-env-datasource/releases/download/v4.0.0/volkovlabs-env-datasource-4.0.0.zip plugins install volkovlabs-env-datasource
```

## Highlights
Expand All @@ -36,17 +37,21 @@ grafana cli --pluginUrl https://github.com/VolkovLabs/volkovlabs-env-datasource/

## Documentation

| Section | Description |
| ---------------------------- | ------------------------------------------------------------ |
| [Deployment](https://volkovlabs.io/plugins/volkovlabs-env-datasource/deployment/) | Explains deployment options for the data source. |
| [Features](https://volkovlabs.io/plugins/volkovlabs-env-datasource/features/) | Demonstrates data source features. |
| [Provisioning](https://volkovlabs.io/plugins/volkovlabs-env-datasource/provisioning/) | Demonstrates how to automatically provision the data Source. |
| [Release Notes](https://volkovlabs.io/plugins/volkovlabs-env-datasource/release/) | Stay up to date with the latest features and updates. |
| Section | Description |
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------ |
| [Deployment](https://volkovlabs.io/grafana/volkovlabs-env-datasource/deployment/) | Explains deployment options for the data source. |
| [Features](https://volkovlabs.io/grafana/volkovlabs-env-datasource/features/) | Demonstrates data source features. |
| [Provisioning](https://volkovlabs.io/grafana/volkovlabs-env-datasource/provisioning/) | Demonstrates how to automatically provision the data Source. |
| [Release Notes](https://volkovlabs.io/grafana/volkovlabs-env-datasource/release/) | Stay up to date with the latest features and updates. |

## Support
## Feedback

We're looking forward to hearing from you. You can use different ways to get in touch with us.

- Ask a question, request a new feature, and file a bug with [GitHub issues](https://github.com/volkovlabs/volkovlabs-env-datasource/issues).
- Subscribe to our [YouTube Channel](https://www.youtube.com/@volkovlabs) and leave your comments.
- Premium support for the development plugins is available via [GitHub Sponsor](https://github.com/sponsors/VolkovLabs).
- Sponsor our open-source plugins for Grafana with [GitHub Sponsor](https://github.com/sponsors/VolkovLabs).
- Support our project by starring the repository.

## License

Expand Down
24 changes: 0 additions & 24 deletions docker-compose-nginx.yml

This file was deleted.

27 changes: 15 additions & 12 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
module github.com/grafana/grafana-env-datasource-backend

go 1.20
go 1.21

toolchain go1.22.5

require (
github.com/grafana/grafana-plugin-sdk-go v0.183.0
github.com/stretchr/testify v1.8.4
github.com/stretchr/testify v1.9.0
)

require (
github.com/BurntSushi/toml v1.3.2 // indirect
github.com/BurntSushi/toml v1.4.0 // indirect
github.com/apache/arrow/go/v13 v13.0.0 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
Expand All @@ -19,14 +21,15 @@ require (
github.com/cpuguy83/go-md2man/v2 v2.0.3 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/elazarl/goproxy v0.0.0-20230808193330-2592e75ae04a // indirect
github.com/fatih/color v1.15.0 // indirect
github.com/fatih/color v1.17.0 // indirect
github.com/getkin/kin-openapi v0.120.0 // indirect
github.com/go-logr/logr v1.2.4 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-openapi/jsonpointer v0.20.0 // indirect
github.com/go-openapi/swag v0.22.4 // indirect
github.com/goccy/go-json v0.10.2 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/golangci/golangci-lint v1.59.1 // indirect
github.com/google/flatbuffers v23.5.26+incompatible // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/uuid v1.3.1 // indirect
Expand All @@ -46,7 +49,7 @@ require (
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattetti/filebuffer v1.0.1 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.19 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-runewidth v0.0.15 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
Expand All @@ -64,7 +67,7 @@ require (
github.com/prometheus/procfs v0.12.0 // indirect
github.com/rivo/uniseg v0.4.4 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/stretchr/objx v0.5.0 // indirect
github.com/stretchr/objx v0.5.2 // indirect
github.com/unknwon/bra v0.0.0-20200517080246-1e3013ecaff8 // indirect
github.com/unknwon/com v1.0.1 // indirect
github.com/unknwon/log v0.0.0-20200308114134-929b1006e34a // indirect
Expand All @@ -80,17 +83,17 @@ require (
go.opentelemetry.io/otel/sdk v1.19.0 // indirect
go.opentelemetry.io/otel/trace v1.19.0 // indirect
go.opentelemetry.io/proto/otlp v1.0.0 // indirect
golang.org/x/mod v0.13.0 // indirect
golang.org/x/net v0.17.0 // indirect
golang.org/x/sys v0.13.0 // indirect
golang.org/x/text v0.13.0 // indirect
golang.org/x/tools v0.14.0 // indirect
golang.org/x/mod v0.18.0 // indirect
golang.org/x/net v0.26.0 // indirect
golang.org/x/sys v0.21.0 // indirect
golang.org/x/text v0.16.0 // indirect
golang.org/x/tools v0.22.0 // indirect
golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect
google.golang.org/genproto v0.0.0-20231012201019-e917dd12ba7a // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20231012201019-e917dd12ba7a // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20231012201019-e917dd12ba7a // indirect
google.golang.org/grpc v1.58.3 // indirect
google.golang.org/protobuf v1.31.0 // indirect
google.golang.org/protobuf v1.33.0 // indirect
gopkg.in/fsnotify/fsnotify.v1 v1.4.7 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit d48dc20

Please sign in to comment.