git » chasquid » commit c172894

chasquid: Update the monitoring HTML index

author Alberto Bertogli
2016-10-12 22:08:18 UTC
committer Alberto Bertogli
2016-10-21 21:13:39 UTC
parent dd35085a3290da34a4ee10178c3e52724fa95490

chasquid: Update the monitoring HTML index

Add some links to the monitoring HTML index, to reflect the new
additions.

Also reorder to make it more practical, and default to the expanded view
for the tracer links.

chasquid.go +7 -3

diff --git a/chasquid.go b/chasquid.go
index 9cad720..7474f5d 100644
--- a/chasquid.go
+++ b/chasquid.go
@@ -1134,11 +1134,15 @@ const monitoringHTMLIndex = `<!DOCTYPE html>
     <h1>chasquid monitoring</h1>
     <ul>
       <li><a href="/debug/queue">queue</a>
-      <li><a href="/debug/requests">requests</a>
-          <small><a href="https://godoc.org/golang.org/x/net/trace">
+      <li><a href="/debug/vars">exported variables</a>
+	       <small><a href="https://golang.org/pkg/expvar/">(ref)</a></small>
+	  <li>traces <small><a href="https://godoc.org/golang.org/x/net/trace">
             (ref)</a></small>
+        <ul>
+          <li><a href="/debug/requests?exp=1">requests (short-lived)</a>
+          <li><a href="/debug/events?exp=1">events (long-lived)</a>
+        </ul>
       <li><a href="/debug/flags">flags</a>
-      <li><a href="/debug/vars">public variables</a>
       <li><a href="/debug/pprof">pprof</a>
           <small><a href="https://golang.org/pkg/net/http/pprof/">
             (ref)</a></small>