Skip to content

Commit

Permalink
Merge pull request #58 from questdb/plugin-namechange
Browse files Browse the repository at this point in the history
Change plugin naming definitions
  • Loading branch information
insmac authored May 6, 2024
2 parents 79eb909 + d938205 commit 16d3683
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,6 @@ jobs:
- name: Archive plugin build artifacts
uses: actions/upload-artifact@v4
with:
name: grafana-questdb-datasource.zip
name: questdb-questdb-datasource.zip
path: ${{ steps.metadata.outputs.archive }}
retention-days: 7
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Here are some provisioning examples for this data source using basic authenticat
apiVersion: 1
datasources:
- name: QuestDB
type: grafana-questdb-datasource
type: questdb-questdb-datasource
jsonData:
server: localhost
port: 8812
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
ports:
- '3000:3000'
volumes:
- ./:/var/lib/grafana/plugins/grafana-questdb-datasource
- ./:/var/lib/grafana/plugins/questdb-questdb-datasource
- ./provisioning:/etc/grafana/provisioning
environment:
- TERM=linux
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "grafana-questdb-datasource",
"name": "questdb-questdb-datasource",
"version": "0.1.2",
"description": "QuestDB Datasource for Grafana",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion pkg/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

func main() {
if err := datasource.Manage("grafana-questdb-datasource", newDatasource, datasource.ManageOpts{}); err != nil {
if err := datasource.Manage("questdb-questdb-datasource", newDatasource, datasource.ManageOpts{}); err != nil {
log.DefaultLogger.Error(err.Error())
os.Exit(1)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/plugin/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func getClientVersion(ctx context.Context) string {
if version != "" {
version += ";"
}
result += fmt.Sprintf("questdb-datasource:%s", info.Version)
result += fmt.Sprintf("questdb-questdb-datasource:%s", info.Version)
}

return result
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: 1
datasources:
- name: QuestDB-test
type: grafana-questdb-datasource
type: questdb-questdb-datasource
jsonData:
server: grafana-questdb-server
port: 8812
Expand Down
4 changes: 2 additions & 2 deletions src/__mocks__/datasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Datasource } from '../data/QuestDbDatasource';
export const mockDatasource = new Datasource({
id: 1,
uid: 'questdb_ds',
type: 'grafana-questdb-datasource',
type: 'questdb-questdb-datasource',
name: 'QuestDB',
jsonData: {
server: 'foo.com',
Expand All @@ -15,7 +15,7 @@ export const mockDatasource = new Datasource({
readOnly: true,
access: 'direct',
meta: {
id: 'grafana-questdb-datasource',
id: 'questdb-grafana-datasource',
name: 'QuestDB',
type: PluginType.datasource,
module: '',
Expand Down
4 changes: 2 additions & 2 deletions src/components/queryBuilder/utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let mockTimeField = "";
const mockDatasource = new Datasource({
id: 1,
uid: 'questdb_ds',
type: 'grafana-questdb-datasource',
type: 'questdb-questdb-datasource',
name: 'QuestDB',
jsonData: {
server: 'foo.com',
Expand All @@ -24,7 +24,7 @@ const mockDatasource = new Datasource({
readOnly: true,
access: 'direct',
meta: {
id: 'grafana-questdb-datasource',
id: 'questdb-questdb-datasource',
name: 'QuestDB',
type: PluginType.datasource,
module: '',
Expand Down
Binary file added src/img/sql_builder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 7 additions & 2 deletions src/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://raw.githubusercontent.com/grafana/grafana/master/docs/sources/developers/plugins/plugin.schema.json",
"type": "datasource",
"name": "QuestDB",
"id": "grafana-questdb-datasource",
"id": "questdb-questdb-datasource",
"metrics": true,
"backend": true,
"logs": true,
Expand Down Expand Up @@ -30,7 +30,12 @@
"url": "https://github.com/questdb/grafana-questdb-datasource/blob/master/LICENSE"
}
],
"screenshots": [],
"screenshots": [
{
"name": "SQL Builder",
"path": "img/sql_builder.png"
}
],
"version": "%VERSION%",
"updated": "%TODAY%"
},
Expand Down

0 comments on commit 16d3683

Please sign in to comment.