![](/img/trans.png)
[英]How to make Grafana's datasource plugin compliant with Query Inspector?
[英]grafana datasource max data points
開發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
由面板決定。
無法覆蓋此值?
您可以使用plugin.json
此設置在查詢選項中啟用maxDataPoints
:
"queryOptions": {
"maxDataPoints": true
},
此功能未記錄...
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.