2013-07-17 15:45:01 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>Prometheus Alert Manager</title>
|
|
|
|
|
2013-07-22 09:11:18 +00:00
|
|
|
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
|
|
|
|
|
2015-04-29 19:39:59 +00:00
|
|
|
<link href="{{ pathPrefix }}static/vendor/bootstrap/css/bootstrap.min.css" media="all" rel="stylesheet" type="text/css" />
|
|
|
|
<script src="{{ pathPrefix }}static/vendor/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
|
2013-07-17 15:45:01 +00:00
|
|
|
|
2015-04-29 19:39:59 +00:00
|
|
|
<link href="{{ pathPrefix }}static/vendor/tarruda_bootstrap_datetimepicker/css/bootstrap-datetimepicker.min.css" media="all" rel="stylesheet" type="text/css" />
|
|
|
|
<script src="{{ pathPrefix }}static/vendor/tarruda_bootstrap_datetimepicker/js/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
|
2013-07-23 08:40:23 +00:00
|
|
|
|
2015-04-29 19:39:59 +00:00
|
|
|
<link href="{{ pathPrefix }}static/css/default.css" media="all" rel="stylesheet" type="text/css" />
|
2013-07-17 15:45:01 +00:00
|
|
|
|
2015-10-08 12:48:38 +00:00
|
|
|
<script>
|
|
|
|
var PATH_PREFIX = "{{ pathPrefix }}".replace(/\/$/, '');
|
|
|
|
</script>
|
2013-07-17 15:45:01 +00:00
|
|
|
{{template "head" .}}
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="navbar navbar-inverse navbar-fixed-top">
|
|
|
|
<div class="navbar-inner">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<a class="brand" href="#">Alert Manager</a>
|
|
|
|
<ul class="nav">
|
|
|
|
{{define "alertsTabClass"}}{{end}}
|
|
|
|
{{define "silencesTabClass"}}{{end}}
|
|
|
|
{{define "statusTabClass"}}{{end}}
|
2015-04-29 19:39:59 +00:00
|
|
|
<li class="{{template "alertsTabClass"}}"><a href="{{ pathPrefix }}alerts">Alerts</a></li>
|
|
|
|
<li class="{{template "silencesTabClass"}}"><a href="{{ pathPrefix }}silences">Silences</a></li>
|
|
|
|
<li class="{{template "statusTabClass"}}"><a href="{{ pathPrefix }}status">Status</a></li>
|
2013-07-17 15:45:01 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="container-fluid">
|
|
|
|
{{template "content" .}}
|
|
|
|
</div>
|
|
|
|
<div class="container-fluid">
|
|
|
|
<hr class="clear-top">
|
|
|
|
<footer>
|
|
|
|
<p>
|
2013-08-05 09:49:56 +00:00
|
|
|
Code: <a href="https://github.com/prometheus/alertmanager">prometheus/alertmanager</a>
|
2013-07-17 15:45:01 +00:00
|
|
|
Contact: <a href="mailto:prometheus-developers@googlegroups.com">prometheus-developers</a>
|
|
|
|
© Prometheus Authors 2013
|
|
|
|
</p>
|
|
|
|
</footer>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|
2013-07-23 08:40:23 +00:00
|
|
|
{{define "editSilenceModal"}}
|
2013-07-22 09:11:18 +00:00
|
|
|
<!-- Modal -->
|
2013-07-23 08:40:23 +00:00
|
|
|
<div id="edit_silence_modal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="edit_silence_header" aria-hidden="true">
|
2013-07-22 09:11:18 +00:00
|
|
|
<div class="modal-header">
|
2013-07-23 08:40:23 +00:00
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
|
|
<h3 id="edit_silence_header">Create Silence</h3>
|
2013-07-22 09:11:18 +00:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
2013-07-23 08:40:23 +00:00
|
|
|
<form class="form-horizontal" id="edit_silence_form">
|
2013-07-22 09:11:18 +00:00
|
|
|
<div class="control-group">
|
2013-07-23 08:40:23 +00:00
|
|
|
<label class="control-label" for="silence_created_by">Creator</label>
|
2013-07-22 09:11:18 +00:00
|
|
|
<div class="controls">
|
2015-09-05 19:09:07 +00:00
|
|
|
<input type="text" id="silence_created_by" placeholder="name@company.com" required>
|
2013-07-22 09:11:18 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="control-group">
|
2013-07-23 08:40:23 +00:00
|
|
|
<label class="control-label" for="silence_ends_at">Ends At</label>
|
2013-07-22 09:11:18 +00:00
|
|
|
<div class="controls">
|
2013-07-23 08:40:23 +00:00
|
|
|
<div id="ends_at_datetimepicker" class="input-append date">
|
|
|
|
<input type="text" id="silence_ends_at" placeholder="Ends At (default 1h from now)" data-format="dd/MM/yyyy hh:mm:ss">
|
|
|
|
<span class="add-on">
|
|
|
|
<i data-time-icon="icon-time" data-date-icon="icon-calendar"></i>
|
|
|
|
</span>
|
|
|
|
</div>
|
2013-07-22 09:11:18 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="control-group">
|
2013-07-23 08:40:23 +00:00
|
|
|
<label class="control-label" for="silence_created_by">Comment</label>
|
2013-07-22 09:11:18 +00:00
|
|
|
<div class="controls">
|
|
|
|
<input type="text" id="silence_comment" placeholder="Comment">
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-07-23 08:40:23 +00:00
|
|
|
<label>Label filters:</label>
|
|
|
|
<table id="silence_filters_table">
|
|
|
|
</table>
|
|
|
|
<br/>
|
|
|
|
<button type="button" class="btn" id="add_filter_button"><i class="icon-plus"></i> Add Label Filter</button>
|
|
|
|
<button type="button" class="btn">Preview Silence</button>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
|
|
|
|
<button type="submit" class="btn btn-primary" id="edit_silence_btn">Create Silence</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
2013-07-22 09:11:18 +00:00
|
|
|
</div>
|
|
|
|
{{end}}
|