Skip to content

Commit 3da6750

Browse files
authored
Upgrade Grafana dependencies 7.5.4 (#53)
1 parent 1720860 commit 3da6750

File tree

11 files changed

+988
-849
lines changed

11 files changed

+988
-849
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: CI
22

3-
on: push
3+
on: [push, pull_request]
44

55
jobs:
66
build:

.prettierignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,3 @@ dist
1818
redis-datasource
1919
img
2020
.idea
21-
redis

BUILD.md

Lines changed: 2 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,3 @@
1-
# How to install and build Grafana with Redis Application plug-in on RPM-based Linux
1+
# How to build and install Redis Application plug-in
22

3-
## Clone repository
4-
5-
```bash
6-
git clone https://github.com/RedisGrafana/grafana-redis-app.git
7-
```
8-
9-
## Install Grafana
10-
11-
- Follow [Install on RPM-based Linux](https://grafana.com/docs/grafana/latest/installation/rpm/) to install and start Grafana
12-
13-
- Open Grafana in web-browser `http://X.X.X.X:3000`
14-
15-
## Build Application
16-
17-
- Install the latest version of Node.js using [Node Version Manager](https://github.com/nvm-sh/nvm)
18-
19-
- Install `yarn` to build Application
20-
21-
```bash
22-
npm install yarn -g
23-
```
24-
25-
- Install dependencies
26-
27-
```bash
28-
yarn install
29-
```
30-
31-
- Build Application
32-
33-
```bash
34-
yarn build
35-
```
36-
37-
## Update Grafana Configuration
38-
39-
- Move distribution to Grafana's `plugins/` folder
40-
41-
```bash
42-
mv dist/ /var/lib/grafana/plugins/redis-app
43-
```
44-
45-
- Add `redis-app` to allowed unsigned plugins
46-
47-
```bash
48-
vi /etc/grafana/grafana.ini
49-
```
50-
51-
```
52-
[plugins]
53-
;enable_alpha = false
54-
;app_tls_skip_verify_insecure = false
55-
# Enter a comma-separated list of plugin identifiers to identify plugins that are allowed to be loaded even if they lack a valid signature.
56-
allow_loading_unsigned_plugins = redis-app
57-
```
58-
59-
- Verify that plugin is registered
60-
61-
```bash
62-
tail -100 /var/log/grafana/grafana.log
63-
```
64-
65-
- Enable Redis Application in Grafana using `Configuration` -> `Plugins`
66-
67-
If you have questions, enhancement ideas or running into issues, please just open an issue on the repository: https://github.com/RedisGrafana/grafana-redis-app
3+
You can find detailed instructions in the [Documentation](https://redisgrafana.github.io/development/redis-app/).

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### Features / Enhancements
66

7-
- Update Grafana dependencies to 7.4.2
7+
- Update Grafana dependencies to 7.5.4
88

99
## v1.1.0 (2021-02-07)
1010

docker-compose.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ services:
2020
- GF_USERS_DEFAULT_THEME=light
2121
- GF_INSTALL_PLUGINS=redis-app
2222
volumes:
23-
- ./provisioning/plugins:/etc/grafana/provisioning/plugins
24-
- ./provisioning/datasources:/etc/grafana/provisioning/datasources
23+
- ./provisioning:/etc/grafana/provisioning
2524
# Uncomment to preserve Grafana configuration
2625
# - ./data:/var/lib/grafana

docker-compose/dev-7.2.1.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ services:
2929
# Redis Data Source should be cloned and built
3030
- ../../grafana-redis-datasource/dist:/var/lib/grafana/plugins/redis-datasource
3131
- ../dist:/var/lib/grafana/plugins/redis-app
32-
- ../provisioning/datasources:/etc/grafana/provisioning/datasources
33-
- ../provisioning/plugins:/etc/grafana/provisioning/plugins
32+
- ../provisioning:/etc/grafana/provisioning
3433
# Uncomment to preserve Grafana configuration
3534
# - ./data:/var/lib/grafana

docker-compose/dev.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ services:
2929
# Redis Data Source should be cloned and built
3030
- ../../grafana-redis-datasource/dist:/var/lib/grafana/plugins/redis-datasource
3131
- ../dist:/var/lib/grafana/plugins/redis-app
32-
- ../provisioning/datasources:/etc/grafana/provisioning/datasources
33-
- ../provisioning/plugins:/etc/grafana/provisioning/plugins
32+
- ../provisioning:/etc/grafana/provisioning
3433
# Uncomment to preserve Grafana configuration
3534
# - ./data:/var/lib/grafana

docker-compose/master.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ services:
2929
# Redis Data Source should be cloned and built
3030
- ../../grafana-redis-datasource/dist:/var/lib/grafana/plugins/redis-datasource
3131
- ../dist:/var/lib/grafana/plugins/redis-app
32-
- ../provisioning/datasources:/etc/grafana/provisioning/datasources
33-
- ../provisioning/plugins:/etc/grafana/provisioning/plugins
32+
- ../provisioning:/etc/grafana/provisioning
3433
# Uncomment to preserve Grafana configuration
3534
# - ./data:/var/lib/grafana

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
"author": "Redis Labs",
33
"description": "Redis Application for Grafana",
44
"devDependencies": {
5-
"@grafana/data": "7.4.2",
6-
"@grafana/runtime": "7.4.2",
7-
"@grafana/toolkit": "7.4.2",
8-
"@grafana/ui": "7.4.2",
9-
"@monaco-editor/react": "^4.0.10",
5+
"@grafana/data": "7.5.4",
6+
"@grafana/runtime": "7.5.4",
7+
"@grafana/toolkit": "7.5.4",
8+
"@grafana/ui": "7.5.4",
9+
"@monaco-editor/react": "^4.1.1",
1010
"@types/enzyme": "^3.10.8",
11-
"@wojtekmaj/enzyme-adapter-react-17": "^0.4.1",
11+
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.1",
1212
"emotion": "10.0.27",
1313
"enzyme": "^3.11.0"
1414
},

src/redis-latency-panel/components/redis-latency-panel-table/redis-latency-panel-table.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import React from 'react';
21
import { shallow } from 'enzyme';
2+
import React from 'react';
33
import { dateTime, FieldType, toDataFrame } from '@grafana/data';
44
import { Table } from '@grafana/ui';
55
import { DisplayNameByFieldName, FieldName } from '../../constants';
@@ -49,7 +49,7 @@ describe('RedisLatencyPanel', () => {
4949

5050
const tableDataFrame = RedisLatencyPanelTable.getTableDataFrame(dataFrame, seriesMap);
5151
const expectedDataFrame = toDataFrame({
52-
name: 'tableDataFrame',
52+
name: 'TableDataFrame',
5353
fields: [
5454
...fields,
5555
{
@@ -97,7 +97,7 @@ describe('RedisLatencyPanel', () => {
9797
{
9898
type: FieldType.number,
9999
name: FieldName.Latency,
100-
values: [null, null],
100+
values: [undefined, undefined],
101101
},
102102
].map((field) => ({
103103
...field,

0 commit comments

Comments
 (0)