grafana
grafana copied to clipboard
Show alerting availability in data source details
What this PR does / why we need it: This PR adds an Alert info in data source details, showing if data source has alerting enabled or not. We think this could help user to understand why this data source does not appear when creating a new alert.
Which issue(s) this PR fixes:
Fixes #51484
Special notes for your reviewer:
I used a Badge for that. Not sure if we should show the badge in case alerting is supported?
This is an example of the result of this PR changes:


Drone build failed: https://drone.grafana.net/grafana/grafana-enterprise/29123
I agree with Peter's general remark but perhaps we can sidestep the multiple warning messages by using another visualization to show if the data source supports alerting – perhaps a <Badge color="green" icon="check-circle" text="Alerting supported" />
somewhere on the page would work?
Drone build failed: https://drone.grafana.net/grafana/grafana-enterprise/29357
Drone build failed: https://drone.grafana.net/grafana/grafana-enterprise/29611
From a Slack chat -- is there a good way to include a link to docs in the warnings, so users who want to understand why only some data sources support Alerting can learn more? https://grafana.com/docs/grafana/latest/alerting/fundamentals/data-source-alerting/
Drone build failed: https://drone.grafana.net/grafana/grafana-enterprise/29670