[英]grafana datasource max data points
Developing a Grafana datasource plugin is there a way to change max number of datapoints returned to panels? 开发Grafana数据源插件是否可以更改返回到面板的最大数据点数量?
Request object passed to datasource.query function is like below: 传递给datasource.query函数的请求对象如下所示:
{
"range": { "from": "2015-12-22T03:06:13.851Z", "to": "2015-12-22T06:48:24.137Z" },
"interval": "5s",
"targets": [
{ "refId": "B", "target": "upper_75" },
{ "refId": "A", "target": "upper_90" }
],
"format": "json",
"maxDataPoints": 2495 //decided by the panel
}
As per code comment (from docs ) maxDataPoints
is decided by the panel. 根据代码注释(来自docs ),
maxDataPoints
由面板决定。
No way to override this value? 无法覆盖此值?
You can enable maxDataPoints
in query options with this setting in plugin.json
: 您可以使用
plugin.json
此设置在查询选项中启用maxDataPoints
:
"queryOptions": {
"maxDataPoints": true
},
This feature is not documented... 此功能未记录...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.