-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
4,999 additions
and
5,132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
### Changelog | ||
|
||
1.0.7 2022-02-11 | ||
- rebuild for grafana 8 | ||
- update dependencies | ||
|
||
1.0.6 2021-01-04 | ||
- sign plugin | ||
- switch package builds to yarn | ||
|
||
1.0.5 2020-09-11 | ||
- improve packaging | ||
|
||
1.0.4 2020-06-29 | ||
- fix export with "Export for sharing externally" enabled | ||
|
||
1.0.3 2019-02-15 | ||
- support aggregation functions | ||
- convert hash responses into tables | ||
- support timeseries based panels | ||
|
||
1.0.2 2019-01-04 | ||
- add more time styles | ||
|
||
1.0.1 2018-09-30 | ||
- fix annotation query parser | ||
|
||
1.0.0 2018-09-14 | ||
- inital release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,44 @@ | ||
PLUGINNAME=sni-thruk-datasource | ||
TAGVERSION=$(shell git describe --tag --exact-match 2>/dev/null | sed -e 's/^v//') | ||
DOCKER=docker run \ | ||
-t \ | ||
--rm \ | ||
-v $(shell pwd):/src \ | ||
-w "/src" \ | ||
-u $(shell id -u) \ | ||
-e GRAFANA_API_KEY="$(GRAFANA_API_KEY)" \ | ||
node:latest | ||
-e NODE_OPTIONS"=--openssl-legacy-provider" \ | ||
-e "GRAFANA_API_KEY=$(GRAFANA_API_KEY)" | ||
|
||
build: | ||
$(DOCKER) bash -c "yarn install && yarn run build" | ||
$(DOCKER) node:latest bash -c "yarn install && yarn run build" | ||
|
||
buildwatch: | ||
$(DOCKER) bash -c "yarn install && yarn run watch" | ||
$(DOCKER) node:latest bash -c "yarn install && yarn run watch" | ||
|
||
buildupgrade: | ||
$(DOCKER) node:latest bash -c "yarn install && yarn upgrade" | ||
|
||
buildsign: | ||
$(DOCKER) \ | ||
npx @grafana/toolkit plugin:sign | ||
$(DOCKER) node:latest \ | ||
npx --legacy-peer-deps @grafana/toolkit plugin:sign | ||
|
||
buildshell: | ||
$(DOCKER) -i node:latest bash | ||
|
||
grafanadev: | ||
docker run --rm -it -v $(shell pwd):/var/lib/grafana/plugins/$(PLUGINNAME) \ | ||
-p 3000:3000 --name grafana.docker \ | ||
-e "GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=$(PLUGINNAME)" \ | ||
-e "GF_USERS_DEFAULT_THEME=light" \ | ||
grafana/grafana | ||
|
||
clean: | ||
rm -rf dist | ||
|
||
releasebuild: | ||
git checkout -b release-$(TAGVERSION) | ||
@if [ "x$(TAGVERSION)" = "x" ]; then echo "ERROR: must be on a git tag, got: $(shell git describe --tag --dirty)"; exit 1; fi | ||
make clean | ||
make GRAFANA_API_KEY=$(GRAFANA_API_KEY) build buildsign | ||
git add -f dist | ||
git commit -m "Release build v$(TAGVERSION)" | ||
git log -1 | ||
git checkout master | ||
|
||
releasepush: | ||
git push --set-upstream origin release-$(TAGVERSION) | ||
git checkout master | ||
git push | ||
git push --tags | ||
mv dist/ $(PLUGINNAME) | ||
zip $(PLUGINNAME)-$(TAGVERSION).zip $(PLUGINNAME) -r | ||
rm -rf $(PLUGINNAME) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.