diff options
| author | Dan Engelbrecht <[email protected]> | 2023-09-28 23:57:31 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-09-28 23:57:31 +0200 |
| commit | bf20e4c8e63638792e69098d4d9810c1136ff627 (patch) | |
| tree | fee82fc0d15910902a4a3c24a5564867748b6419 /src/zenserver/frontend/html | |
| parent | added more context to http response error message (#430) (diff) | |
| download | zen-bf20e4c8e63638792e69098d4d9810c1136ff627.tar.xz zen-bf20e4c8e63638792e69098d4d9810c1136ff627.zip | |
adding more stats (#429)
- Feature: Add detailed stats on requests and data sizes on a per-bucket level, use parameter `cachestorestats=true` on the `/stats/z$` endpoint to enable
- Feature: Add detailed stats on requests and data sizes on cidstore, use parameter `cidstorestats=true` on the `/stats/z$` endpoint to enable
- Feature: Dashboard now accepts parameters in the URL which is passed on to the `/stats/z$` endpoint
Diffstat (limited to 'src/zenserver/frontend/html')
| -rw-r--r-- | src/zenserver/frontend/html/index.html | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/zenserver/frontend/html/index.html b/src/zenserver/frontend/html/index.html index 252ee621e..96b69a643 100644 --- a/src/zenserver/frontend/html/index.html +++ b/src/zenserver/frontend/html/index.html @@ -12,7 +12,8 @@ <script type="text/javascript"> const getCacheStats = () => { const opts = { headers: { "Accept": "application/json" } }; - fetch("/stats/z$", opts) + const queryString = window.location.search; + fetch("/stats/z$" + queryString, opts) .then(response => { if (!response.ok) { throw Error(response.statusText); @@ -40,12 +41,12 @@ <div class="row"> <div class="text-center mt-5"> <pre> -__________ _________ __ -\____ / ____ ____ / _____/_/ |_ ____ _______ ____ - / / _/ __ \ / \ \_____ \ \ __\ / _ \ \_ __ \_/ __ \ - / /_ \ ___/ | | \ / \ | | ( <_> ) | | \/\ ___/ +__________ _________ __ +\____ / ____ ____ / _____/_/ |_ ____ _______ ____ + / / _/ __ \ / \ \_____ \ \ __\ / _ \ \_ __ \_/ __ \ + / /_ \ ___/ | | \ / \ | | ( <_> ) | | \/\ ___/ /_______ \ \___ >|___| //_______ / |__| \____/ |__| \___ > - \/ \/ \/ \/ \/ + \/ \/ \/ \/ \/ </pre> <pre id="status"/> </div> @@ -53,7 +54,7 @@ __________ _________ __ <div class="row"> <pre class="mb-0">Z$:</pre> <pre id="stats"></pre> - <div> + </div> </div> </body> </html> |