插件 〉JSON
JSON
JSON API Grafana 数据源
JSON 数据源对任意后端执行请求,并将 JSON 响应解析为 Grafana 数据帧。
安装
使用 grafana-cli
工具安装此插件
grafana-cli plugins install simpod-json-datasource
请参见 此处 了解更多信息。
设置
添加数据源时,将您的 API 端点添加到 URL
字段。数据源将向该 URL 发送请求。
如果您想添加自定义请求头,请将 Access 设置为 Server
。
API
OpenAPI 定义位于 openapi.yaml。 您可以使用 Swagger 编辑器进行探索。
要使用此数据源,后端需要实现 4 个端点
GET /
,响应状态码为 200。用于数据源配置页面上的“测试连接”。POST /metrics
,返回可用指标。POST /metric-payload-options
,返回指标 payload 选项列表。POST /query
,返回面板数据或注解。
这 3 个端点是可选的
POST /variable
,返回类型为Query
的变量数据。POST /tag-keys
,返回 ad hoc 过滤器所需的标签键。POST /tag-values
,返回 ad hoc 过滤器所需的标签值。
/metrics
POST /metrics
在 面板 > 查询
页面。在使用Builder
模式配置查询请求时,它将发送请求获取可用指标。请求正文将携带当前指标和 payload。在Builder
模式下,如果加载配置中的reloadMetric
值为 true,则当值被修改/切换时也会触发此 api。
示例请求
{}
或者。
{
"metric": "DescribeMetricList",
"payload":{
"cloud": "cf6591c5dad211eaa22100163e120f6e",
"namespace": "MySQL"
}
}
示例响应
[{
"label": "Describe metric list", // Optional. If the value is empty, use the value as the label
"value": "DescribeMetricList", // The value of the option.
"payloads": [{ // Configuration parameters of the payload.
"label": "Namespace", // The label of the payload. If the value is empty, use the name as the label.
"name": "namespace", // The name of the payload.
"type": "select", // If the value is select, the UI of the payload is a radio box. If the value is multi-select, the UI of the payload is a multi selection box; if the value is input, the UI of the payload is an input box; if the value is textarea, the UI of the payload is a multiline input box. The default is input.
"placeholder": "Please select namespace", // Input box / selection box prompt information.
"reloadMetric": true, // Whether to overload the metrics API after modifying the value of the payload.
"width": 10, // Set the input / selection box width to a multiple of 8px.
"options": [{ // If the payload type is select / multi-select, the list is the configuration of the option list.
"label": "acs_mongodb", // The label of the payload select option.
"value": "acs_mongodb", // The label of the payload value.
},{
"label": "acs_rds",
"value": "acs_rds",
}]
},{
"name": "metric",
"type": "select"
},{
"name": "instanceId",
"type": "select"
}]
},{
"value": "DescribeMetricLast",
"payloads": [{
"name": "namespace",
"type": "select"
},{
"name": "metric",
"type": "select"
},{
"name": "instanceId",
"type": "multi-select"
}]
}]
显示如下:
/metric-payload-options
POST /metric-payload-options
当 payload type
为 select
或 multi-select
且 payload options
配置为空时,展开下拉菜单将触发此 API。请求正文将携带当前指标和 payload。
示例请求
{
"metric":"DescribeMetricList", // Current metric.
"payload": { // Current payload.
"namespace":"acs_ecs"
},
"name":"cms_metric" // The payload name of the option list needs to be obtained.
}
示例响应
[{
"label": "CPUUtilization",
"value": "CPUUtilization"
},{
"label": "DiskReadIOPS",
"value": "DiskReadIOPS"
},{
"label": "memory_freeutilization",
"value": "memory_freeutilization"
}]
显示如下:
/query
POST /query
示例请求
{
"panelId": 1,
"range": {
"from": "2016-10-31T06:33:44.866Z",
"to": "2016-10-31T12:33:44.866Z",
"raw": {
"from": "now-6h",
"to": "now"
}
},
"rangeRaw": {
"from": "now-6h",
"to": "now"
},
"interval": "30s",
"intervalMs": 30000,
"maxDataPoints": 550,
"targets": [
{ "target": "Packets", "refId": "A", "payload": { "additional": "optional json" } },
{ "target": "Errors", "refId": "B" }
],
"filters": [{
"key": "City",
"operator": "=",
"value": "Berlin"
}]
}
响应正文可以包含任何可以使用 此函数 转换为 Grafana 数据帧 的内容或可转换为 Grafana 数据帧 的内容。返回的数据将通过此方式映射到 DataFrame。
示例响应(指标值,浮点数;Unix 时间戳,毫秒)
[
{
"target":"pps in",
"datapoints":[
[622,1450754160000],
[365,1450754220000]
]
},
{
"target":"pps out",
"datapoints":[
[861,1450754160000],
[767,1450754220000]
]
},
{
"target":"errors out",
"datapoints":[
[861,1450754160000],
[767,1450754220000]
]
},
{
"target":"errors in",
"datapoints":[
[861,1450754160000],
[767,1450754220000]
]
}
]
[
{
"columns":[
{"text":"Time","type":"time"},
{"text":"Country","type":"string"},
{"text":"Number","type":"number"}
],
"rows":[
[1234567,"SE",123],
[1234567,"DE",231],
[1234567,"US",321]
],
"type":"table"
}
]
请求和响应中的 target
关系为 1:n。对于一个请求的 target
,可以在响应中返回多个 target。
Payload
通过 Payload
输入字段支持为每个指标发送额外数据,您可以在其中输入任何 JSON 字符串。
例如,当在 Payload
输入字段中输入 { "additional": "optional json" }
时,它将作为 "payload"
键下的目标数据附加到请求中
{ "target": "upper_50", "refId": "A", "payload": { "additional": "optional json" } }
您也可以输入变量
/variable
POST /variable
示例请求正文
{
"payload":{"target":"systems"},
"range":{
"from":"2022-02-14T08:09:32.164Z",
"to":"2022-02-21T08:09:32.164Z",
"raw":{"from":"now-7d","to":"now"}
}
}
"payload"
是您在变量编辑表单中的输入值。
示例响应
[
{"__text":"Label 1", "__value":"Value1"},
{"__text":"Label 2", "__value":"Value2"},
{"__text":"Label 3", "__value":"Value3"}
]
也支持 DataFrame。
/tag-keys
POST /tag-keys
示例请求正文
{ }
tag keys API 返回
[
{"type":"string","text":"City"},
{"type":"string","text":"Country"}
]
/tag-values
POST /tag-values
示例请求正文
{"key": "City"}
tag values API 返回
[
{"text": "Eins!"},
{"text": "Zwei"},
{"text": "Drei!"}
]
在 Grafana Cloud 上安装 JSON
在 Grafana Cloud 实例上安装插件只需一键操作;更新也是如此。很棒,对吧?
请注意,插件可能需要长达 1 分钟才会出现在您的 Grafana 中。
在 Grafana Cloud 实例上安装插件只需一键操作;更新也是如此。很棒,对吧?
请注意,插件可能需要长达 1 分钟才会出现在您的 Grafana 中。
在 Grafana Cloud 实例上安装插件只需一键操作;更新也是如此。很棒,对吧?
请注意,插件可能需要长达 1 分钟才会出现在您的 Grafana 中。
在 Grafana Cloud 实例上安装插件只需一键操作;更新也是如此。很棒,对吧?
请注意,插件可能需要长达 1 分钟才会出现在您的 Grafana 中。
在 Grafana Cloud 实例上安装插件只需一键操作;更新也是如此。很棒,对吧?
请注意,插件可能需要长达 1 分钟才会出现在您的 Grafana 中。
在 Grafana Cloud 实例上安装插件只需一键操作;更新也是如此。很棒,对吧?
请注意,插件可能需要长达 1 分钟才会出现在您的 Grafana 中。
在 Grafana Cloud 实例上安装插件只需一键操作;更新也是如此。很棒,对吧?
请注意,插件可能需要长达 1 分钟才会出现在您的 Grafana 中。
了解更多信息,请访问关于插件安装的文档。
在本地 Grafana 上安装
对于本地实例,插件通过简单的 CLI 命令进行安装和更新。插件不会自动更新,但当有可用更新时,您将在 Grafana 中收到通知。
1. 安装数据源
使用 grafana-cli 工具从命令行安装 JSON
grafana-cli plugins install
插件将安装到您的 grafana 插件目录;默认路径为 /var/lib/grafana/plugins。有关 cli 工具的更多信息。
2. 配置数据源
从 Grafana 主菜单访问,新安装的数据源可以立即在“数据源”部分添加。
接下来,点击右上角的“添加数据源”按钮。数据源将在类型选择框中供您选择。
要查看已安装的数据源列表,请点击主菜单中的插件项。核心数据源和已安装数据源都会显示。
更新日志
v0.6.6
主要变更
- chore(deps): update grafana packages to v2 (major) by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/623
- chore(deps): update dependency sass-loader to v16 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/613
- chore(deps): update yarn to v4.5.0 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/634
- chore(deps): bump dompurify from 3.0.11 to 3.1.6 by @dependabot in https://github.com/simPod/GrafanaJsonDatasource/pull/635
- chore(deps): bump path-to-regexp from 1.8.0 to 1.9.0 by @dependabot in https://github.com/simPod/GrafanaJsonDatasource/pull/632
- chore(deps): update dependency ts-pattern to ^5.4.0 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/636
- chore(deps): update grafana packages to ^11.2.1 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/638
- chore(deps): update grafana packages to ^11.2.2 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/639
- chore(deps): update dependency @grafana/experimental to ^2.1.1 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/640
- chore(deps): update dependency @grafana/experimental to ^2.1.2 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/641
- chore(deps): update dependency ts-pattern to ^5.5.0 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/643
- chore(deps): update dependency eslint-plugin-react-hooks to v5 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/642
- chore(deps): update dependency @emotion/css to ^11.13.4 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/607
- chore(deps): bump @testing-library/* by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/644
- chore(deps): update dependency tslib to ^2.8.0 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/645
- chore(deps): update yarn to v4.5.1 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/647
- chore(deps): update dependency tslib to ^2.8.1 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/650
- chore(deps): update emotion monorepo by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/652
- chore(deps): bump cross-spawn from 7.0.3 to 7.0.6 by @dependabot in https://github.com/simPod/GrafanaJsonDatasource/pull/651
- chore(deps): update node.js to v22 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/649
- chore(deps): update yarn to v4.5.2 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/653
- chore(deps): update yarn to v4.5.3 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/654
- chore(deps): update dependency zod to ^3.24.0 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/656
- chore(deps): update dependency zod to ^3.24.1 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/659
- chore(deps): update dependency ts-pattern to ^5.6.0 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/661
- chore(deps): update dependency react-virtualized-auto-sizer to ^1.0.25 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/662
- chore(deps): bump nanoid from 3.3.7 to 3.3.8 by @dependabot in https://github.com/simPod/GrafanaJsonDatasource/pull/657
- chore(deps): update grafana packages to ^11.4.0 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/648
- docs: update changelog by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/663
- feat: pass user id in req headers by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/664
完整更新日志: https://github.com/simPod/GrafanaJsonDatasource/compare/v0.6.5...0.6.6
v0.6.5
主要变更
- chore(deps): update grafana packages to v11 (major) by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/565
- chore: adapt jest and webpack setup to current grafana recommended by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/596
- feat: use filterQuery function for filtering hidden targets by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/597
- refactor: use GrafanaTheme2 by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/599
- fix(query-builder): ensure the
name
is present in MetricPayloadConfig by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/600 - fix(query-builder): show unknown payload only after the lastQuery changes by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/601
- fix(query-builder): passthrough MetricPayloadConfig by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/602
- fix(query-builder): use MetricPayloadConfig's name if label is not present by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/603
- chore(deps): update dependency glob to v11 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/604
- chore(deps): update dependency @grafana/experimental to ^1.7.13 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/609
- chore(deps): update grafana packages to ^11.1.1 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/610
- chore(deps): update grafana packages to ^11.1.2 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/611
- chore(deps): update grafana packages to ^11.1.3 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/612
- chore(deps): update yarn to v4.4.0 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/616
- chore(deps): update dependency @grafana/experimental to ^1.8.0 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/619
- chore(deps): update dependency ts-pattern to ^5.3.1 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/620
- chore(deps): update grafana packages to ^11.1.4 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/621
- chore(deps): update dependency tslib to ^2.7.0 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/624
- chore(deps): update yarn to v4.4.1 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/626
- chore(deps): update grafana packages to ^11.2.0 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/627
- chore(deps): update dependency webpack to v5.94.0 [security] by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/629
- chore(deps): bump micromatch from 4.0.5 to 4.0.8 by @dependabot in https://github.com/simPod/GrafanaJsonDatasource/pull/625
- chore(deps): update dependency eslint-plugin-jsdoc to v50 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/618
- fix: require Grafana v10+ by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/631
完整更新日志: https://github.com/simPod/GrafanaJsonDatasource/compare/v0.6.4...v0.6.5
v0.6.4
主要变更
- chore(deps): update actions/setup-go action to v4 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/458
- chore(deps): update grafana packages to ^9.5.5 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/459
- chore(deps): update dependency tslib to ^2.6.0 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/460
- chore(deps): update dependency @grafana/experimental to ^1.6.0 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/461
- chore(deps): update yarn to v3.6.1 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/462
- chore(deps): update grafana packages to ^9.5.6 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/467
- chore(deps): bump semver from 5.7.1 to 5.7.2 by @dependabot in https://github.com/simPod/GrafanaJsonDatasource/pull/466
- chore(deps): update dependency prettier to v3 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/463
- chore(deps): update dependency @typescript-eslint/eslint-plugin to v6 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/465
- chore(deps): update grafana packages to v10 (major) by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/443
- chore(deps): update dependency ts-pattern to ^5.0.2 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/469
- chore(deps): update dependency ts-pattern to ^5.0.3 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/470
- chore(deps): bump word-wrap from 1.2.3 to 1.2.4 by @dependabot in https://github.com/simPod/GrafanaJsonDatasource/pull/472
- chore(deps): update dependency @grafana/experimental to ^1.6.1 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/473
- chore(deps): update dependency ts-pattern to ^5.0.4 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/474
- chore(deps): update dependency @grafana/experimental to ^1.6.2 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/475
- chore(deps): update dependency tslib to ^2.6.1 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/476
- chore(deps): update grafana packages to ^10.0.3 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/477
- chore(deps): update dependency @grafana/experimental to ^1.7.0 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/479
- chore(deps): update dependency ts-pattern to ^5.0.5 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/480
- chore(deps): update yarn to v3.6.2 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/483
- chore(deps): update dependency tslib to ^2.6.2 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/484
- chore(deps): update grafana packages to ^10.1.0 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/485
- chore(deps): update yarn to v3.6.3 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/486
- chore(deps): update dependency @testing-library/jest-dom to v6 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/482
- chore(deps): update grafana packages to ^10.1.1 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/488
- chore(deps): update actions/checkout action to v4 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/489
- chore(deps): update dependency @grafana/experimental to ^1.7.2 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/491
- chore(deps): update grafana packages to ^10.1.2 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/492
- chore(deps): bump @adobe/css-tools from 4.1.0 to 4.3.1 by @dependabot in https://github.com/simPod/GrafanaJsonDatasource/pull/487
- chore(deps): update magefile/mage-action action to v3 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/490
- chore(deps): update actions/checkout digest to 8ade135 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/493
- chore(deps): update dependency @grafana/experimental to ^1.7.3 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/495
- chore(deps): update actions/checkout action to v4 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/494
- chore(deps): update grafana packages to ^10.1.4 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/496
- chore(deps): update yarn to v3.6.4 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/497
- chore(deps): update dependency fork-ts-checker-webpack-plugin to v9 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/499
- chore(deps): update grafana packages to ^10.1.5 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/500
- chore(deps): update dependency @grafana/experimental to ^1.7.4 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/501
- chore(deps): bump postcss from 8.4.24 to 8.4.31 by @dependabot in https://github.com/simPod/GrafanaJsonDatasource/pull/498
- chore(deps): bump @babel/traverse from 7.22.5 to 7.23.2 by @dependabot in https://github.com/simPod/GrafanaJsonDatasource/pull/502
- chore(deps): update actions/setup-node action to v4 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/505
- chore(deps): update dependency node to v20 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/506
- chore(deps): update yarn to v4 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/503
- chore(deps): update grafana packages to ^10.2.0 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/507
- chore(deps): update yarn to v4.0.1 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/508
- ci: run grafana compatibility check on master branches by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/510
- feat: use yarn pnp by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/511
- chore(deps): update grafana packages to ^10.2.0 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/509
- chore(deps): update yarn to v4.0.2 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/513
- chore(deps): update grafana packages to ^10.2.1 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/514
- chore(deps): update grafana packages to ^10.2.2 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/515
- chore(deps): update dependency ts-pattern to ^5.0.6 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/517
- chore(deps): update actions/setup-go action to v5 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/518
- chore(deps): update actions/stale action to v9 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/519
- chore(deps): update grafana packages to ^10.2.3 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/520
- chore(deps): update dependency eslint-plugin-jsdoc to v47 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/521
- chore(deps): bump @adobe/css-tools from 4.3.1 to 4.3.2 by @dependabot in https://github.com/simPod/GrafanaJsonDatasource/pull/516
- chore(deps): update dependency eslint-plugin-jsdoc to v48 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/522
- chore(deps): update dependency @grafana/experimental to ^1.7.5 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/525
- chore(deps): update dependency copy-webpack-plugin to v12 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/527
- chore(deps): update dependency react-virtualized-auto-sizer to ^1.0.21 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/530
- chore(deps): update dependency @grafana/experimental to ^1.7.6 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/531
- chore(deps): update dependency sass-loader to v14 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/529
- chore(deps): update grafana packages to ^10.3.1 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/532
- chore(deps): update dependency @grafana/experimental to ^1.7.7 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/533
- chore(deps): update dependency @grafana/experimental to ^1.7.8 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/534
- chore(deps): update yarn to v4.1.0 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/535
- chore(deps): update dependency @grafana/experimental to ^1.7.9 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/536
- chore(deps): update dependency react-virtualized-auto-sizer to ^1.0.22 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/537
- chore(deps): update dependency @grafana/experimental to ^1.7.10 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/538
- chore(deps): update grafana packages to ^10.3.3 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/540
- chore(deps): update dependency ts-pattern to ^5.0.8 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/541
- chore(deps): update dependency react-virtualized-auto-sizer to ^1.0.23 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/543
- chore(deps): update yarn to v4.1.1 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/544
- chore(deps): update dependency @typescript-eslint/eslint-plugin to v7 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/539
- chore(deps): bump ip from 1.1.5 to 1.1.9 by @dependabot in https://github.com/simPod/GrafanaJsonDatasource/pull/542
- chore(deps): update dependency react-virtualized-auto-sizer to ^1.0.24 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/546
- chore(deps): update dependency ts-pattern to ^5.1.0 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/548
- chore(deps): update softprops/action-gh-release action to v2 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/547
- chore(deps): update dependency @grafana/eslint-config to v7 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/526
- chore(deps): update grafana packages to ^10.4.1 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/545
- chore(deps): update dependency @grafana/schema to ^10.4.1 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/549
- chore(deps): update dependency css-loader to v7 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/551
- chore(deps): update dependency ts-pattern to ^5.1.1 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/553
- chore(deps): update grafana packages to ^10.4.2 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/557
- chore(deps): update react monorepo to ^18.3.0 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/559
- chore(deps): update react monorepo to ^18.3.1 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/560
- chore(deps): update yarn to v4.2.1 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/561
- chore(deps): update yarn to v4.2.2 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/562
- chore(deps): update grafana packages by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/564
- chore(deps): update dependency ts-pattern to ^5.1.2 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/566
- chore(deps): update dependency tslib to ^2.6.3 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/568
- chore(deps): update dependency eslint-plugin-deprecation to v3 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/567
- chore(deps): update yarn to v4.3.0 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/570
- chore(deps): bump braces from 3.0.2 to 3.0.3 by @dependabot in https://github.com/simPod/GrafanaJsonDatasource/pull/571
- chore(deps): bump tar from 6.1.11 to 6.2.1 by @dependabot in https://github.com/simPod/GrafanaJsonDatasource/pull/556
- chore(deps): update dependency style-loader to v4 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/554
- chore(deps): update dependency ts-pattern to ^5.2.0 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/572
- chore(deps): update dependency @grafana/experimental to ^1.7.12 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/573
- chore(deps): update grafana packages to ^10.4.4 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/574
- chore(deps): update yarn to v4.3.1 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/577
- chore(deps): update grafana packages to ^10.4.5 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/578
- fix:when target is hide, not request with it by @monster5475 in https://github.com/simPod/GrafanaJsonDatasource/pull/579
- chore(deps): bump ws from 8.13.0 to 8.17.1 by @dependabot in https://github.com/simPod/GrafanaJsonDatasource/pull/576
- feat: replace LegacyForms.FormField with Field by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/580
- fix: add margin to Experimental label by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/581
- refactor: migrate from Vector interface by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/582
- refactor: use DataQuery from @grafana/schema by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/583
- fix: remove nonexistent
rangeRaw
property from/variable
query by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/584 - test: remove nonexistent
selected
property by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/585 - fix: remove nonexistent type arg by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/586
- refactor: extract doFetch by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/587
- refactor: handle undefined variable properly by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/588
- test: add missing refId by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/589
- feat: remove adhocFilters property from request by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/590
- feat: use VariableSupport by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/591
- test: import TemplateSrv from @grafana/runtime by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/592
- test: remove unused updateTemplateData method by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/593
- chore(deps): require @testing-library/dom by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/594
- chore(deps): update dependency @testing-library/react to v16 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/558
- chore(deps): remove @types/testing-library__jest-dom by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/595
新贡献者
- @monster5475 首次贡献于 https://github.com/simPod/GrafanaJsonDatasource/pull/579
完整更新日志: https://github.com/simPod/GrafanaJsonDatasource/compare/v0.6.3...v0.6.4
v0.6.3
主要变更
- chore(deps): update yarn to v3.5.0 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/398
- chore(deps): update actions/stale action to v8 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/399
- chore(deps): update dependency ts-pattern to ^4.2.2 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/400
- chore(deps): update dependency react-virtualized-auto-sizer to ^1.0.8 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/401
- chore(deps): update dependency react-virtualized-auto-sizer to ^1.0.9 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/402
- chore(deps): update dependency react-virtualized-auto-sizer to ^1.0.11 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/404
- chore(deps): update actions/setup-go action to v4 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/397
- chore(deps): update dependency react-virtualized-auto-sizer to ^1.0.12 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/405
- chore(deps): update dependency react-virtualized-auto-sizer to ^1.0.13 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/406
- chore(deps): update dependency react-virtualized-auto-sizer to ^1.0.14 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/407
- chore(deps): update dependency eslint-plugin-jsdoc to v41 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/408
- chore(deps): bump webpack from 5.73.0 to 5.79.0 by @dependabot in https://github.com/simPod/GrafanaJsonDatasource/pull/409
- chore(deps): update dependency react-virtualized-auto-sizer to ^1.0.15 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/411
- chore(deps): update dependency eslint-plugin-jsdoc to v43 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/413
- chore(deps): bump grafana to v9.5 by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/416
- chore(deps): update yarn to v3.5.1 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/417
- feat: set alerting and backend properties to false by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/419
- chore(deps): update dependency ts-pattern to ^4.3.0 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/420
- chore(deps): update dependency react-virtualized-auto-sizer to ^1.0.16 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/422
- chore(deps): update dependency react-virtualized-auto-sizer to ^1.0.17 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/423
- chore(deps): update dependency eslint-plugin-jsdoc to v44 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/421
- fix: use scoped variables in the query builder by @maartenofzo in https://github.com/simPod/GrafanaJsonDatasource/pull/414
- chore(deps): update yarn to v3.6.0 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/429
- ci: check compatibility workflow by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/431
- chore(deps): update dependency eslint-plugin-jsdoc to v46 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/427
- ci: migrate eslint by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/432
- ci: migrate prettier by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/433
- chore(grafana): migrate tsconfig by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/434
- ci: run typecheck by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/436
- chore: rename eslint to lint by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/437
- docs(grafana): config readme by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/438
- chore(deps): update dependency @grafana/eslint-config to v6 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/440
- chore(grafana): move few dev deps by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/444
- chore(grafana): add @grafana/tsconfig by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/445
- chore(grafana): add .nvmrc by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/447
- chore(deps): update grafana packages by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/446
- chore(grafana): add tslib by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/449
- chore(grafana): add $schema to plugin.json by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/451
- chore(grafana): migrate webpack by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/450
- chore(deps): update dependency sass to v1.63.4 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/452
- chore(grafana): migrate jest by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/435
- chore(grafana): use caret versions where appropriate by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/454
- chore(deps): update node.js to v18 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/448
- ci: use node 19 by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/455
- chore(deps): update dependency typescript to v5 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/456
- chore(deps): update dependency react-virtualized-auto-sizer to ^1.0.20 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/425
- chore(deps): update dependency ts-pattern to v5 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/442
- ci: release via GA by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/457
新贡献者
- @maartenofzo 首次贡献于 https://github.com/simPod/GrafanaJsonDatasource/pull/414
完整更新日志: https://github.com/simPod/GrafanaJsonDatasource/compare/v0.6.2...v0.6.3
v0.6.2
主要变更
- chore(deps): update dependency ts-pattern to ^4.1.4 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/384
- chore(deps): update dependency eslint-plugin-jsdoc to v40 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/385
- chore(deps): update dependency @testing-library/react to v14 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/386
- test: update TemplateSrvStub regex by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/387
- refactor(grafana): use credentials instead of withCredentials by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/388
- refactor: remove react module types override by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/389
- refactor(grafana): use native variable types by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/390
- chore(deps): update dependency ts-pattern to ^4.2.0 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/391
- chore(deps): update dependency ts-pattern to ^4.2.1 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/393
- fix: skip scoped variables with undefined value by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/394
- fix: do not suppress datasource errors by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/395
完整更新日志: https://github.com/simPod/GrafanaJsonDatasource/compare/v0.6.1...v0.6.2
v0.6.1
主要变更
- ci: check for dupes in lockfile by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/366
- chore(deps): bump grafana packages to latest v9 by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/359
- docs: sync CHANGELOG with releases by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/367
- chore(deps): bump json5 from 2.2.1 to 2.2.3 by @dependabot in https://github.com/simPod/GrafanaJsonDatasource/pull/371
- docs(openapi): add /variable endpoint by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/372
- chore(deps): bump ua-parser-js from 1.0.32 to 1.0.33 by @dependabot in https://github.com/simPod/GrafanaJsonDatasource/pull/375
- chore(deps): bump simple-git from 3.15.1 to 3.16.0 by @dependabot in https://github.com/simPod/GrafanaJsonDatasource/pull/377
- chore(deps): update yarn to v3.4.0 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/378
- chore(deps): update yarn to v3.4.1 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/379
- chore: prepare react dom testing by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/382
- fix: properly display values in QueryBuilderTag by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/383
- chore(deps): bump http-cache-semantics from 4.1.0 to 4.1.1 by @dependabot in https://github.com/simPod/GrafanaJsonDatasource/pull/381
完整更新日志: https://github.com/simPod/GrafanaJsonDatasource/compare/v0.6.0...0.6.1
v0.6.0
新的 Builder 模式主要由 @MicroOps-cn 实现,非常感谢!🎉 请参阅文档了解详情。
⚠️ 破坏性变更
完全实现 /metrics
端点。还建议实现 /metric-payload-options
端点。
简而言之,您可以将端点路径从 /search
更改为 /metrics
,它应该能继续工作。
主要变更
- chore(deps): update dependency @grafana/eslint-config to v4 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/312
- chore(deps): remove @typescript-eslint/eslint-plugin as direct dep by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/313
- chore(deps): update yarn to v3.2.2 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/314
- chore(deps): update dependency @grafana/eslint-config to v5 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/317
- chore(deps): update yarn to v3.2.3 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/323
- chore(deps): update actions/stale action to v6 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/328
- chore(deps): update yarn to v3.2.4 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/329
- feat: add example server by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/330
- test: use await in tests so jest does not timeout with no reason by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/331
- chore(deps): bump loader-utils from 2.0.2 to 2.0.3 by @dependabot in https://github.com/simPod/GrafanaJsonDatasource/pull/333
- chore(deps): bump terser from 5.14.1 to 5.15.1 by @dependabot in https://github.com/simPod/GrafanaJsonDatasource/pull/334
- chore(deps): bump loader-utils from 2.0.3 to 2.0.4 by @dependabot in https://github.com/simPod/GrafanaJsonDatasource/pull/335
- chore(deps): update yarn to v3.3.0 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/336
- chore(deps): bump simple-git from 3.7.1 to 3.15.1 by @dependabot in https://github.com/simPod/GrafanaJsonDatasource/pull/340
- New features: builder mode (like the builder mode of Prometheus). by @MicroOps-cn in https://github.com/simPod/GrafanaJsonDatasource/pull/324
- chore(deps): update dependency @grafana/experimental to v1 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/342
- chore(deps): update yarn to v3.3.1 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/343
- chore(deps): update actions/stale action to v7 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/344
- fix: change /options method to POST by @0xMihir in https://github.com/simPod/GrafanaJsonDatasource/pull/345
- refactor: drop Format (queryType) by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/346
- ci: run eslint and prettier in CI by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/348
- refactor: drop MetricConfig.text by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/347
- refactor: improve unknown payload by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/349
- refactor: rename Beta to Experimental by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/351
- refactor: rename /options to /metric-payload-options by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/350
- refactor: reuse getMetricPayloadOptions() by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/352
- docs: drop TOC since it can be generated by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/353
- docs: use images from v0.6 in Readme by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/354
- docs: refresh setup image by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/355
- docs: use absolute paths to images by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/356
- docs: refresh builder images by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/357
- chore: add plugin-interactive-tools by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/358
- chore(deps): bump grafana eslint config to v5.1 by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/361
- docs: mention Swagger editor by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/362
- chore: raise openapi version to 3.0.3 by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/363
- ci: make renovate bump non-dev deps by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/360
- chore(deps): update dependency react-virtualized-auto-sizer to ^1.0.7 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/364
v0.5.0
- chore: require Grafana 9 by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/308
- chore(deps): update dependency @grafana/runtime to v9 by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/298
- chore(deps): update grafana packages to v9 (major) by @renovate in https://github.com/simPod/GrafanaJsonDatasource/pull/310
- ci: bump Node to v17 by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/305
- ci: bump Node to v18 by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/311
v0.4.2
- fix: update openapi.yaml to match changes from v0.3.0. by @taylor-sutton in https://github.com/simPod/GrafanaJsonDatasource/pull/281
- Update /variables in README.md by @umyio in https://github.com/simPod/GrafanaJsonDatasource/pull/288 https://github.com/simPod/GrafanaJsonDatasource/pull/304
- Update @grafana deps patch versions + rxjs
- Drop unused annotations code by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/252
v0.4.1
- docs: Document new
/variable
endpoint by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/232
v0.4.0
此版本增加了对查询变量的支持。现在它们调用 /variable
端点而不是 /search
。
如果您之前使用此数据源与查询变量配合使用,它可能将无法正常工作。请提交问题以获得支持。
主要变更
- Upgrade grafana deps to v8.1.x by @simPod in https://github.com/simPod/GrafanaJsonDatasource/pull/193
- 由 @dependabot 在 https://github.com/simPod/GrafanaJsonDatasource/pull/194 中将 tmpl 从 1.0.4 升级到 1.0.5
- 由 @simPod 在 https://github.com/simPod/GrafanaJsonDatasource/pull/195 中将 Grafana deps 升级到 v8.1.5
- 不要使用
event.currentTarget.name
,因为它很脆弱,由 @simPod 在 https://github.com/simPod/GrafanaJsonDatasource/pull/196 中完成 - 在
VariableQueryEditor::checkValidJSON()
中使用正确的 VariableQuery 变量,由 @simPod 在 https://github.com/simPod/GrafanaJsonDatasource/pull/197 中完成 - 不要覆盖 MetricFindValue 类型,由 @simPod 在 https://github.com/simPod/GrafanaJsonDatasource/pull/198 中完成
- 使用 rxjs,由 @simPod 在 https://github.com/simPod/GrafanaJsonDatasource/pull/199 中完成
- 将 @types/lodash 升级到 4.14.176,由 @simPod 在 https://github.com/simPod/GrafanaJsonDatasource/pull/210 中完成
- 将 rxjs 升级到 7.4,由 @simPod 在 https://github.com/simPod/GrafanaJsonDatasource/pull/211 中完成
- 为 GA 添加 workflow_dispatch 触发器,由 @simPod 在 https://github.com/simPod/GrafanaJsonDatasource/pull/212 中完成
- 使用 actions/setup-node@v2,由 @simPod 在 https://github.com/simPod/GrafanaJsonDatasource/pull/214 中完成
- 在 node 16 上运行 CI,由 @simPod 在 https://github.com/simPod/GrafanaJsonDatasource/pull/216 中完成
- 使用 Yarn v3,由 @simPod 在 https://github.com/simPod/GrafanaJsonDatasource/pull/215 中完成
- 由 @chenyahui 在 https://github.com/simPod/GrafanaJsonDatasource/pull/220 中修复 Readme 中的拼写错误
- 由 @simPod 在 https://github.com/simPod/GrafanaJsonDatasource/pull/228 中为 DataSource 添加类型
- 由 @simPod 在 https://github.com/simPod/GrafanaJsonDatasource/pull/227 中将依赖项升级到 Grafana 8.3.x
- 由 @simPod 在 https://github.com/simPod/GrafanaJsonDatasource/pull/200 中添加查询变量的支持
- 由 @simPod 在 https://github.com/simPod/GrafanaJsonDatasource/pull/229 中将 stale bot 替换为 GA
v0.3.0
特性
- 支持 DataFrame。现在每个响应都转换为 DataFrame。
- 使用原生注解
- 支持
interval
变量
破坏性变更
- 移除了“格式为”输入框,以及请求中的
type
字段。 - 请求中的字段
target.data
已重命名为target.payload
(编辑您的仪表盘 JSON 便于迁移)。 - 您应该重新保存您的变量,因为旧版本支持已移除(它需要
{ query: string, format: string }
格式)https://github.com/simPod/GrafanaJsonDatasource/commit/77a042f56f334ee1e48b396a7a459cea028d0b3d
约束设置为 Grafana 8.0.0+
v0.2.6
查询变量现在有“原始 JSON”开关。启用时,查询字符串将被解析为 JSON 对象。禁用时,查询字符串将被放入 target
键中以创建 JSON 对象。
v0.2.5
- 安全依赖升级
- 未选择指标时不要发出查询 #165
- 这应该是 0.2.x 系列的最后一个版本
v0.2.4
- 在 #149 中修复了附加 JSON 的处理顺序,现在我们先替换变量,然后再解析 JSON (@istvan86-nagy)
v0.2.3
- 将依赖升级到 @grafana v7.3
- 要求 Grafana 7.3