File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,7 +30,8 @@ module.exports = {
3030 } ,
3131 publicRuntimeConfig : {
3232 githubUrl : 'https://github.com/nais/examples/tree/main/quotes-frontend' ,
33- grafanaLogsUrl : "https://grafana.nav.cloud.nais.io/a/grafana-lokiexplore-app/explore/service/quotes-frontend/logs?from=now-1h&to=now&var-ds=P7BE696147D279490&var-filters=service_name%7C%3D%7Cquotes-frontend"
33+ grafanaLogsUrl : "https://grafana.nav.cloud.nais.io/a/grafana-lokiexplore-app/explore/service/quotes-frontend/logs?from=now-1h&to=now&var-ds=P7BE696147D279490&var-filters=service_name%7C%3D%7Cquotes-frontend" ,
34+ grafanaDashboardUrl : "https://grafana.nav.cloud.nais.io/d/eemcfslr8f94wb/nais-quotes?orgId=1&from=now-3h&to=now&timezone=browser&var-Filters="
3435 } ,
3536 env : {
3637 NEXT_PUBLIC_BACKEND_URL : process . env . NEXT_PUBLIC_BACKEND_URL || 'http://quotes-backend' ,
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ export const metadata: Metadata = {
2121
2222const { publicRuntimeConfig } = getConfig ( ) ;
2323const grafanaLogsUrl = publicRuntimeConfig . grafanaLogsUrl ;
24+ const grafanaDashboardUrl = publicRuntimeConfig . grafanaDashboardUrl ;
2425const githubUrl = publicRuntimeConfig . githubUrl ;
2526
2627export default function RootLayout ( {
@@ -39,6 +40,9 @@ export default function RootLayout({
3940 < a href = { grafanaLogsUrl } className = "text-gray-400 hover:text-white flex items-center" target = "_blank" rel = "noopener noreferrer" >
4041 < DocumentMagnifyingGlassIcon className = "h-5 w-5 mr-1" /> View Logs
4142 </ a >
43+ < a href = { grafanaDashboardUrl } className = "text-gray-400 hover:text-white flex items-center" target = "_blank" rel = "noopener noreferrer" >
44+ < DocumentMagnifyingGlassIcon className = "h-5 w-5 mr-1" /> Grafana Dashboard
45+ </ a >
4246 < a href = { githubUrl } className = "text-gray-400 hover:text-white flex items-center" target = "_blank" rel = "noopener noreferrer" >
4347 < CodeBracketIcon className = "h-5 w-5 mr-1" /> View Source
4448 </ a >
You can’t perform that action at this time.
0 commit comments