Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/31.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular 为grafana简单json插件添加端点?_Angular_Plugins_Grafana - Fatal编程技术网

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

Angular 为grafana简单json插件添加端点?,angular,plugins,grafana,Angular,Plugins,Grafana,我将grafana simple json数据源与Python一起使用,它工作得很好,但是我想添加一个全新的端点,但无论我怎么尝试,都没有任何效果 这里是本地人的端点 / 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 re

我将grafana simple json数据源与Python一起使用,它工作得很好,但是我想添加一个全新的端点,但无论我怎么尝试,都没有任何效果

这里是本地人的端点

/ 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,它位于selected/query之后


我试图复制和修改现有函数“metricFindQuery(query)”,但问题似乎不是因为我修改了/src目录,而没有使用npm构建它(并且使用了/dist而不是/src)。所以我所有的改变都没有效果

问题是因为我在修改/src目录时没有使用npm构建它(并且使用/dist代替/src)。所以我所有的改变都没有效果

二次查询的目的是什么?如果您只需要另一个时间序列,我想您应该在设置数据源时这样做。在设置数据源时,您似乎可以添加许多查询,每个查询都有自己的目标和类型。感谢您的关注,我早就解决了这个问题,我对我使用的解决方案很有信心。我想当我发布这个问题时,我是在修改/src目录,而没有使用npm构建它(并且使用了/dist而不是/src,所以我的所有更改都无效),您的二次查询的目的是什么?如果您只需要另一个时间序列,我想您应该在设置数据源时这样做。在设置数据源时,您似乎可以添加许多查询,每个查询都有自己的目标和类型。感谢您的关注,我早就解决了这个问题,我对我使用的解决方案很有信心。我想当我发布这个问题时,我是在修改/src目录,而没有使用npm构建它(并且使用了/dist而不是/src,所以我所有的更改都无效)