summaryrefslogtreecommitdiffstats
path: root/internal/metrics/dashboard.html
diff options
context:
space:
mode:
Diffstat (limited to 'internal/metrics/dashboard.html')
-rw-r--r--internal/metrics/dashboard.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/metrics/dashboard.html b/internal/metrics/dashboard.html
index ab08eab..b7be1d7 100644
--- a/internal/metrics/dashboard.html
+++ b/internal/metrics/dashboard.html
@@ -172,6 +172,10 @@
172 <span class="metric-value" id="auth_success">0</span> 172 <span class="metric-value" id="auth_success">0</span>
173 </div> 173 </div>
174 <div class="metric"> 174 <div class="metric">
175 <span class="metric-label">Authorized</span>
176 <span class="metric-value" id="auth_authorized">0</span>
177 </div>
178 <div class="metric">
175 <span class="metric-label">Unauthorized</span> 179 <span class="metric-label">Unauthorized</span>
176 <span class="metric-value" id="auth_unauthorized">0</span> 180 <span class="metric-value" id="auth_unauthorized">0</span>
177 </div> 181 </div>
@@ -309,6 +313,9 @@
309 document.getElementById('auth_success').textContent = 313 document.getElementById('auth_success').textContent =
310 getMetricByLabel(metrics, `${prefix}_relay_auth_attempts_total`, 'result', 'success'); 314 getMetricByLabel(metrics, `${prefix}_relay_auth_attempts_total`, 'result', 'success');
311 315
316 document.getElementById('auth_authorized').textContent =
317 getMetricByLabel(metrics, `${prefix}_relay_requests_total`, 'status', 'authorized');
318
312 document.getElementById('auth_unauthorized').textContent = 319 document.getElementById('auth_unauthorized').textContent =
313 getMetricByLabel(metrics, `${prefix}_relay_requests_total`, 'status', 'unauthorized'); 320 getMetricByLabel(metrics, `${prefix}_relay_requests_total`, 'status', 'unauthorized');
314 321