@@ -177,6 +177,13 @@ function loadOperatorKeysCallback(result, siteId) {
177177 ) ;
178178 const element = document . getElementById ( "operatorKeysStandardOutput" ) ;
179179 if ( element ) element . innerHTML = highlightedText ;
180+
181+ if ( filteredResults . length !== 0 ) {
182+ const el = document . getElementById ( "operatorDashboard" ) ;
183+ el . innerText = "Operator Dashboard" ;
184+ const operatorDashboardUrl = `https://${ uidType } .grafana.net/d/nnz7mb9Mk/operator-dashboard?orgId=1&from=now-24h&to=now&timezone=browser&var-_APP=uid2-operator&var-CLUSTER=uid2-prod-opr-use2-auto&var-ENV=${ currentEnv } &var-_STORE=$__all` ;
185+ el . href = operatorDashboardUrl ;
186+ }
180187}
181188
182189function loadOptoutWebhooksCallback ( result , siteName ) {
@@ -187,6 +194,13 @@ function loadOptoutWebhooksCallback(result, siteName) {
187194 const formatted = prettifyJson ( JSON . stringify ( filteredResults ) ) ;
188195 const element = document . getElementById ( "webhooksStandardOutput" ) ;
189196 if ( element ) element . innerHTML = formatted ;
197+
198+ if ( filteredResults . length !== 0 ) {
199+ const el = document . getElementById ( "optOutDashboard" ) ;
200+ el . innerText = "Opt Out Dashboard" ;
201+ const optOutDashboardUrl = `https://${ uidType } .grafana.net/d/a3-KG_rGz/optout-dashboard?orgId=1&from=now-1h&to=now&timezone=browser&var-_APP=uid2-optout&var-CLUSTER=uid2-us-east-2&var-ENV=${ currentEnv } &var-_STORE=operators` ;
202+ el . href = optOutDashboardUrl ;
203+ }
190204}
191205
192206function loadRelatedKeysetsCallback ( result , siteId , clientTypes ) {
@@ -369,6 +383,10 @@ document.addEventListener("DOMContentLoaded", () => {
369383 const apiKeyUsageGrafanaUrl = `https://${ uidType } .grafana.net/d/JaOQgV7Iz/api-key-usage?orgId=1&from=now-6h&to=now&timezone=browser&var-SiteId=${ site . id } &var-Env=${ currentEnv } ` ;
370384 const apiKeyUsageElement = document . getElementById ( "grafanaApiKeyUsage" ) ;
371385 apiKeyUsageElement . href = apiKeyUsageGrafanaUrl ;
386+
387+ const cstgGrafanaUrl = `https://${ uidType } .grafana.net/d/J22t4ykIz/cstg-client-side-token-generation-dashboard?orgId=1&from=now-2d&to=now&timezone=browser&var-env=${ currentEnv } &var-cluster=$__all&var-site_name=${ site . name } &var-platform_type=$__all&refresh=15m` ;
388+ const cstgElement = document . getElementById ( "grafanaCstg" ) ;
389+ cstgElement . href = cstgGrafanaUrl ;
372390 } ) ;
373391 }
374392
0 commit comments