Skip to content

Commit

Permalink
v0.2.3
Browse files Browse the repository at this point in the history
Signed-off-by: Yue Yang <[email protected]>
  • Loading branch information
g1eny0ung committed Aug 2, 2022
1 parent 5d3d1ea commit 7c1f286
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ e2e-results/
.DS_Store

jest.config.js
yeya24-chaosmesh-datasource
*.zip
*.md5
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.2.3] - 2022-08-02

### Deprecated

The old plugin `yeya24-chaosmesh-datasource` is deprecated. Please use <https://grafana.com/grafana/plugins/chaosmeshorg-datasource/>.

## [0.2.2] - 2021-04-15

### Changed
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Chaos Mesh Data Source

> **This plugin is deprecated, please use <https://grafana.com/grafana/plugins/chaosmeshorg-datasource/>.**
Grafana data source plugin for Chaos Mesh.

## Features
Expand All @@ -18,7 +20,7 @@ grafana-cli plugins install yeya24-chaosmesh-datasource

After installed, you can add this data source in **Configuration -> Data Sources**, then you will enter the settings page:

![Data Source settings](https://raw.githubusercontent.com/chaos-mesh/chaos-mesh-datasource/master/src/img/settings.jpg)
![Settings](https://raw.githubusercontent.com/chaos-mesh/datasource/5d3d1eab6d91dc32e2a3f42cf40483d67ef07d90/src/img/settings.jpg)

Only the `URL` field needs to be filled in and the others can be ignored.

Expand Down Expand Up @@ -58,7 +60,7 @@ For real world usage, normally you will use these options in two situations:

Edit example:

![Data Source annotations](https://raw.githubusercontent.com/chaos-mesh/chaos-mesh-datasource/master/src/img/annotations.png)
![Annotations](https://raw.githubusercontent.com/chaos-mesh/datasource/5d3d1eab6d91dc32e2a3f42cf40483d67ef07d90/src/img/annotations.png)

For usage, you can refer to the content described by [Query](#query).

Expand Down
10 changes: 6 additions & 4 deletions bundle.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
VERSION=$1
ID=yeya24-chaosmesh-datasource

rm -rf dist
rm -rf yeya24-chaosmesh-datasource

echo "Bundled Version: $VERSION"
echo "Start to build..."
echo

yarn build
npx @grafana/toolkit plugin:sign --rootUrls https://grafana.com
# yarn sign

echo "Bundling..."
echo

cp -r dist yeya24-chaosmesh-datasource
zip -r yeya24-chaosmesh-datasource-$VERSION.zip yeya24-chaosmesh-datasource -x "*.DS_Store*"
zip -r $ID-$VERSION.zip dist -x "*.DS_Store*"
md5sum $ID-$VERSION.zip > $ID-$VERSION.zip.md5

echo "Done."
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "yeya24-chaosmesh-datasource",
"version": "0.2.2",
"description": "Chaos Mesh Datasource",
"version": "0.2.3",
"description": "Chaos Mesh Data Source",
"author": "Yue Yang <[email protected]> (https://g1eny0ung.site)",
"license": "Apache-2.0",
"scripts": {
Expand All @@ -10,6 +10,7 @@
"test": "grafana-toolkit plugin:test",
"dev": "grafana-toolkit plugin:dev",
"watch": "grafana-toolkit plugin:dev --watch",
"sign": "grafana-toolkit plugin:sign",
"lint-staged": "lint-staged"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions src/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"metrics": true,
"annotations": true,
"info": {
"description": "Chaos Mesh (A Chaos Engineering Platform for Kubernetes) Datasource",
"description": "Chaos Mesh (A Chaos Engineering Platform for Kubernetes) Data Source",
"author": {
"name": "Chaos Mesh Project",
"url": "https://github.com/chaos-mesh"
Expand All @@ -18,7 +18,7 @@
},
"screenshots": [
{
"name": "Datasource Setting",
"name": "Settings",
"path": "img/settings.jpg"
},
{
Expand All @@ -36,11 +36,11 @@
"url": "https://github.com/chaos-mesh/chaos-mesh-datasource/blob/master/LICENSE"
},
{
"name": "Chaos Mesh Website",
"name": "Website",
"url": "https://chaos-mesh.org/"
}
],
"version": "0.2.2",
"version": "0.2.3",
"updated": "%TODAY%"
},
"dependencies": {
Expand Down

0 comments on commit 7c1f286

Please sign in to comment.