import{r as c,bx as b,by as h,aw as p,ax as v,j as t,D as n,L as P,W as g}from"./index-_eM6l4Nf.js";import{G as f}from"./GrafanaDashboard-C8RHXN8Z.js";const x=()=>{var o;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:(o=a==null?void 0:a.projectName)==null?void 0:o.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(n,{}):s||!a?t.jsx(n,{}):t.jsx(P,{children:t.jsx(g,{title:"Online feature store metrics",height:"auto",mb:"40px",children:t.jsx(f,{panels:d})})})},_=c.memo(x);export{_ as default};
