"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[5356,9299],{51372:(L,p,n)=>{n.r(p),n.d(p,{ServerStats:()=>E});var s=n(74848),a=n(32196),v=n(96540),m=n(32264),y=n(40845),g=n(55852),x=n(31678),h=n(16233),b=n(70255),P=n(10860),S=n(67061),C=n(56034),A=n(14578);const u=({content:e,footer:r,isLoading:t})=>{const d=(0,y.of)(D);return(0,s.jsxs)(P.Z,{className:d.container,children:[e.map((l,i)=>(0,s.jsxs)(S.B,{justifyContent:"space-between",alignItems:"center",children:[(0,s.jsxs)(S.B,{alignItems:"center",children:[(0,s.jsx)("span",{className:(0,a.cx)({[d.indent]:!!l.indent}),children:l.name}),l.tooltip&&(0,s.jsx)(C.m,{content:String(l.tooltip),placement:"auto-start",children:(0,s.jsx)(A.I,{name:"info-circle",className:d.tooltip})})]}),t?(0,s.jsx)(b.A,{width:60}):(0,s.jsx)("span",{className:l.highlight?d.highlight:"",children:l.value})]},i)),r&&(0,s.jsx)("div",{children:r})]})},D=e=>({container:(0,a.css)({display:"flex",flexDirection:"column",gap:e.spacing(2),padding:e.spacing(2)}),indent:(0,a.css)({marginLeft:e.spacing(2)}),tooltip:(0,a.css)({color:e.colors.secondary.text}),highlight:(0,a.css)({color:e.colors.warning.text,padding:`${e.spacing(.5)} ${e.spacing(1)}`,marginRight:`-${e.spacing(1)}`})});var N=n(17172);const T=async()=>(0,N.AI)().get("api/admin/stats").catch(e=>(console.error(e),null)),E=()=>{const[e,r]=(0,v.useState)(null),[t,d]=(0,v.useState)(!0),l=(0,y.of)(I),i=h.TP.hasPermission(x.AccessControlAction.DataSourcesRead),o=h.TP.hasPermission(x.AccessControlAction.UsersRead);return(0,v.useEffect)(()=>{h.TP.hasPermission(x.AccessControlAction.ActionServerStatsRead)&&T().then(c=>{r(c),d(!1)})},[]),h.TP.hasPermission(x.AccessControlAction.ActionServerStatsRead)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h2",{className:l.title,children:"Instance statistics"}),!t&&!e?(0,s.jsx)("p",{className:l.notFound,children:"No stats found."}):(0,s.jsxs)("div",{className:l.row,children:[(0,s.jsx)(u,{isLoading:t,content:[{name:"Dashboards (starred)",value:`${e?.dashboards} (${e?.stars})`},{name:"Tags",value:e?.tags},{name:"Playlists",value:e?.playlists},{name:"Snapshots",value:e?.snapshots}],footer:(0,s.jsx)(g.z9,{href:"/dashboards",variant:"secondary",children:"Manage dashboards"})}),(0,s.jsxs)("div",{className:l.doubleRow,children:[(0,s.jsx)(u,{isLoading:t,content:[{name:"Data sources",value:e?.datasources}],footer:i&&(0,s.jsx)(g.z9,{href:"/datasources",variant:"secondary",children:"Manage data sources"})}),(0,s.jsx)(u,{isLoading:t,content:[{name:"Alerts",value:e?.alerts}],footer:(0,s.jsx)(g.z9,{href:"/alerting/list",variant:"secondary",children:"Manage alerts"})})]}),(0,s.jsx)(u,{isLoading:t,content:[{name:"Organisations",value:e?.orgs},{name:"Users total",value:e?.users},{name:"Active sessions",value:e?.activeSessions},{name:"Active users in last 30 days",value:e?.activeUsers},...$(e,m.$)],footer:o&&(0,s.jsx)(g.z9,{href:"/admin/users",variant:"secondary",children:"Manage users"})})]})]}):null},$=(e,r)=>!r.anonymousEnabled||!e?.activeDevices?[]:r.anonymousDeviceLimit?[{name:"Active anonymous devices",value:`${e.activeDevices} / ${r.anonymousDeviceLimit}`,tooltip:"Detected devices that are not logged in, in last 30 days.",highlight:e.activeDevices>r.anonymousDeviceLimit}]:[{name:"Active anonymous devices",value:`${e.activeDevices}`,tooltip:"Detected devices that are not logged in, in last 30 days."}],I=e=>({title:(0,a.css)({marginBottom:e.spacing(4)}),row:(0,a.css)({display:"flex",justifyContent:"space-between",width:"100%","& > div:not(:last-of-type)":{marginRight:e.spacing(2)},"& > div":{width:"33.3%"}}),doubleRow:(0,a.css)({display:"flex",flexDirection:"column","& > div:first-of-type":{marginBottom:e.spacing(2)}}),notFound:(0,a.css)({fontSize:e.typography.h6.fontSize,textAlign:"center",height:"290px"})})},55356:(L,p,n)=>{n.r(p),n.d(p,{UpgradeInfo:()=>D,UpgradePage:()=>A,default:()=>l});var s=n(74848),a=n(32196),v=n(71468),m=n(40845),y=n(55852),g=n(21780),x=n(17422);const h={fontWeight:500,fontSize:"26px",lineHeight:"123%"},b=i=>{const o=i.isDark?"public/img/licensing/header_dark.svg":"public/img/licensing/header_light.svg",c=i.isDark?i.v1.palette.dark9:i.v1.palette.gray6;return{container:(0,a.css)`
      padding: 36px 79px;
      background: ${i.components.panel.background};
    `,footer:(0,a.css)`
      text-align: center;
      padding: 16px;
      background: ${c};
    `,header:(0,a.css)`
      height: 137px;
      padding: 40px 0 0 79px;
      position: relative;
      background: url('${o}') right;
    `}};function P({header:i,editionNotice:o,subheader:c,children:j}){const f=(0,m.of)(b);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:f.header,children:[(0,s.jsx)("h2",{style:h,children:i}),c&&(0,s.jsx)("h3",{children:c}),(0,s.jsx)(S,{size:"128px",style:{boxShadow:"0px 0px 24px rgba(24, 58, 110, 0.45)",background:"#0A1C36",position:"absolute",top:"19px",left:"71%"},children:(0,s.jsx)("img",{src:"public/img/grafana_icon.svg",alt:"Grafana",width:"80px",style:{position:"absolute",left:"23px",top:"20px"}})})]}),(0,s.jsx)("div",{className:f.container,children:j}),o&&(0,s.jsx)("div",{className:f.footer,children:o})]})}const S=({size:i,style:o,children:c})=>{const j=(0,m.$j)();return(0,s.jsx)("div",{style:{width:i,height:i,position:"absolute",bottom:0,right:0,borderRadius:j.shape.radius.circle,...o},children:c})};var C=n(51372);function A({navModel:i}){return(0,s.jsx)(g.YW,{navModel:i,children:(0,s.jsxs)(g.YW.Contents,{children:[(0,s.jsx)(C.ServerStats,{}),(0,s.jsx)(D,{editionNotice:`You are running the open-source version of Grafana.
        You have to install the Enterprise edition in order enable Enterprise features.`})]})})}const u={fontWeight:500,fontSize:"26px",lineHeight:"123%"},D=({editionNotice:i})=>{const o=(0,m.of)(N);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h2",{className:o.title,children:"Enterprise license"}),(0,s.jsx)(P,{header:"Grafana Enterprise",subheader:"Get your free trial",editionNotice:i,children:(0,s.jsxs)("div",{className:o.column,children:[(0,s.jsx)(I,{}),(0,s.jsx)($,{})]})})]})},N=i=>({column:(0,a.css)`
      display: grid;
      grid-template-columns: 100%;
      column-gap: 20px;
      row-gap: 40px;

      @media (min-width: 1050px) {
        grid-template-columns: 50% 50%;
      }
    `,title:(0,a.css)`
      margin: ${i.spacing(4)} 0;
    `}),T=()=>(0,s.jsxs)("div",{style:{marginTop:"40px",marginBottom:"30px"},children:[(0,s.jsx)("h2",{style:u,children:"Get Grafana Enterprise"}),(0,s.jsx)(E,{}),(0,s.jsx)("p",{style:{paddingTop:"12px"},children:"You can use the trial version for free for 30 days. We will remind you about it five days before the trial period ends."})]}),E=()=>(0,s.jsx)(y.z9,{variant:"primary",size:"lg",href:"https://grafana.com/contact?about=grafana-enterprise&utm_source=grafana-upgrade-page",children:"Contact us and get a free trial"}),$=()=>(0,s.jsxs)("div",{children:[(0,s.jsx)("h4",{children:"At your service"}),(0,s.jsxs)(r,{children:[(0,s.jsx)(t,{title:"Enterprise Plugins",image:"public/img/licensing/plugin_enterprise.svg"}),(0,s.jsx)(t,{title:"Critical SLA: 2 hours",image:"public/img/licensing/sla.svg"}),(0,s.jsxs)(t,{title:"Unlimited Expert Support",image:"public/img/licensing/customer_support.svg",children:["24 x 7 x 365 support via",(0,s.jsxs)(r,{nested:!0,children:[(0,s.jsx)(t,{title:"Email"}),(0,s.jsx)(t,{title:"Private Slack channel"}),(0,s.jsx)(t,{title:"Phone"})]})]}),(0,s.jsx)(t,{title:"Hand-in-hand support",image:"public/img/licensing/handinhand_support.svg",children:"in the upgrade process"})]}),(0,s.jsxs)("div",{style:{marginTop:"20px"},children:[(0,s.jsx)("strong",{children:"Also included:"}),(0,s.jsx)("br",{}),"Indemnification, working with Grafana Labs on future prioritization, and training from the core Grafana team."]}),(0,s.jsx)(T,{})]}),I=()=>(0,s.jsxs)("div",{style:{paddingRight:"11px"},children:[(0,s.jsx)("h4",{children:"Enhanced functionality"}),(0,s.jsx)(e,{})]}),e=()=>(0,s.jsxs)(r,{children:[(0,s.jsx)(t,{title:"Data source permissions"}),(0,s.jsx)(t,{title:"Reporting"}),(0,s.jsx)(t,{title:"SAML authentication"}),(0,s.jsx)(t,{title:"Enhanced LDAP integration"}),(0,s.jsx)(t,{title:"Team Sync",children:"LDAP, GitHub OAuth, Auth Proxy, Okta"}),(0,s.jsx)(t,{title:"White labeling"}),(0,s.jsx)(t,{title:"Auditing"}),(0,s.jsx)(t,{title:"Settings updates at runtime"}),(0,s.jsx)(t,{title:"Grafana usage insights",children:(0,s.jsxs)(r,{nested:!0,children:[(0,s.jsx)(t,{title:"Sort dashboards by popularity in search"}),(0,s.jsx)(t,{title:"Find unused dashboards"}),(0,s.jsx)(t,{title:"Dashboard usage stats drawer"}),(0,s.jsx)(t,{title:"Dashboard presence indicators"})]})}),(0,s.jsx)(t,{title:"Enterprise plugins",children:(0,s.jsxs)(r,{nested:!0,children:[(0,s.jsx)(t,{title:"Oracle"}),(0,s.jsx)(t,{title:"Splunk"}),(0,s.jsx)(t,{title:"Service Now"}),(0,s.jsx)(t,{title:"Dynatrace"}),(0,s.jsx)(t,{title:"New Relic"}),(0,s.jsx)(t,{title:"DataDog"}),(0,s.jsx)(t,{title:"AppDynamics"}),(0,s.jsx)(t,{title:"SAP HANA\xAE"}),(0,s.jsx)(t,{title:"Gitlab"}),(0,s.jsx)(t,{title:"Honeycomb"}),(0,s.jsx)(t,{title:"Jira"}),(0,s.jsx)(t,{title:"MongoDB"}),(0,s.jsx)(t,{title:"Salesforce"}),(0,s.jsx)(t,{title:"Snowflake"}),(0,s.jsx)(t,{title:"Wavefront"})]})})]}),r=({children:i,nested:o})=>{const c=(0,a.css)`
    display: flex;
    flex-direction: column;
    padding-top: 8px;

    > div {
      margin-bottom: ${o?0:8}px;
    }
  `;return(0,s.jsx)("div",{className:c,children:i})},t=({children:i,title:o,image:c})=>{const j=c||"public/img/licensing/checkmark.svg",f=(0,a.css)`
    display: flex;

    > img {
      display: block;
      height: 22px;
      flex-grow: 0;
      padding-right: 12px;
    }
  `,U=(0,a.css)`
    font-weight: 500;
    line-height: 1.7;
  `;return(0,s.jsxs)("div",{className:f,children:[(0,s.jsx)("img",{src:j,alt:""}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:U,children:o}),i]})]})},d=i=>({navModel:(0,x.tc)(i.navIndex,"upgrading")}),l=(0,v.connect)(d)(A)}}]);

//# sourceMappingURL=5356.ed243c1847fa19a5965e.js.map