├── .config ├── .eslintrc ├── .prettierrc.js ├── Dockerfile ├── README.md ├── jest-setup.js ├── jest.config.js ├── jest │ ├── mocks │ │ └── react-inlinesvg.tsx │ └── utils.js ├── mocks │ └── react-inlinesvg.tsx ├── tsconfig.json ├── types │ └── custom.d.ts └── webpack │ ├── constants.ts │ ├── utils.ts │ └── webpack.config.ts ├── .eslintrc ├── .github └── workflows │ ├── README.md │ ├── ci.yml │ ├── is-compatible.yml │ └── release.yml ├── .gitignore ├── .nvmrc ├── .prettierrc.js ├── CHANGELOG.md ├── LICENSE ├── README.md ├── docker-compose.yaml ├── docs ├── Using GreptimeDB in Grafana.md └── development │ └── timefilter.md ├── jest-setup.js ├── jest.config.js ├── package.json ├── provisioning └── datasources │ ├── .gitignore │ ├── Cloud.yaml.example │ ├── GreptimeDB.yaml │ └── README.md ├── src ├── README.md ├── components │ ├── ConfigEditor.tsx │ └── QueryEditor │ │ ├── index.tsx │ │ ├── mysql │ │ ├── QueryEditor.tsx │ │ ├── QueryModeSwitcher.tsx │ │ ├── RawQueryEditor.tsx │ │ ├── VisualQueryEditor │ │ │ ├── AddSegment.tsx │ │ │ ├── GroupBySection.tsx │ │ │ ├── README.md │ │ │ ├── RemoveablePopover.tsx │ │ │ ├── SelectAddons.tsx │ │ │ ├── SelectSection.tsx │ │ │ ├── TimeColumnSection.tsx │ │ │ ├── VisualQueryEditor.tsx │ │ │ ├── WhereSection.tsx │ │ │ └── index.tsx │ │ └── index.tsx │ │ └── promql │ │ └── index.tsx ├── datasource.ts ├── greptimedb │ ├── sqlClient.test.ts │ ├── sqlClient.ts │ ├── types.ts │ └── utils.ts ├── img │ ├── logo.svg │ └── screenshots │ │ └── sql-query-editor.png ├── module.ts ├── plugin.json ├── spec │ ├── .gitignore │ └── example.test.ts ├── types.ts └── utils │ ├── index.ts │ ├── sqlBuilder.test.ts │ ├── sqlBuilder.ts │ ├── timeFilter.ts │ └── utils.ts ├── tsconfig.json ├── update-greptime.sh └── yarn.lock /.config/.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/.config/.eslintrc -------------------------------------------------------------------------------- /.config/.prettierrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/.config/.prettierrc.js -------------------------------------------------------------------------------- /.config/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/.config/Dockerfile -------------------------------------------------------------------------------- /.config/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/.config/README.md -------------------------------------------------------------------------------- /.config/jest-setup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/.config/jest-setup.js -------------------------------------------------------------------------------- /.config/jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/.config/jest.config.js -------------------------------------------------------------------------------- /.config/jest/mocks/react-inlinesvg.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/.config/jest/mocks/react-inlinesvg.tsx -------------------------------------------------------------------------------- /.config/jest/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/.config/jest/utils.js -------------------------------------------------------------------------------- /.config/mocks/react-inlinesvg.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/.config/mocks/react-inlinesvg.tsx -------------------------------------------------------------------------------- /.config/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/.config/tsconfig.json -------------------------------------------------------------------------------- /.config/types/custom.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/.config/types/custom.d.ts -------------------------------------------------------------------------------- /.config/webpack/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/.config/webpack/constants.ts -------------------------------------------------------------------------------- /.config/webpack/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/.config/webpack/utils.ts -------------------------------------------------------------------------------- /.config/webpack/webpack.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/.config/webpack/webpack.config.ts -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./.config/.eslintrc" 3 | } -------------------------------------------------------------------------------- /.github/workflows/README.md: -------------------------------------------------------------------------------- 1 | ## ci 2 | 3 | Currently test frontend only. -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/is-compatible.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/.github/workflows/is-compatible.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/.gitignore -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 16 -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/.prettierrc.js -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/README.md -------------------------------------------------------------------------------- /docker-compose.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/docker-compose.yaml -------------------------------------------------------------------------------- /docs/Using GreptimeDB in Grafana.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/docs/Using GreptimeDB in Grafana.md -------------------------------------------------------------------------------- /docs/development/timefilter.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/docs/development/timefilter.md -------------------------------------------------------------------------------- /jest-setup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/jest-setup.js -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/package.json -------------------------------------------------------------------------------- /provisioning/datasources/.gitignore: -------------------------------------------------------------------------------- 1 | Cloud.yaml -------------------------------------------------------------------------------- /provisioning/datasources/Cloud.yaml.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/provisioning/datasources/Cloud.yaml.example -------------------------------------------------------------------------------- /provisioning/datasources/GreptimeDB.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/provisioning/datasources/GreptimeDB.yaml -------------------------------------------------------------------------------- /provisioning/datasources/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/provisioning/datasources/README.md -------------------------------------------------------------------------------- /src/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/src/README.md -------------------------------------------------------------------------------- /src/components/ConfigEditor.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/src/components/ConfigEditor.tsx -------------------------------------------------------------------------------- /src/components/QueryEditor/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/src/components/QueryEditor/index.tsx -------------------------------------------------------------------------------- /src/components/QueryEditor/mysql/QueryEditor.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/src/components/QueryEditor/mysql/QueryEditor.tsx -------------------------------------------------------------------------------- /src/components/QueryEditor/mysql/QueryModeSwitcher.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/src/components/QueryEditor/mysql/QueryModeSwitcher.tsx -------------------------------------------------------------------------------- /src/components/QueryEditor/mysql/RawQueryEditor.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/src/components/QueryEditor/mysql/RawQueryEditor.tsx -------------------------------------------------------------------------------- /src/components/QueryEditor/mysql/VisualQueryEditor/AddSegment.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/src/components/QueryEditor/mysql/VisualQueryEditor/AddSegment.tsx -------------------------------------------------------------------------------- /src/components/QueryEditor/mysql/VisualQueryEditor/GroupBySection.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/src/components/QueryEditor/mysql/VisualQueryEditor/GroupBySection.tsx -------------------------------------------------------------------------------- /src/components/QueryEditor/mysql/VisualQueryEditor/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/src/components/QueryEditor/mysql/VisualQueryEditor/README.md -------------------------------------------------------------------------------- /src/components/QueryEditor/mysql/VisualQueryEditor/RemoveablePopover.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/src/components/QueryEditor/mysql/VisualQueryEditor/RemoveablePopover.tsx -------------------------------------------------------------------------------- /src/components/QueryEditor/mysql/VisualQueryEditor/SelectAddons.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/src/components/QueryEditor/mysql/VisualQueryEditor/SelectAddons.tsx -------------------------------------------------------------------------------- /src/components/QueryEditor/mysql/VisualQueryEditor/SelectSection.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/src/components/QueryEditor/mysql/VisualQueryEditor/SelectSection.tsx -------------------------------------------------------------------------------- /src/components/QueryEditor/mysql/VisualQueryEditor/TimeColumnSection.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/src/components/QueryEditor/mysql/VisualQueryEditor/TimeColumnSection.tsx -------------------------------------------------------------------------------- /src/components/QueryEditor/mysql/VisualQueryEditor/VisualQueryEditor.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/src/components/QueryEditor/mysql/VisualQueryEditor/VisualQueryEditor.tsx -------------------------------------------------------------------------------- /src/components/QueryEditor/mysql/VisualQueryEditor/WhereSection.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/src/components/QueryEditor/mysql/VisualQueryEditor/WhereSection.tsx -------------------------------------------------------------------------------- /src/components/QueryEditor/mysql/VisualQueryEditor/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/src/components/QueryEditor/mysql/VisualQueryEditor/index.tsx -------------------------------------------------------------------------------- /src/components/QueryEditor/mysql/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/src/components/QueryEditor/mysql/index.tsx -------------------------------------------------------------------------------- /src/components/QueryEditor/promql/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/src/components/QueryEditor/promql/index.tsx -------------------------------------------------------------------------------- /src/datasource.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/src/datasource.ts -------------------------------------------------------------------------------- /src/greptimedb/sqlClient.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/src/greptimedb/sqlClient.test.ts -------------------------------------------------------------------------------- /src/greptimedb/sqlClient.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/src/greptimedb/sqlClient.ts -------------------------------------------------------------------------------- /src/greptimedb/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/src/greptimedb/types.ts -------------------------------------------------------------------------------- /src/greptimedb/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/src/greptimedb/utils.ts -------------------------------------------------------------------------------- /src/img/logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/src/img/logo.svg -------------------------------------------------------------------------------- /src/img/screenshots/sql-query-editor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/src/img/screenshots/sql-query-editor.png -------------------------------------------------------------------------------- /src/module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/src/module.ts -------------------------------------------------------------------------------- /src/plugin.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/src/plugin.json -------------------------------------------------------------------------------- /src/spec/.gitignore: -------------------------------------------------------------------------------- 1 | lib/ 2 | sqlClient.test.ts -------------------------------------------------------------------------------- /src/spec/example.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/src/spec/example.test.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/utils/index.ts: -------------------------------------------------------------------------------- 1 | export * from './utils'; 2 | -------------------------------------------------------------------------------- /src/utils/sqlBuilder.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/src/utils/sqlBuilder.test.ts -------------------------------------------------------------------------------- /src/utils/sqlBuilder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/src/utils/sqlBuilder.ts -------------------------------------------------------------------------------- /src/utils/timeFilter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/src/utils/timeFilter.ts -------------------------------------------------------------------------------- /src/utils/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/src/utils/utils.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/tsconfig.json -------------------------------------------------------------------------------- /update-greptime.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/update-greptime.sh -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DiamondMofeng/grafana-greptime-datasource/HEAD/yarn.lock --------------------------------------------------------------------------------