File: haproxy-frontends.html

package info (click to toggle)
prometheus 1.5.2%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,640 kB
  • ctags: 3,562
  • sloc: makefile: 100; sh: 98
file content (25 lines) | stat: -rw-r--r-- 995 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{{ template "head" . }}

{{ template "prom_content_head" . }}
<h1>HAProxy Frontends</h1>

<table class="table table-condensed table-striped table-bordered" style="width: 0%">
<tr>
  <th>Frontend</th>
  <th>Requests</th>
  <th>Sessions</th>
</tr>
{{ range query "count by (frontend)(haproxy_frontend_http_requests_total{job='haproxy'})" | sortByLabel "frontend" }}
<tr>
  <td><a href="haproxy-frontend.html?frontend={{ .Labels.frontend }}">{{ .Labels.frontend }}</a></td>
  <td>{{ template "prom_query_drilldown" (args (printf "sum by(frontend)(irate(haproxy_frontend_http_requests_total{job='haproxy',frontend='%s'}[5m]))" .Labels.frontend) "/s" "humanizeNoSmallPrefix") }}</td>
  <td>{{ template "prom_query_drilldown" (args (printf "sum by(frontend)(haproxy_frontend_current_sessions{job='haproxy',frontend='%s'})" .Labels.frontend) "" "humanize") }}</td>
</tr>
{{ else }}
<tr><td colspan=4>No frontends found.</td></tr>
{{ end }}


{{ template "prom_content_tail" . }}

{{ template "tail" }}