Open miekg opened 5 years ago
Remove everything relating to alerting:
% grep -lri alerting pkg ~/src/github.com/spartanaorg/grafana master pkg/services/provisioning/notifiers/config_reader_test.go pkg/services/provisioning/notifiers/config_reader.go pkg/services/dashboards/dashboard_service.go pkg/services/alerting/test_notification.go pkg/services/alerting/reader.go pkg/services/alerting/eval_context_test.go pkg/services/alerting/eval_handler.go pkg/services/alerting/testdata/dash-without-id.json pkg/services/alerting/testdata/influxdb-alert.json pkg/services/alerting/testdata/collapsed-panels.json pkg/services/alerting/extractor.go pkg/services/alerting/ticker.go pkg/services/alerting/commands.go pkg/services/alerting/result_handler.go pkg/services/alerting/eval_handler_test.go pkg/services/alerting/engine_integration_test.go pkg/services/alerting/conditions/evaluator.go pkg/services/alerting/conditions/query_test.go pkg/services/alerting/conditions/query.go pkg/services/alerting/interfaces.go pkg/services/alerting/notifier.go pkg/services/alerting/extractor_test.go pkg/services/alerting/eval_context.go pkg/services/alerting/notifiers/base.go pkg/services/alerting/notifiers/base_test.go pkg/services/alerting/notifiers/alertmanager.go pkg/services/alerting/notifiers/alertmanager_test.go pkg/services/alerting/engine_test.go pkg/services/alerting/rule_test.go pkg/services/alerting/rule.go pkg/services/alerting/test_rule.go pkg/services/alerting/ticker_test.go pkg/services/alerting/models.go pkg/services/alerting/scheduler.go pkg/services/alerting/engine.go pkg/services/sqlstore/alert_test.go pkg/models/alert.go pkg/models/alert_test.go pkg/infra/metrics/metrics.go pkg/infra/metrics/graphitebridge/graphite.go pkg/ARCHITECTURE.md pkg/registry/registry.go pkg/api/dashboard_test.go pkg/api/frontendsettings.go pkg/api/api.go pkg/api/alerting.go pkg/api/dashboard.go pkg/api/alerting_test.go pkg/api/index.go pkg/setting/setting.go pkg/cmd/grafana-server/main.go pkg/cmd/grafana-server/server.go pkg/tsdb/azuremonitor/azuremonitor.go pkg/tsdb/cloudwatch/get_metric_statistics.go pkg/tsdb/prometheus/prometheus.go pkg/tsdb/influxdb/influxdb.go pkg/plugins/datasource_plugin.go
In packages all that stuff can be removed as well.
And remove it completely from the UI.
Remove everything relating to alerting:
In packages all that stuff can be removed as well.