@perses-dev/loki-plugin 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -0
- package/package.json +88 -0
package/README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Plugin Module: loki
|
|
2
|
+
|
|
3
|
+
### How to install
|
|
4
|
+
|
|
5
|
+
This plugin requires react and react-dom 18
|
|
6
|
+
|
|
7
|
+
Install peer dependencies:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install react@18 react-dom@18
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Install the plugin:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install @perses-dev/loki
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Development
|
|
20
|
+
|
|
21
|
+
### Setup
|
|
22
|
+
|
|
23
|
+
Install dependencies:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
npm install
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Get Started
|
|
30
|
+
|
|
31
|
+
Start the dev server:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
npm run dev
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Build the plugin for distribution:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
npm run build
|
|
41
|
+
```
|
package/package.json
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@perses-dev/loki-plugin",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"dev": "rsbuild dev",
|
|
6
|
+
"build": "npm run build-mf && concurrently \"npm:build:*\"",
|
|
7
|
+
"build-mf": "rsbuild build",
|
|
8
|
+
"build:cjs": "swc ./src -d dist/lib/cjs --strip-leading-paths --config-file ../.cjs.swcrc",
|
|
9
|
+
"build:esm": "swc ./src -d dist/lib --strip-leading-paths --config-file ../.swcrc",
|
|
10
|
+
"build:types": "tsc --project tsconfig.build.json",
|
|
11
|
+
"test": "cross-env LC_ALL=C TZ=UTC jest",
|
|
12
|
+
"type-check": "tsc --noEmit"
|
|
13
|
+
},
|
|
14
|
+
"main": "lib/cjs/index.js",
|
|
15
|
+
"module": "lib/index.js",
|
|
16
|
+
"types": "lib/index.d.ts",
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@grafana/lezer-logql": "^0.2.8"
|
|
19
|
+
},
|
|
20
|
+
"peerDependencies": {
|
|
21
|
+
"@emotion/react": "^11.7.1",
|
|
22
|
+
"@emotion/styled": "^11.6.0",
|
|
23
|
+
"@hookform/resolvers": "^3.2.0",
|
|
24
|
+
"@perses-dev/components": "^0.52.0-beta.5",
|
|
25
|
+
"@perses-dev/core": "^0.52.0-beta.5",
|
|
26
|
+
"@perses-dev/dashboards": "^0.52.0-beta.5",
|
|
27
|
+
"@perses-dev/explore": "^0.52.0-beta.5",
|
|
28
|
+
"@perses-dev/plugin-system": "^0.52.0-beta.5",
|
|
29
|
+
"@tanstack/react-query": "^4.39.1",
|
|
30
|
+
"date-fns": "^4.1.0",
|
|
31
|
+
"date-fns-tz": "^3.2.0",
|
|
32
|
+
"echarts": "5.5.0",
|
|
33
|
+
"immer": "^10.1.1",
|
|
34
|
+
"lodash": "^4.17.21",
|
|
35
|
+
"react": "^17.0.2 || ^18.0.0",
|
|
36
|
+
"react-dom": "^17.0.2 || ^18.0.0",
|
|
37
|
+
"react-hook-form": "^7.52.2",
|
|
38
|
+
"use-resize-observer": "^9.0.0"
|
|
39
|
+
},
|
|
40
|
+
"files": [
|
|
41
|
+
"lib/**/*",
|
|
42
|
+
"__mf/**/*",
|
|
43
|
+
"mf-manifest.json",
|
|
44
|
+
"mf-stats.json"
|
|
45
|
+
],
|
|
46
|
+
"perses": {
|
|
47
|
+
"moduleName": "Loki",
|
|
48
|
+
"schemasPath": "schemas",
|
|
49
|
+
"plugins": [
|
|
50
|
+
{
|
|
51
|
+
"kind": "Datasource",
|
|
52
|
+
"spec": {
|
|
53
|
+
"display": {
|
|
54
|
+
"name": "Loki Datasource"
|
|
55
|
+
},
|
|
56
|
+
"name": "LokiDatasource"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"kind": "TimeSeriesQuery",
|
|
61
|
+
"spec": {
|
|
62
|
+
"display": {
|
|
63
|
+
"name": "Loki Time Series Query"
|
|
64
|
+
},
|
|
65
|
+
"name": "LokiTimeSeriesQuery"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"kind": "LogQuery",
|
|
70
|
+
"spec": {
|
|
71
|
+
"display": {
|
|
72
|
+
"name": "Loki Log Query"
|
|
73
|
+
},
|
|
74
|
+
"name": "LokiLogQuery"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"kind": "Panel",
|
|
79
|
+
"spec": {
|
|
80
|
+
"display": {
|
|
81
|
+
"name": "LogsTable"
|
|
82
|
+
},
|
|
83
|
+
"name": "LogsTable"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
}
|