grafana/grafana-plugin-examples

How to configure plugin to get alerting rules from datasource

dmitryk-dk opened this issue · 1 comments

We are developing our data sources and have a problem loading alerting rules from the data source.
If you click on alerting -> alerting rules request from our data source implementation goes to api/prometheus/grafana/api/v1/rules, but if you choose prometheus or loki as data source, it sends the requests to the
api/prometheus/{datasource_id}/api/v1/rules.

In our datasource implementation, we can't load any rule, but from prometheus, it can be loaded.

I have tried to use an example, but it works the same.

Can you help or advise on correctly implementing or enabling handlers for alerting rules from grafana to backend datasource?

Hi @dmitryk-dk Please use the community forum https://community.grafana.com/c/plugin-development/30 to ask questions about plugin development.