Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DiDi
nightingale
提交
b50b85f3
N
nightingale
项目概览
DiDi
/
nightingale
9 个月 前同步成功
通知
45
Star
7053
Fork
1161
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
nightingale
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
b50b85f3
编写于
4月 16, 2020
作者:
7
710leo
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of github.com:didi/nightingale
上级
0b2d4d6d
a3d956f7
变更
7
展开全部
隐藏空白更改
内联
并排
Showing
7 changed file
with
9 addition
and
6 deletion
+9
-6
pub/index-5b1dc2bce20c53085703.css
pub/index-5b1dc2bce20c53085703.css
+0
-0
pub/index-5b1dc2bce20c53085703.js
pub/index-5b1dc2bce20c53085703.js
+2
-2
pub/index-5b1dc2bce20c53085703.js.map
pub/index-5b1dc2bce20c53085703.js.map
+1
-0
pub/index-b7ceea40b07d28a3e0c9.js.map
pub/index-b7ceea40b07d28a3e0c9.js.map
+0
-1
pub/index.html
pub/index.html
+1
-1
src/modules/judge/judge/nodata.go
src/modules/judge/judge/nodata.go
+4
-1
web/src/components/Graph/services.tsx
web/src/components/Graph/services.tsx
+1
-1
未找到文件。
pub/index-
b7ceea40b07d28a3e0c9
.css
→
pub/index-
5b1dc2bce20c53085703
.css
浏览文件 @
b50b85f3
文件已移动
pub/index-
b7ceea40b07d28a3e0c9
.js
→
pub/index-
5b1dc2bce20c53085703
.js
浏览文件 @
b50b85f3
此差异已折叠。
点击以展开。
pub/index-5b1dc2bce20c53085703.js.map
0 → 100644
浏览文件 @
b50b85f3
{"version":3,"file":"index-5b1dc2bce20c53085703.js","sources":["webpack:///index-5b1dc2bce20c53085703.js"],"mappings":"AAAA;;;;;;;AAuhZA","sourceRoot":""}
\ No newline at end of file
pub/index-b7ceea40b07d28a3e0c9.js.map
已删除
100644 → 0
浏览文件 @
0b2d4d6d
{"version":3,"file":"index-b7ceea40b07d28a3e0c9.js","sources":["webpack:///index-b7ceea40b07d28a3e0c9.js"],"mappings":"AAAA;;;;;;;AAuhZA","sourceRoot":""}
\ No newline at end of file
pub/index.html
浏览文件 @
b50b85f3
<!doctype html>
<html><head><meta
charset=
"UTF-8"
><title>
Nightingale
</title><link
rel=
"shortcut icon"
href=
"/favicon.ico"
><link
href=
"/index-b7ceea40b07d28a3e0c9.css"
rel=
"stylesheet"
></head><body><div
id=
"react-content"
></div><script
src=
"/lib-033bee8514de110e36ef.dll.js"
></script><script
src=
"/index-b7ceea40b07d28a3e0c9.js"
></script></body></html>
\ No newline at end of file
<!doctype html>
<html><head><meta
charset=
"UTF-8"
><title>
Nightingale
</title><link
rel=
"shortcut icon"
href=
"/favicon.ico"
><link
href=
"/index-5b1dc2bce20c53085703.css"
rel=
"stylesheet"
></head><body><div
id=
"react-content"
></div><script
src=
"/lib-033bee8514de110e36ef.dll.js"
></script><script
src=
"/index-5b1dc2bce20c53085703.js"
></script></body></html>
\ No newline at end of file
src/modules/judge/judge/nodata.go
浏览文件 @
b50b85f3
...
...
@@ -45,6 +45,7 @@ func nodataJudge() {
Endpoint
:
endpoint
,
Metric
:
stra
.
Exprs
[
0
]
.
Metric
,
Tags
:
""
,
TagsMap
:
map
[
string
]
string
{},
DsType
:
"GAUGE"
,
}
...
...
@@ -56,7 +57,8 @@ func nodataJudge() {
for
_
,
data
:=
range
respData
{
var
metric
,
tag
string
arr
:=
strings
.
Split
(
data
.
Counter
,
"/"
)
// 兼容格式disk.bytes.free/mount=/data/docker/overlay2/xxx/merged
arr
:=
strings
.
SplitN
(
data
.
Counter
,
"/"
,
2
)
if
len
(
arr
)
==
2
{
metric
=
arr
[
0
]
tag
=
arr
[
1
]
...
...
@@ -71,6 +73,7 @@ func nodataJudge() {
Endpoint
:
data
.
Endpoint
,
Metric
:
metric
,
Tags
:
tag
,
TagsMap
:
dataobj
.
DictedTagstring
(
tag
),
DsType
:
data
.
DsType
,
Step
:
data
.
Step
,
}
...
...
web/src/components/Graph/services.tsx
浏览文件 @
b50b85f3
...
...
@@ -46,7 +46,7 @@ export function fetchMetrics(selectedEndpoint: Endpoints, endpoints: Endpoints)
endpoints
:
selectedEndpoint
,
}),
},
false
).
then
((
data
)
=>
{
return
_
.
chain
(
data
.
metrics
).
flattenDeep
().
union
().
sortBy
((
o
)
=>
{
return
_
.
chain
(
data
.
metrics
).
compact
().
flattenDeep
().
union
().
sortBy
((
o
)
=>
{
return
_
.
lowerCase
(
o
);
}).
value
();
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录