要为grafana简单json插件添加端点吗?

时间:2019-06-06 16:48:35

标签: angular plugins grafana

我在python上使用了grafana-simple-json-datasource,它工作正常,但是我想添加一个全新的终结点,但是无论如何尝试,都无法正常工作。

这是本机端点

/ should return 200 ok. Used for "Test connection" on the datasource config page.
/search used by the find metric options on the query tab in panels.
/query should return metrics based on input.
/annotations should return annotations.
/tag-keys should return tag keys for ad hoc filters.
/tag-values should return tag values for ad hoc filters.

例如,我想添加/ secondaryQuery,它位于选择的/ query之后。

我试图复制和修改现有功能“ metricFindQuery(query)”,但事实并非如此

1 个答案:

答案 0 :(得分:0)

谢谢您的关注,我很久以前就解决了这个问题,并且我可以肯定我使用的解决方案。我认为,当我发布此问题时,我正在修改/ src目录而不使用npm构建它(并且使用/ dist而不是/ src,因此所有更改均无效)