mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
feat(prometheus): initial support for prometheus
This commit is contained in:
@@ -227,8 +227,8 @@ export class AlertTabCtrl {
|
||||
|
||||
var datasourceName = foundTarget.datasource || this.panel.datasource;
|
||||
this.datasourceSrv.get(datasourceName).then(ds => {
|
||||
if (ds.meta.id !== 'graphite') {
|
||||
this.error = 'Currently the alerting backend only supports Graphite queries';
|
||||
if (ds.meta.id !== 'graphite' && ds.meta.id !== 'prometheus') {
|
||||
this.error = 'You datsource does not support alerting queries';
|
||||
} else if (this.templateSrv.variableExists(foundTarget.target)) {
|
||||
this.error = 'Template variables are not supported in alert queries';
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user