n9e / grafana-n9e-datasource Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
环境:夜莺:v3.7 grafana:v7.3.6
问题点:
配置非root用户token后(只有部分organization权限,能在夜莺上正常查看指标),能看到服务树信息,但无法获取hosts下的endpoint和metric信息,修改成root用户后正常获取;对于no-hosts下的指标,前述非root用户可正常查看
主机100台以上 就会渲染很慢 请求接口数据都保持在毫秒级别...
报错如下:
Error: Object prototype may only be an Object or null: undefined Evaluating http://xx.xx.xx.xx:3000/public/plugins/n9e-datasource/module.js Loading plugins/n9e-datasource/module
在夜莺平台上,查询api为
/api/index/counter/fullmatch ,请求体为
[
{
"endpoints":[
"xxx"
],
"metric":"MemNonHeapUsedM",
"tagkv":[
{
"tagk":"role",
"tagv":[
"DataNode"
]
},
{
"tagk":"app",
"tagv":[
"Hbase",
"hadoop"
]
},
{
"tagk":"service",
"tagv":[
"DataNode"
]
},
{
"tagk":"name",
"tagv":[
"JvmMetrics"
]
}
]
}
]
但是插件请求时,多了一个path维度,这个维度在夜莺上我们是留空的, 夜莺本身没有发出去,但是使用插件也是留空的,但是插件却将这个字段发出,产生的结果是插件发出的请求,不能查询结果
/api/datasources/proxy/1/api/index/counter/fullmatch请求体为
[
{
"endpoints":[
"xxx"
],
"metric":"MemNonHeapUsedM",
"tagkv":[
{
"tagk":"path",
"tagv":[]
}
{
"tagk":"role",
"tagv":[
"DataNode"
]
},
{
"tagk":"app",
"tagv":[
"Hbase",
"hadoop"
]
},
{
"tagk":"service",
"tagv":[
"DataNode"
]
},
{
"tagk":"name",
"tagv":[
"JvmMetrics"
]
}
]
}
]
如题,磁盘监控和网络流量等监控项目,这些具有下一级tag的监控项,在grafana不能使用变量,只能使用确定endpoint,才能展示。
另外,数据源插件module.js文件太大了,用户体验不好~
忘修复,谢谢~
grafana升级到最新版本之后无法获取n9e数据
夜莺的endpoint字段通常是IP,直接用endpoint来作为选择维度的话,在设备较多的情况下不是很友好,通常需要一台一台手动做str的映射。
请问能否实现拉取夜莺的设备name字段?
服务器比较多的话加载图形比较耗资源,且不容易搜索服务器
在grafana添加数据源时候,出现bad gateway,找不到原因
Originally posted by @u31s in #2 (comment)
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.