VictoriaMetrics / grafana-datasource

Grafana Plugin for VictoriaMetrics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: Failed to build evaluator for queries and expressions: unable to find dependent node 'A'

ma-bo-panda opened this issue · comments

What happened?

The following error message appears on the alert rule setup screen.
「Failed to build evaluator for queries and expressions: unable to find dependent node 'A'」
When I check the console in the developer tools, a 400 Bad Request is returned for a POST request to the API in api/v1/eval.
Also, the 400 error is repeated many times.

スクリーンショット 2024-01-19 22 11 57

What happened?

No errors are displayed on the alert rule setting screen.

Did this work before?
No, this is the first time I have set VictoriaMetrics as a Datasource.
However, the same error does not occur when Prometheus is set as the Datasource.

Is the bug inside a dashboard panel?

After setting up VictoriaMetrics in Datasource, you will be taken to a screen where you can set up a new alert rule.

Environment (with versions)?

OS: Rocky Linux release 9.3
Grafana: 10.2.3
VictoriaMetrics: 1.83.0
GoogleChrome: 120.0.6099.234

Grafana platform?

I use Opensource.

I think this is similar issue #126.

Can you downgrade your grafana to version 9.2.2? And check that the error happens

@dmitryk-dk
Thanks for your comment.
As you say, it seems to be the same as issue #126. Is this a version-dependent issue?
I will try to verify the downgrade, but can you tell me why 9.2.2 is specified?

@dmitryk-dk Thanks for your comment. As you say, it seems to be the same as issue #126. Is this a version-dependent issue? I will try to verify the downgrade, but can you tell me why 9.2.2 is specified?

Hi! I will try to do it with versions 10 and 9 and will check where there can be differences. Maybe Grafana updates some calls in the version 10

@dmitryk-dk Thanks for your comment. As you say, it seems to be the same as issue #126. Is this a version-dependent issue? I will try to verify the downgrade, but can you tell me why 9.2.2 is specified?

Hi! I will try to do it with versions 10 and 9 and will check where there can be differences. Maybe Grafana updates some calls in the version 10

Thanks for your support.
I checked with 9.5.15, the latest version of Grafana 9 series, and the same error did not occur.

@dmitryk-dk I was under impression that this datasource doesn't support alerting engine due to reasons explained here https://github.com/VictoriaMetrics/grafana-datasource?tab=readme-ov-file#why-victoriametrics-datasource-doesnt-support-alerting.
Can we implement /api/v1/eval handler on datasource side?

This API call was added at 10 major release of the Grafana. I will check how it implemented and how it works

Hi @ma-bo-panda ! There was an issue in our plugin realization, and we fixed it. the evaluation API works as expected

@dmitryk-dk
Thank you for fixing the bug.
I'm waiting for the merge.

@ma-bo-panda the fix #137 was merged and will be the part of the next release.
Meanwhile, you can verify its correctness by compiling the plugin according to the following instructions https://github.com/VictoriaMetrics/grafana-datasource?tab=readme-ov-file#getting-started-development.

This issue has been fixed in datasource starting from v0.6.0. Closing the issue as fixed.