Grafana 添加 Prometheus 数据源,无访问选项
Grafana add Prometheus datasource, no access option
好吧,我不是 devops 的人。
我下载了 grafana (6.6.0 atm) 的最新图像。
添加普罗米修斯数据源以 502 Bad Gateway 告终。我看到的与教程不同的是,不再有 "Access" 选项。检查 http://localhost:3000/api/datasources/
我发现我的数据源默认具有 'proxy' 访问权限。
然后我切换到旧版本的 grafana (6.4.0),它可以更改访问权限,一切正常。
有人知道如何在较新版本的 grafana 中 select 其他访问类型吗?我检查了他们的文档,但一切似乎都过时了
当 Prometheus 数据源配置编辑器迁移到 React 时(作为此 PR https://github.com/grafana/grafana/pull/20248) the Access select option was not included. There is also this open issue https://github.com/grafana/grafana/issues/12757 的一部分,它开启了关于放弃对 ES 浏览器访问(以及可能的其他数据源)的支持的讨论)。
同时,您可以使用配置文件(参见 https://grafana.com/docs/grafana/latest/administration/provisioning/#example-datasource-config-file)配置数据源并为 access
键指定正确的值。
其他选项是使用 REST 端点并以类似方式修改数据源(请参阅 https://grafana.com/docs/grafana/latest/http_api/data_source/#update-an-existing-data-source)。
好吧,我不是 devops 的人。
我下载了 grafana (6.6.0 atm) 的最新图像。
添加普罗米修斯数据源以 502 Bad Gateway 告终。我看到的与教程不同的是,不再有 "Access" 选项。检查 http://localhost:3000/api/datasources/
我发现我的数据源默认具有 'proxy' 访问权限。
然后我切换到旧版本的 grafana (6.4.0),它可以更改访问权限,一切正常。
当 Prometheus 数据源配置编辑器迁移到 React 时(作为此 PR https://github.com/grafana/grafana/pull/20248) the Access select option was not included. There is also this open issue https://github.com/grafana/grafana/issues/12757 的一部分,它开启了关于放弃对 ES 浏览器访问(以及可能的其他数据源)的支持的讨论)。
同时,您可以使用配置文件(参见 https://grafana.com/docs/grafana/latest/administration/provisioning/#example-datasource-config-file)配置数据源并为 access
键指定正确的值。
其他选项是使用 REST 端点并以类似方式修改数据源(请参阅 https://grafana.com/docs/grafana/latest/http_api/data_source/#update-an-existing-data-source)。