import{r as c,bG as b,bH as h,at as p,au as v,j as t,L as o,F as f,f as P}from"./index-DNBEEyYo.js";import{G as g}from"./GrafanaDashboard-alAWX7sj.js";const j=()=>{var n;b(h.projectMetrics);const{project:a,isLoading:s}=p(),{data:{username:i}={}}=v(),m="grafana/d-solo/user_statement_summaries/database-user-statement-summaries",e="350px",l=[{name:"user",value:(n=a==null?void 0:a.projectName)==null?void 0:n.concat(`_${i}`)},{name:"statement",value:"select"}],r=[{name:"database",value:a!=null&&a.projectName?a.projectName.toLowerCase():""}],u=[{name:"namespace",value:a!=null&&a.projectName?a.projectName.toLowerCase():""},{name:"endpoint",value:"feature_store"}],d=[{title:"User statement summaries",height:e,linkParams:{urlPath:m,variables:l,panelId:2}},{title:"Cluster memory utilization",height:e,linkParams:{urlPath:"grafana/d-solo/ndb_memory/database-memory",variables:[],panelId:12}},{title:"Database memory size",height:e,linkParams:{urlPath:"grafana/d-solo/ndb_memory/database-memory",variables:r,panelId:19}},{title:"Database disk size",height:e,linkParams:{urlPath:"grafana/d-solo/ndb_memory/database-memory",variables:r,panelId:21}},{title:"Avg REST API Latency",height:e,linkParams:{urlPath:"grafana/d-solo/rdrs2_overview/rdrs2-overview",variables:u,panelId:4}}];return s?t.jsx(o,{}):s||!a?t.jsx(o,{}):t.jsx(f,{children:t.jsx(P,{title:"Online feature store metrics",height:"auto",mb:"40px",children:t.jsx(g,{panels:d})})})},_=c.memo(j);export{_ as default};
