如何将 Solr 作为数据源与 Grafana 集成
How to integrate Solr as a datasource with Grafana
我正在尝试根据 https://github.com/pueteam/datasource-plugin-solr 中提到的文档将 Solr 数据源集成到 Grafana。
在配置数据源时,我可以在 Grafana UI 上看到 Solr 插件作为一个选项。但是,当我单击按钮 "Save and Test" 时,测试连接失败,认为数据源已更新。
在浏览器控制台中看到以下日志:
浏览器日志:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8983 (Reason: CORS header 'Access-Control-Allow-Origin' missing)
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8983 (Reason: CORS request did not succeed)
进一步更新日志
我尝试了 here 中提到的将 security.fileuri.strict_origin_policy
参数更新为 false 的步骤。但这也无济于事。
任何帮助都会很棒。
谢谢。
刚刚包含了 Allow-Control-Allow-Origin* plugin from chrome store while running it from Chrome and things worked! For FireFox added the AddOn CORS Everywhere 插件,它再次起作用了!
问题似乎与浏览器有关。尤其是在离线模式下工作时。由于 firefox 浏览器 "Add cannot be installed because the plugin is not trusted and unsigned"
的错误,FireFox 插件作为 .xpi 文件无法添加为附加组件。
P.S。 Firefox 错误地(或出于商业目的)假设人们会从他们正在寻找的地方在浏览器上安装插件。在许多情况下情况并非如此。我可能需要一个插件来在我的离线桌面上的浏览器 运行 上下载和安装。
我正在尝试根据 https://github.com/pueteam/datasource-plugin-solr 中提到的文档将 Solr 数据源集成到 Grafana。
在配置数据源时,我可以在 Grafana UI 上看到 Solr 插件作为一个选项。但是,当我单击按钮 "Save and Test" 时,测试连接失败,认为数据源已更新。 在浏览器控制台中看到以下日志:
浏览器日志:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8983 (Reason: CORS header 'Access-Control-Allow-Origin' missing)
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8983 (Reason: CORS request did not succeed)
进一步更新日志
我尝试了 here 中提到的将 security.fileuri.strict_origin_policy
参数更新为 false 的步骤。但这也无济于事。
任何帮助都会很棒。
谢谢。
刚刚包含了 Allow-Control-Allow-Origin* plugin from chrome store while running it from Chrome and things worked! For FireFox added the AddOn CORS Everywhere 插件,它再次起作用了!
问题似乎与浏览器有关。尤其是在离线模式下工作时。由于 firefox 浏览器 "Add cannot be installed because the plugin is not trusted and unsigned"
的错误,FireFox 插件作为 .xpi 文件无法添加为附加组件。
P.S。 Firefox 错误地(或出于商业目的)假设人们会从他们正在寻找的地方在浏览器上安装插件。在许多情况下情况并非如此。我可能需要一个插件来在我的离线桌面上的浏览器 运行 上下载和安装。