开发Grafana数据源插件有没有办法改变返回到面板的最大数据点数?
传递给 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
}
根据代码评论(来自docs)maxDataPoints
由专家组决定。
无法覆盖此值?
答案 0 :(得分:3)
您可以在maxDataPoints
:
plugin.json
"queryOptions": {
"maxDataPoints": true
},
此功能未记录在案......