Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Commit

Permalink
Release 0.5.0 (#258)
Browse files Browse the repository at this point in the history
* Release 0.5.0

- Support DataFrames
- fix: percentual bucket range calculations.
- fix: branding hide
- fix: hide markers in tooltip.
  • Loading branch information
diafour authored Apr 7, 2022
1 parent b8d3ab6 commit dbaf343
Show file tree
Hide file tree
Showing 12 changed files with 3,071 additions and 22,628 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,6 @@ jobs:
env:
GRAFANA_API_KEY: ${{ secrets.GRAFANA_API_KEY }} # Requires a Grafana API key from Grafana.com.
run: |
echo "Patch @grafana/toolkit to prevent TypeError in some cases."
# manifest.js
#- if ((err_1.response && err_1.response.data) || err_1.response.data.message) {
#+ if (err_1.response && err_1.response.data && err_1.response.data.message) {
pushd node_modules/@grafana/toolkit/src/plugins
echo LS0tIGEvbWFuaWZlc3QuanMJMjAyMS0xMS0xOSAyMTo0Njo1Mi4wMDAwMDAwMDAgKzAzMDAKKysrIGIvbWFuaWZlc3QuanMJMjAyMS0xMS0xOSAyMTo0NzoyNS4wMDAwMDAwMDAgKzAzMDAKQEAgLTE1NSw3ICsxNTUsNyBAQAogICAgICAgICAgICAgICAgICAgICByZXR1cm4gWzIgLypyZXR1cm4qLywgaW5mby5kYXRhXTsKICAgICAgICAgICAgICAgICBjYXNlIDM6CiAgICAgICAgICAgICAgICAgICAgIGVycl8xID0gX2Euc2VudCgpOwotICAgICAgICAgICAgICAgICAgICBpZiAoKGVycl8xLnJlc3BvbnNlICYmIGVycl8xLnJlc3BvbnNlLmRhdGEpIHx8IGVycl8xLnJlc3BvbnNlLmRhdGEubWVzc2FnZSkgeworICAgICAgICAgICAgICAgICAgICBpZiAoZXJyXzEucmVzcG9uc2UgJiYgZXJyXzEucmVzcG9uc2UuZGF0YSAmJiBlcnJfMS5yZXNwb25zZS5kYXRhLm1lc3NhZ2UpIHsKICAgICAgICAgICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcignRXJyb3Igc2lnbmluZyBtYW5pZmVzdDogJyArIGVycl8xLnJlc3BvbnNlLmRhdGEubWVzc2FnZSk7CiAgICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCdFcnJvciBzaWduaW5nIG1hbmlmZXN0OiAnICsgZXJyXzEubWVzc2FnZSk7Cg== | base64 -d | patch -p1
popd
# yarn sign always exits with code 0.
set -o pipefail
yarn sign 2>&1 | tee >(grep -q -i error && exit 1 || exit 0)
Expand Down Expand Up @@ -124,3 +117,9 @@ jobs:
echo "Title: ${{ steps.metadata.outputs.release-name }}"
echo "Body:"
cat ${{ steps.metadata.outputs.release_notes_path }}
- name: Save artifact
uses: actions/upload-artifact@v3
with:
name: ${{ steps.metadata.outputs.archive }}
path: ${{ steps.metadata.outputs.archive }}
7 changes: 0 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,6 @@ jobs:
env:
GRAFANA_API_KEY: ${{ secrets.GRAFANA_API_KEY }} # Requires a Grafana API key from Grafana.com.
run: |
echo "Patch @grafana/toolkit to prevent TypeError in some cases."
# manifest.js
#- if ((err_1.response && err_1.response.data) || err_1.response.data.message) {
#+ if (err_1.response && err_1.response.data && err_1.response.data.message) {
pushd node_modules/@grafana/toolkit/src/plugins
echo LS0tIGEvbWFuaWZlc3QuanMJMjAyMS0xMS0xOSAyMTo0Njo1Mi4wMDAwMDAwMDAgKzAzMDAKKysrIGIvbWFuaWZlc3QuanMJMjAyMS0xMS0xOSAyMTo0NzoyNS4wMDAwMDAwMDAgKzAzMDAKQEAgLTE1NSw3ICsxNTUsNyBAQAogICAgICAgICAgICAgICAgICAgICByZXR1cm4gWzIgLypyZXR1cm4qLywgaW5mby5kYXRhXTsKICAgICAgICAgICAgICAgICBjYXNlIDM6CiAgICAgICAgICAgICAgICAgICAgIGVycl8xID0gX2Euc2VudCgpOwotICAgICAgICAgICAgICAgICAgICBpZiAoKGVycl8xLnJlc3BvbnNlICYmIGVycl8xLnJlc3BvbnNlLmRhdGEpIHx8IGVycl8xLnJlc3BvbnNlLmRhdGEubWVzc2FnZSkgeworICAgICAgICAgICAgICAgICAgICBpZiAoZXJyXzEucmVzcG9uc2UgJiYgZXJyXzEucmVzcG9uc2UuZGF0YSAmJiBlcnJfMS5yZXNwb25zZS5kYXRhLm1lc3NhZ2UpIHsKICAgICAgICAgICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcignRXJyb3Igc2lnbmluZyBtYW5pZmVzdDogJyArIGVycl8xLnJlc3BvbnNlLmRhdGEubWVzc2FnZSk7CiAgICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCdFcnJvciBzaWduaW5nIG1hbmlmZXN0OiAnICsgZXJyXzEubWVzc2FnZSk7Cg== | base64 -d | patch -p1
popd
# yarn sign always exits with code 0.
set -o pipefail
yarn sign 2>&1 | tee >(grep -q -i error && exit 1 || exit 0)
Expand Down
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## v0.5.0

- Support DataFrames. (#239)
- Add tooltip variables with percentual bucket range: __bucket_from, __bucket_to (#242)
- Support Grafana 8.4+
- Hide markers in tooltip.

## v0.4.2

- Compatibility with Grafana 8.1+. (#230, #219, #220, #221)
Expand All @@ -13,7 +20,7 @@

- Add __y_label_trim variable for tooltip items.
- Add y-label splitter for tooltip items.
- Add custom content for toolip.
- Add custom content for tooltip.
- Fix to work with Grafana 7.4.x.
- Migrate to grafana-toolkit and yarn to build and sign.
- Cleanup dist directory content, reduce compiled plugin size, remove dist from repository.
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
version: "3"
services:
grafana:
image: grafana/grafana:8.2.1
image: grafana/grafana:8.4.5
ports:
- 3000:3000
- "3000:3000"
environment:
GF_AUTH_ANONYMOUS_ENABLED: 1
GF_AUTH_ANONYMOUS_ORG_ROLE: Admin
GF_INSTALL_PLUGINS: marcusolsson-static-datasource,https://github.com/flant/grafana-statusmap/releases/download/v0.4.2/flant-statusmap-panel-0.4.2.zip;flant-statusmap-panel
GF_INSTALL_PLUGINS: marcusolsson-static-datasource,https://github.com/flant/grafana-statusmap/releases/download/v0.5.0/flant-statusmap-panel-0.5.0.zip;flant-statusmap-panel
GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH: /etc/grafana/provisioning/dashboards/dashboards/statusmap.json
volumes:
- ./provisioning:/etc/grafana/provisioning
Loading

0 comments on commit dbaf343

Please sign in to comment.