Skip to content

Commit

Permalink
update template filename
Browse files Browse the repository at this point in the history
  • Loading branch information
lswith committed Dec 7, 2016
1 parent d077455 commit 7d97dbf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 0 additions & 8 deletions templates/alert_manager.yaml.erb

This file was deleted.

8 changes: 8 additions & 0 deletions templates/alertmanager.yaml.erb
Original file line number Diff line number Diff line change
@@ -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 -%>

0 comments on commit 7d97dbf

Please sign in to comment.