n9e / fe Goto Github PK
View Code? Open in Web Editor NEWNightingale frontend
License: Apache License 2.0
Nightingale frontend
License: Apache License 2.0
添加 ES 数据源 返回 400 错误
request url:https://dev-elasticsearch.dr.cn/api/v1/query?query=1%2B1 failed code:400
ERROR router/router_datasource.go:114 Error making request: 400
在新标签中打开监控大盘,标签能否显示大盘名称。否则开多个大盘,都是一个标签名称无法快速找到自己需要查看的大盘。
另外,能否支持页面多开的功能,目前右击菜单无法选择在新标签中打开
比如我想要查询 ip地址为172.27.8.9 并且 logtype是slow的所有日志,输入如下查询:ip:172.27.8.9 and logtype:slow 或者 172.27.8.9 and slow;但是结果不对,我在kibana上面查询的结果是没问题的
如 $__interval 等
前端版本:5.14.1
后端版本:v5.14.0-da5dd683d684901389336f96c55ae58837b9230e
nginx 配置
server {
listen 80;
server_name 0.0.0.0;
location / {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_connect_timeout 60;
proxy_read_timeout 600;
proxy_send_timeout 600;
proxy_pass http://172.16.0.27:10000;
}
location ^~ /api/n9e {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_connect_timeout 60;
proxy_read_timeout 600;
proxy_send_timeout 600;
proxy_pass http://172.16.0.27:10000/api/n9e;
}
}
刚刚从v5升级到v6.0.0-ga.4.1,上去监控大盘查看数据显示nodata,点击编辑进入编辑页面后又有数据了,过一段时间再打开大盘再次显示nodata,最后找到原因是大盘迁移后第一次进入默认的大盘变量会自动给你带上引号,导致出现报错:bad_data: 1:33: parse error: unexpected identifier "s342" in label matching, expected "," or "}";重新选择变量,问题解决,再次进入大盘也不会出现问题
npm run dev
本地访问http://localhost:8765/,页面无法展示
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! react@"^17.0.0" from the root project
npm ERR! peer react@">=16.8.4" from @ant-design/[email protected]
npm ERR! node_modules/@ant-design/graphs
npm ERR! @ant-design/graphs@"^1.3.6" from the root project
npm ERR! 62 more (@ant-design/icons, @ant-design/plots, @icons/material, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^0.13.0 || ^0.14.0 || ^15.0.1 || ^16.0.0" from [email protected]
npm ERR! node_modules/react-ace
npm ERR! react-ace@"^8.1.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/react
npm ERR! peer react@"^0.13.0 || ^0.14.0 || ^15.0.1 || ^16.0.0" from [email protected]
npm ERR! node_modules/react-ace
npm ERR! react-ace@"^8.1.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
新增:跳转到第1页
编辑:不改变current
#0 49.47 src/pages/alertRules/Form/Rule/Rule/Log/index.tsx(26,48): error TS2307: Cannot find module 'plus:/datasource/aliyunSLS' or its corresponding type declarations.
#0 49.47 src/pages/alertRules/Form/Rule/Rule/Log/index.tsx(27,52): error TS2307: Cannot find module 'plus:/datasource/elasticsearch' or its corresponding type declarations.
#0 49.47 src/pages/alertRules/Form/Rule/Rule/Metric/index.tsx(27,41): error TS2307: Cannot find module 'plus:/datasource/clickHouse' or its corresponding type declarations.
#0 49.47 src/pages/alertRules/Form/Rule/Rule/Metric/index.tsx(28,39): error TS2307: Cannot find module 'plus:/datasource/influxDB' or its corresponding type declarations.
#0 49.47 src/pages/alertRules/Form/Rule/Rule/index.tsx(21,38): error TS2307: Cannot find module 'plus:/datasource/anomaly' or its corresponding type declarations.
#0 49.47 src/pages/alertRulesBuiltin/index.tsx(93,21): error TS2345: Argument of type 'number | RuleCateType | (() => IterableIterator<RuleCateType>) | (() => { copyWithin: boolean; entries: boolean; fill: boolean; find: boolean; findIndex: boolean; keys: boolean; values: boolean; }) | ... 30 more ... | (<A, D extends number = 1>(this: A, depth?: D | undefined) => FlatArray<...>[])' is not assignable to parameter of type 'SetStateAction<RuleCateType | undefined>'.
#0 49.47 Type 'number' is not assignable to type 'SetStateAction<RuleCateType | undefined>'.
#0 49.47 src/pages/dashboard/Editor/QueryEditor/index.tsx(5,43): error TS2307: Cannot find module 'plus:/datasource/aliyunSLS' or its corresponding type declarations.
#0 49.47 src/pages/dashboard/Editor/QueryEditor/index.tsx(6,40): error TS2307: Cannot find module 'plus:/datasource/zabbix' or its corresponding type declarations.
#0 49.47 src/pages/dashboard/Editor/QueryEditor/index.tsx(7,42): error TS2307: Cannot find module 'plus:/datasource/influxDB' or its corresponding type declarations.
#0 49.47 src/pages/dashboard/Renderer/datasource/useQuery.tsx(28,41): error TS2307: Cannot find module 'plus:/datasource/aliyunSLS' or its corresponding type declarations.
#0 49.47 src/pages/dashboard/Renderer/datasource/useQuery.tsx(29,38): error TS2307: Cannot find module 'plus:/datasource/zabbix' or its corresponding type declarations.
#0 49.47 src/pages/dashboard/Renderer/datasource/useQuery.tsx(30,40): error TS2307: Cannot find module 'plus:/datasource/influxDB' or its corresponding type declarations.
#0 49.47 src/pages/dashboardBuiltin/index.tsx(76,21): error TS2345: Argument of type 'number | BoardCateType | (() => IterableIterator<BoardCateType>) | (() => { copyWithin: boolean; entries: boolean; fill: boolean; find: boolean; findIndex: boolean; keys: boolean; values: boolean; }) | ... 30 more ... | (<A, D extends number = 1>(this: A, depth?: D | undefined) => FlatArray<...>[])' is not assignable to parameter of type 'SetStateAction<BoardCateType | undefined>'.
#0 49.47 Type 'number' is not assignable to type 'SetStateAction<BoardCateType | undefined>'.
#0 49.47 src/pages/event/LogsDetail/index.tsx(1,40): error TS2307: Cannot find module 'plus:/datasource/aliyunSLS' or its corresponding type declarations.
#0 49.47 src/pages/event/LogsDetail/index.tsx(2,44): error TS2307: Cannot find module 'plus:/datasource/elasticsearch' or its corresponding type declarations.
#0 49.47 src/pages/event/Preview/index.tsx(7,43): error TS2307: Cannot find module 'plus:/datasource/anomaly' or its corresponding type declarations.
#0 49.47 src/pages/event/Preview/index.tsx(8,52): error TS2307: Cannot find module 'plus:/datasource/elasticsearch' or its corresponding type declarations.
#0 49.47 src/pages/event/Preview/index.tsx(9,48): error TS2307: Cannot find module 'plus:/datasource/aliyunSLS' or its corresponding type declarations.
#0 49.47 src/pages/event/Preview/index.tsx(10,49): error TS2307: Cannot find module 'plus:/datasource/influxDB' or its corresponding type declarations.
#0 49.47 src/pages/event/detail.tsx(31,46): error TS2307: Cannot find module 'plus:/datasource/elasticsearch' or its corresponding type declarations.
#0 49.47 src/pages/event/detail.tsx(32,42): error TS2307: Cannot find module 'plus:/datasource/aliyunSLS' or its corresponding type declarations.
#0 49.47 src/pages/event/detail.tsx(33,41): error TS2307: Cannot find module 'plus:/datasource/influxDB' or its corresponding type declarations.
#0 49.47 src/pages/explorer/Explorer.tsx(28,39): error TS2307: Cannot find module 'plus:/datasource/aliyunSLS' or its corresponding type declarations.
#0 49.47 src/pages/explorer/Explorer.tsx(30,40): error TS2307: Cannot find module 'plus:/datasource/clickHouse' or its corresponding type declarations.
#0 49.47 src/pages/explorer/Explorer.tsx(31,36): error TS2307: Cannot find module 'plus:/datasource/zabbix' or its corresponding type declarations.
#0 49.47 src/pages/explorer/Explorer.tsx(32,38): error TS2307: Cannot find module 'plus:/datasource/influxDB' or its corresponding type declarations.
#0 49.47 src/routers/index.tsx(66,39): error TS2307: Cannot find module 'plus:/datasource/anomaly' or its corresponding type declarations.
下钻链接里变量格式
官方文档是这个
https://www.elastic.co/guide/en/elasticsearch/reference/8.8/data-streams.html
目前这边读取出来的是 .ds-logs-xxxxx 的索引。
希望能支持 data-streams
的索引读取.
我看新的版本日志分析->即时查询,数据源类型有Loki,但是系统配置->数据源中没有Loki
确保nginx配置没有问题,正常访问同目录下其他文件可以访问,访问fe项目会报错:Unexpected token '<', "<!-- ~ "... is not valid JSON,
大家有遇到过吗?
目前添加告警规则的 规则配置中使用的是 Host
是否可以改成使用 Metrics 比较通用呢?
Host 应该是使用的 对象列表 . 目前没有使用 pushgw 上报,所以没有这个 列表
目前只支持导入 v8+ 版本的仪表盘配置,导入完的图表只支持夜莺目前支持的图表类型和功能
v6.2.0 + 已经不再对 grafana 版本限制,但是低于 v8 的版本导入后可能体验会比较差
以便快速排查问题,需要填写下面的信息
<details>
<summary>Click to expand</summary>
grafana dashboard json
</details>
目前导入后无法支持的配置和功能 (持续更新 2024-05-07)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.