Skip to content

Commit ebceb51

Browse files
committed
removed graphql data source, updated local test info in fn readme
1 parent 2772e65 commit ebceb51

20 files changed

+23
-1266
lines changed

FN_README.md

+22-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# Sankey plugin
2-
3-
## How to work with it?
1+
## Sankey Plugin
42

53
We created our fork of [snakey-panel](https://github.com/IsmaelMasharo/sankey-panel) ---> [our fork](https://github.com/fluxninja/sankey-panel) and if we want to add some changes to it we need to:
64

@@ -10,19 +8,34 @@ We created our fork of [snakey-panel](https://github.com/IsmaelMasharo/sankey-pa
108
- copy-paste builded version of plugin into grafana `public/app/plugins/panel/sankey-panel-0.5.0`
119
- refresh grafana
1210

13-
# [Grafadruid-druid datasource plugin](./public/app/plugins/datasource//grafadruid-druid-datasource/)
11+
## [Grafadruid-druid datasource plugin](./public/app/plugins/datasource//grafadruid-druid-datasource/)
1412

1513
https://github.com/grafadruid/druid-grafana/tree/master/src
1614

17-
# [Graphql datasource plugin](./public/app/plugins//datasource//fifemon-graphql-datasource/)
15+
## Local Testing
16+
17+
Run Grafana locally using:
18+
19+
```shell
20+
make run
21+
22+
yarn start
23+
```
24+
25+
Port forward local prometheus and druid from [cloud](https://github.com/fluxninja/cloud) repo using fn:
26+
27+
```shell
28+
cd cloud
29+
30+
LOGURU_LEVEL=TRACE fn dev service-proxy --cluster <cluster-name> prometheus-cloud druid-router
1831

19-
https://github.com/fifemon/graphql-datasource/tree/v1.3.0/src
32+
```
2033

21-
Release: v1.3.0
34+
Connect to druid and prometheus on locally running Grafana UI. For this go to connection tab and select Data Source. Add new data source and make a connection. To test micro frontend make a connection with UI follow this [MFE Grafana](https://github.com/fluxninja/cloud/tree/main/services/cloud/ui#running-grafana-locally-for-development).
2235

23-
# Troubleshooting
36+
## Troubleshooting
2437

25-
## "Cannot find module" typescript errors (ts2307)
38+
### "Cannot find module" typescript errors (ts2307)
2639

2740
Smart IDEs (such as VSCode or IntelliJ) require special configuration for TypeScript to work when using Plug'n'Play installs.
2841
A collection of settings for each editor can be found under the (link)[https://yarnpkg.com/getting-started/editor-sdks#vscode]

public/app/features/plugins/built_in_plugins.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ const postgresPlugin = async () =>
2525
await import(/* webpackChunkName: "postgresPlugin" */ 'app/plugins/datasource/postgres/module');
2626
const grafadruidDruidDatasourcePlugin = async () =>
2727
await import(/* webpackChunkName: "druidPlugin" */ 'app/plugins/datasource/grafadruid-druid-datasource/module');
28-
const fifemonGraphqlDatasourcePlugin = async () =>
29-
await import(/* webpackChunkName: "graphqlPlugin" */ 'app/plugins/datasource/fifemon-graphql-datasource/module');
3028
const prometheusPlugin = async () =>
3129
await import(/* webpackChunkName: "prometheusPlugin" */ 'app/plugins/datasource/prometheus/module');
3230
const mssqlPlugin = async () =>
@@ -102,8 +100,8 @@ const builtInPlugins: any = {
102100
'app/plugins/datasource/mysql/module': mysqlPlugin,
103101
'app/plugins/datasource/postgres/module': postgresPlugin,
104102
'app/plugins/datasource/mssql/module': mssqlPlugin,
103+
// Default FluxNinja Druid datasource
105104
'app/plugins/datasource/grafadruid-druid-datasource/module': grafadruidDruidDatasourcePlugin,
106-
'app/plugins/datasource/fifemon-graphql-datasource/module': fifemonGraphqlDatasourcePlugin,
107105
'app/plugins/datasource/prometheus/module': prometheusPlugin,
108106
'app/plugins/datasource/testdata/module': testDataDSPlugin,
109107
'app/plugins/datasource/cloud-monitoring/module': cloudMonitoringPlugin,

public/app/plugins/datasource/fifemon-graphql-datasource/ConfigEditor.tsx

-22
This file was deleted.

0 commit comments

Comments
 (0)