1
|
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b870e5a2-be29-4fbc-9008-1a8e00d01cee",e._sentryDebugIdIdentifier="sentry-dbid-b870e5a2-be29-4fbc-9008-1a8e00d01cee")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"8b7b01b6c705cf50f8050ce0fb8fc6b58fe68567"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[5756],{39612:function(e,t,n){n(74916),n(15306);t.Z=function(e){return(e||"").replace(/[\s:()./]/g,"_")}},42448:function(e,t,n){n.d(t,{V:function(){return a}});var r={ErrNoChartExist:"ErrNoChartExist"},a=function(e){var t=!!(arguments.length>1&&void 0!==arguments[1]?arguments[1]:r)[e];return t}},91354:function(e,t,n){var r=n(87462),a=n(29439),o=n(67294),c=n(3701),i=n(73018),l=n(54576),s=n(5312);t.Z=function(e){var t=(0,l.useChart)(),n=(0,s.rJ)(),u=(0,a.Z)(n,2)[1];return o.createElement(c.Button,(0,r.Z)({icon:o.createElement(c.default,{svg:i.default,size:"16px"}),onClick:function(){return u(t)},title:"Add alert configuration","data-testid":"chartHeaderToolbox-addAlertConfiguration"},e))}},84817:function(e,t,n){var r=n(87462),a=n(67294),o=n(65351),c=n(97730),i=n(3701),l=n(54576),s=n(33335),u=function(e){var t=(0,o.Z)("addToDashboardModal").handleOpenModal,n=(0,l.useChart)(),u=function(){var e=n.getAttribute("id");t("",{chartId:e})},d=(0,s.gI)("dashboard:Update");return(0,a.useLayoutEffect)((function(){return n.onKeyChange(["Alt","Shift","KeyD"],d?u:function(){})}),[d]),a.createElement(i.Button,(0,r.Z)({icon:a.createElement(i.default,{svg:c.Z,size:"16px"}),onClick:d?u:function(){},title:d?"Add to dashboard":"You need to be logged in to create your custom dashboards and use this chart in them","data-testid":"chartHeaderToolbox-addDashboard",disabled:!d},e))};t.Z=(0,a.memo)(u)},61181:function(e,t,n){n.d(t,{Cr:function(){return i},EG:function(){return l},G0:function(){return s},Ld:function(){return c}});var r=n(4942);n(92222),n(74916),n(77601),n(91058),n(15306),n(38862),n(47941),n(82526),n(57327),n(41539),n(88449),n(2490),n(59849),n(38880),n(15581),n(34514),n(54747),n(49337),n(33321),n(69070);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var c=function(e,t){return e.on("sizeChanged",(function(e,n,r){if(e.getParent()===t){var a=e.getAttribute("id"),o=t.getAttribute("host"),c="chart_height.".concat(o,"/").concat(a);localStorage.setItem(c,n);var i="chart_width.".concat(o,"/").concat(a);localStorage.setItem(i,r)}}))},i=function(e,t,n){var r=e.getAttribute("host"),a="chart_height.".concat(r,"/").concat(t),o=localStorage.getItem(a);return o?/px/.test(o)?parseInt(o.replace("px",""),10):parseInt(o,10):n},l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};localStorage.setItem("chart_layout/".concat(n.i),JSON.stringify(n))},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=localStorage.getItem("chart_layout/".concat(e));try{var a=JSON.parse(r);return o(a?o({},a):o({},n),t)}catch(c){return o(o({},n),t)}}},38626:function(e,t,n){var r=n(87462),a=n(29439),o=n(45987),c=n(67294),i=n(93416),l=n(64637),s=n(82351),u=["text","TextComponent"];t.Z=function(e){var t=e.text,n=e.TextComponent,d=void 0===n?i.Text:n,m=(0,o.Z)(e,u),f=(0,c.useState)(""),p=(0,a.Z)(f,2),h=p[0],v=p[1],b=(0,c.useState)(),g=(0,a.Z)(b,2),E=g[0],w=g[1];return(0,c.useEffect)((function(){if(E){for(var e=E.offsetWidth,n=0;E.scrollWidth>e;)E.textContent=(0,l.a)(E.textContent,n),n+=1;E.textContent!==t&&v(t)}}),[t,E]),c.createElement(s.Z,{content:h?t:"",align:"bottom",isBasic:!0},c.createElement(d,(0,r.Z)({truncate:!0,ref:w},m),t))}},43969:function(e,t,n){var r=n(67294),a=n(93416),o=n(91008),c=n(10082),i=n(5710),l=n(37503),s=function(){return r.createElement(a.Flex,{padding:[6],round:1,width:"600px",background:"modalInfoBackground"},r.createElement(a.Box,{margin:[0,4,0,0]},r.createElement(a.Box,{as:a.Icon,width:10,height:10,name:"nodes_update"})),r.createElement(a.Flex,{column:!0,gap:2},r.createElement(a.Text,{strong:!0},"Couldn't find the chart you were looking for? "),r.createElement(a.Text,{color:"textDescription"},"Netdata has zero-configuration auto-detection for most applications and systems, this is achieved using collectors. If you miss some specific chart please check our"," ",r.createElement(o.Z,{href:"https://learn.netdata.cloud/docs/agent/collectors",target:"_blank","data-ga":"chart-area::click-link-collectors::charts-view"},"list of collectors")," ","to see if any additional step is needed.")))},u=function(){return r.createElement(a.Flex,{width:"100%",column:!0,gap:6,margin:[8,0,0,0]},r.createElement(c.Z,null),r.createElement(a.Flex,{gap:1,alignItems:"center",justifyContent:"center",padding:[2],background:"successSemi"},r.createElement(l.Z,null,r.createElement(a.Text,{color:"primary"},"Upgrade to Business for unlimited access")),r.createElement(a.Text,null,"or"),r.createElement(i.Z,null,r.createElement(a.Text,{color:"primary"},"review your Space active Nodes"))))};t.Z=function(e){var t=e.noPreferredNodesError;return r.createElement(a.Flex,{column:!0,justifyContent:"center",alignItems:"center",alignSelf:"center",margin:[30,0,0]},r.createElement(a.Flex,{column:!0,justifyContent:"center",alignItems:"center",width:"300px",margin
|