etichy / grafana-swis-datasource

DataSource plugin for grafana to access SolarWinds data via SWIS REST API
MIT License
52 stars 11 forks source link

Alerting support #20

Closed pierre-prevoteau closed 1 year ago

pierre-prevoteau commented 1 year ago

Hi

I'm trying to trigger Grafana's alerts (v8.4.2) from a SWIS datasource but i'm getting a "The datasource does not support alerting queries" error. image

I tried to add a"alerting": true in the plugin.json but it didn't worked.

Any idea ?

Thanks !

etichy commented 1 year ago

Hmm that's something new. I'll have to look at it. Thanks

pierre-prevoteau commented 1 year ago

We will soon upgrade our Grafana instance to v9.5 : i'll keep you updated if a see any improvement

pierre-prevoteau commented 1 year ago

I've found the issue : plugin was indeed missing a "alerting": true but not in /src/plugin.json, it need to be added in /dist/plugin.json.

And voila ! image image

It's working on Grafana v9.5.1 but only with the legacy alerting (which is fine as the new alerting is a pain)

etichy commented 1 year ago

Thanks for resolving this one. Change uploaded