In Grafana v8.0.2 with ngalert feature enabled, I am trying to define an alert rule using a custom datasource plugin I wrote. However when I select the plugin from the list of datasources, and click “Run Queries” I get the following error:
“Failed to evaluate queries and expressions: failed to execute conditions: plugin not registered”
My plugin returns a tabular dataset which is similar to the dataset in the example shown here: Grafana managed alert rules for numeric data | Grafana Labs
I am running Grafana with the following environment variables:
GF_AUTH_ANONYMOUS_ENABLED=true
GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=mycompany-my-plugin
GF_FEATURE_TOGGLES_ENABLE=ngalert