import{r as c,j as e}from"./vendor-react-wBh_31cN.js";import{C as p,a as h,b,c as f}from"./card-BeQtvmcJ.js";import{J as v,aq as i}from"./index-dNe6i2rS.js";import{u as P}from"./useTitle-DQo_L6Ox.js";import{t as j}from"./titles-CzjGGAB3.js";import{u as g}from"./useCurrentProject-CTMLbmkf.js";import{G as x}from"./GrafanaDashboard-CaJqbpoz.js";import"./vendor-redux-CJZrIb6x.js";import"./vendor-router-D1GqFWiT.js";import"./vendor-utils-OeoE2qq_.js";import"./vendor-icons-BUUmD6ht.js";import"./vendor-radix-BRyWS4bQ.js";import"./vendor-grid-CeFlDWv4.js";import"./useProject-BbrP3CX5.js";import"./index-DURBtSjL.js";import"./tabs-BZDPsi5L.js";const y=()=>{var o;P(j.projectMetrics);const{project:a,isLoading:t}=g(),{data:{username:m}={}}=v(),n="grafana/d-solo/user_statement_summaries/database-user-statement-summaries",r="350px",l=[{name:"user",value:(o=a==null?void 0:a.projectName)==null?void 0:o.concat(`_${m}`)},{name:"statement",value:"select"}],s=[{name:"database",value:a!=null&&a.projectName?a.projectName.toLowerCase():""}],d=[{name:"namespace",value:a!=null&&a.projectName?a.projectName.toLowerCase():""},{name:"endpoint",value:"feature_store"}],u=[{title:"User statement summaries",height:r,linkParams:{urlPath:n,variables:l,panelId:2}},{title:"Cluster memory utilization",height:r,linkParams:{urlPath:"grafana/d-solo/ndb_memory/database-memory",variables:[],panelId:12}},{title:"Database memory size",height:r,linkParams:{urlPath:"grafana/d-solo/ndb_memory/database-memory",variables:s,panelId:19}},{title:"Database disk size",height:r,linkParams:{urlPath:"grafana/d-solo/ndb_memory/database-memory",variables:s,panelId:21}},{title:"Avg REST API Latency",height:r,linkParams:{urlPath:"grafana/d-solo/rdrs2_overview/rdrs2-overview",variables:d,panelId:4}}];return t?e.jsx(i,{}):t||!a?e.jsx(i,{}):e.jsx("div",{children:e.jsxs(p,{children:[e.jsx(h,{children:e.jsx(b,{children:"Online feature store metrics"})}),e.jsx(f,{children:e.jsx(x,{panels:u})})]})})},S=c.memo(y);export{S as default};
