diff --git a/templates/alert_manager.yaml.erb b/templates/alert_manager.yaml.erb deleted file mode 100644 index c5159144e..000000000 --- a/templates/alert_manager.yaml.erb +++ /dev/null @@ -1,8 +0,0 @@ -<% require 'yaml' -%> -<% global = scope.lookupvar('::prometheus::alert_manager::global') -%> -<% templates = scope.lookupvar('::prometheus::alert_manager::templates') -%> -<% route = scope.lookupvar('::prometheus::alert_manager::route') -%> -<% receivers = scope.lookupvar('::prometheus::alert_manager::receivers') -%> -<% inhibit_rules = scope.lookupvar('::prometheus::alert_manager::inhibit_rules') -%> -<% full_config = { 'global'=>global, 'templates'=>templates, 'route'=>route, 'receivers'=>receivers, 'inhibit_rules'=>inhibit_rules } -%> -<%= full_config.to_yaml -%> diff --git a/templates/alertmanager.yaml.erb b/templates/alertmanager.yaml.erb new file mode 100644 index 000000000..6fc50246a --- /dev/null +++ b/templates/alertmanager.yaml.erb @@ -0,0 +1,8 @@ +<% require 'yaml' -%> +<% global = scope.lookupvar('::prometheus::alertmanager::global') -%> +<% templates = scope.lookupvar('::prometheus::alertmanager::templates') -%> +<% route = scope.lookupvar('::prometheus::alertmanager::route') -%> +<% receivers = scope.lookupvar('::prometheus::alertmanager::receivers') -%> +<% inhibit_rules = scope.lookupvar('::prometheus::alertmanager::inhibit_rules') -%> +<% full_config = { 'global'=>global, 'templates'=>templates, 'route'=>route, 'receivers'=>receivers, 'inhibit_rules'=>inhibit_rules } -%> +<%= full_config.to_yaml -%>