mirror of
https://github.com/prometheus/prometheus
synced 2024-12-27 00:53:12 +00:00
fcff35b43e
Besides fixing https://github.com/prometheus/prometheus/issues/805 by making the entire externally reachable server URL configurable, this adds tests for the "globalURL" template function and makes it easier to test other such functions in the future. This breaks the `web.Hostname` flag (and introduces `web.external-url`). This flag is likely only used by few users, so I hope that's justifiable. Fixes https://github.com/prometheus/prometheus/issues/805
54 lines
2.0 KiB
HTML
54 lines
2.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<title>Prometheus Time Series Collection and Processing Server</title>
|
|
<script src="{{ pathPrefix }}/static/vendor/js/jquery.min.js"></script>
|
|
<script src="{{ pathPrefix }}/static/vendor/bootstrap-3.3.1/js/bootstrap.min.js"></script>
|
|
|
|
<link type="text/css" rel="stylesheet" href="{{ pathPrefix }}/static/vendor/bootstrap-3.3.1/css/bootstrap.min.css">
|
|
<link type="text/css" rel="stylesheet" href="{{ pathPrefix }}/static/css/prometheus.css">
|
|
|
|
<script>
|
|
var PATH_PREFIX = "{{ pathPrefix }}";
|
|
$(function () {
|
|
$('[data-toggle="tooltip"]').tooltip()
|
|
})
|
|
</script>
|
|
|
|
{{template "head" .}}
|
|
</head>
|
|
|
|
<body>
|
|
<nav class="navbar navbar-inverse navbar-fixed-top">
|
|
<div class="container-fluid">
|
|
<div class="navbar-header">
|
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
|
|
<span class="sr-only">Toggle navigation</span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
<a class="navbar-brand" href="{{ pathPrefix }}/">Prometheus</a>
|
|
</div>
|
|
<div id="navbar" class="navbar-collapse collapse">
|
|
<ul class="nav navbar-nav navbar-left">
|
|
{{$consoles := consolesPath}}
|
|
{{if $consoles}}
|
|
<li><a href="{{$consoles}}">Consoles</a></li>
|
|
{{ end }}
|
|
<li><a href="{{ pathPrefix }}/alerts">Alerts</a></li>
|
|
<li><a href="{{ pathPrefix }}/graph">Graph</a></li>
|
|
<li><a href="{{ pathPrefix }}/">Status</a></li>
|
|
<li>
|
|
<a href="http://prometheus.io" target="_blank">Help</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
{{template "content" .}}
|
|
</body>
|
|
</html>
|