Skip to content

Commit e7174d9

Browse files
committed
.
1 parent 2496c47 commit e7174d9

File tree

8 files changed

+30
-41
lines changed

8 files changed

+30
-41
lines changed

README.md

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
# Drasi SignalR Data Source Plugin
22

3-
[![CI](https://github.com/drasi-project/grafana-plugin/actions/workflows/ci.yml/badge.svg)](https://github.com/drasi-project/grafana-plugin/actions/workflows/ci.yml)
4-
[![Release](https://github.com/drasi-project/grafana-plugin/actions/workflows/release.yml/badge.svg)](https://github.com/drasi-project/grafana-plugin/actions/workflows/release.yml)
5-
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6-
73
A Grafana data source plugin that enables real-time streaming of data changes from Drasi SignalR endpoints. Perfect for building live dashboards that update automatically as your data changes.
84

9-
![Drasi SignalR Plugin Demo](docs/images/demo.gif)
10-
115
## 🌟 Features
126

137
- **Real-time Streaming**: Live data updates through SignalR connections
@@ -28,24 +22,19 @@ A Grafana data source plugin that enables real-time streaming of data changes fr
2822

2923
### Installation
3024

31-
#### Option 1: Install from Grafana Plugin Catalog (Recommended)
32-
33-
1. Go to **Configuration****Plugins** in your Grafana instance
34-
2. Search for "Drasi SignalR"
35-
3. Click **Install**
36-
37-
#### Option 2: Manual Installation
25+
#### Option 1: Manual Installation
3826

39-
1. Download the latest release from [GitHub Releases](https://github.com/drasi-project/grafana-plugin/releases)
27+
1. Download the latest release from [GitHub Releases](https://github.com/drasi-project/grafana-signalr/releases)
4028
2. Extract to your Grafana plugins directory
41-
3. Restart Grafana
29+
3. Enable `drasi-signalr` as an [unsigned plugin](https://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/#allow_loading_unsigned_plugins)
30+
4. Restart Grafana
4231

43-
#### Option 3: Development Setup
32+
#### Option 2: Development Setup
4433

4534
```bash
4635
# Clone the repository
47-
git clone https://github.com/drasi-project/grafana-plugin.git
48-
cd grafana-plugin
36+
git clone https://github.com/drasi-project/grafana-signalr.git
37+
cd grafana-signalr
4938

5039
# Install dependencies
5140
npm install
@@ -66,7 +55,7 @@ Access Grafana at http://localhost:3002 (admin/admin)
6655
1. Navigate to **Configuration****Data Sources**
6756
2. Click **Add data source**
6857
3. Search for "Drasi SignalR" and select it
69-
4. Configure the SignalR endpoint URL (e.g., `http://localhost:8002/hub`)
58+
4. Configure the SignalR endpoint URL (e.g., `http://localhost:8080/hub`)
7059
5. Click **Save & Test**
7160

7261
### 2. Create Query

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ services:
1010
- GF_FEATURE_TOGGLES_ENABLE=live
1111
- GF_SERVER_PROTOCOL=http
1212
- GF_SECURITY_ALLOW_EMBEDDING=true
13-
- GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=drasi-signalr-datasource
13+
- GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=drasi-signalr
1414
- GF_PLUGINS_ENABLE_ALPHA=true
1515
- GF_DEFAULT_APP_MODE=development
1616
extra_hosts:

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"sign": "npx --yes @grafana/sign-plugin@latest"
1717
},
1818
"author": "Drasi Team",
19-
"license": "MIT",
19+
"license": "Apache-2.0",
2020
"devDependencies": {
2121
"@grafana/eslint-config": "^7.0.0",
2222
"@grafana/tsconfig": "^1.3.0-rc1",

provisioning/datasources/datasource.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/components/ConfigEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function ConfigEditor(props: Props) {
3131
inputWidth={30}
3232
onChange={onSignalrUrlChange}
3333
value={jsonData.signalrUrl || ''}
34-
placeholder="http://localhost:8002/hub"
34+
placeholder="http://localhost:8080/hub"
3535
tooltip="The URL of the SignalR hub endpoint"
3636
/>
3737
</div>

src/components/QueryEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export function QueryEditor({ query, onChange, onRunQuery, datasource }: Props)
6262
inputWidth={20}
6363
onChange={onQueryIdChange}
6464
value={query.queryId || ''}
65-
placeholder="Enter query ID (e.g., freezerx)"
65+
placeholder="Enter query ID (e.g., query-1)"
6666
tooltip="The query ID to monitor for changes"
6767
/>
6868
</div>

src/img/logo.svg

Lines changed: 15 additions & 3 deletions
Loading

0 commit comments

Comments
 (0)