| "use strict";(self.webpackChunkhertzbeat=self.webpackChunkhertzbeat||[]).push([[59981],{15680:(e,t,r)=>{r.d(t,{xA:()=>p,yg:()=>g});var n=r(96540);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var c=n.createContext({}),s=function(e){var t=n.useContext(c),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},p=function(e){var t=s(e.components);return n.createElement(c.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,p=l(e,["components","mdxType","originalType","parentName"]),m=s(r),g=a,d=m["".concat(c,".").concat(g)]||m[g]||u[g]||o;return r?n.createElement(d,i(i({ref:t},p),{},{components:r})):n.createElement(d,i({ref:t},p))}));function g(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,i=new Array(o);i[0]=m;var l={};for(var c in t)hasOwnProperty.call(t,c)&&(l[c]=t[c]);l.originalType=e,l.mdxType="string"==typeof e?e:a,i[1]=l;for(var s=2;s<o;s++)i[s]=r[s];return n.createElement.apply(null,i)}return n.createElement.apply(null,r)}m.displayName="MDXCreateElement"},33202:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>c,contentTitle:()=>i,default:()=>u,frontMatter:()=>o,metadata:()=>l,toc:()=>s});var n=r(58168),a=(r(96540),r(15680));const o={id:"custom-config",title:"Advanced Params Config",sidebar_label:"Advanced Params Config"},i=void 0,l={unversionedId:"start/custom-config",id:"start/custom-config",title:"Advanced Params Config",description:"This describes how to configure the SMS server, the number of built-in availability alarm triggers, etc.",source:"@site/docs/start/custom-config.md",sourceDirName:"start",slug:"/start/custom-config",permalink:"/docs/start/custom-config",draft:!1,editUrl:"https://github.com/dromara/hertzbeat/edit/master/home/docs/start/custom-config.md",tags:[],version:"current",frontMatter:{id:"custom-config",title:"Advanced Params Config",sidebar_label:"Advanced Params Config"},sidebar:"docs",previous:{title:"Update Account",permalink:"/docs/start/account-modify"},next:{title:"Practice Example",permalink:"/docs/start/ssl-cert-practice"}},c={},s=[{value:"Configure the configuration file of HertzBeat",id:"configure-the-configuration-file-of-hertzbeat",level:3}],p={toc:s};function u(e){let{components:t,...r}=e;return(0,a.yg)("wrapper",(0,n.A)({},p,r,{components:t,mdxType:"MDXLayout"}),(0,a.yg)("p",null,"This describes how to configure the SMS server, the number of built-in availability alarm triggers, etc."),(0,a.yg)("p",null,(0,a.yg)("strong",{parentName:"p"},"Configuration file ",(0,a.yg)("inlineCode",{parentName:"strong"},"application.yml")," of ",(0,a.yg)("inlineCode",{parentName:"strong"},"hertzbeat"))),(0,a.yg)("h3",{id:"configure-the-configuration-file-of-hertzbeat"},"Configure the configuration file of HertzBeat"),(0,a.yg)("p",null,"Modify the configuration file located at ",(0,a.yg)("inlineCode",{parentName:"p"},"hertzbeat/config/application.yml"),(0,a.yg)("br",{parentName:"p"}),"\n","Note \u26a0\ufe0fThe docker container method needs to mount the application.yml file to the local host",(0,a.yg)("br",{parentName:"p"}),"\n","The installation package can be decompressed and modified in ",(0,a.yg)("inlineCode",{parentName:"p"},"hertzbeat/config/application.yml")," "),(0,a.yg)("ol",null,(0,a.yg)("li",{parentName:"ol"},"Configure the SMS sending server")),(0,a.yg)("blockquote",null,(0,a.yg)("p",{parentName:"blockquote"},"Only when your own SMS server is successfully configured, the alarm SMS triggered in the monitoring tool will be sent normally.")),(0,a.yg)("p",null,"Add the following Tencent platform SMS server configuration in ",(0,a.yg)("inlineCode",{parentName:"p"},"application.yml")," (parameters need to be replaced with your SMS server configuration) "),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-yaml"},"common:\n sms:\n tencent:\n secret-id: AKIDbQ4VhdMr89wDedFrIcgU2PaaMvOuBCzY\n secret-key: PaXGl0ziY9UcWFjUyiFlCPMr77rLkJYlyA\n app-id: 1435441637\n sign-name: XX Technology\n template-id: 1343434\n")),(0,a.yg)("ol",{start:2},(0,a.yg)("li",{parentName:"ol"},"Configure alarm custom parameters")),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-yaml"},"alerter:\n # Custom console address\n console-url: https://console.tancloud.cn\n")),(0,a.yg)("ol",{start:3},(0,a.yg)("li",{parentName:"ol"},"Use external redis instead of memory to store real-time metric data")),(0,a.yg)("blockquote",null,(0,a.yg)("p",{parentName:"blockquote"},"By default, the real-time data of our metrics is stored in memory, which can be configured as follows to use redis instead of memory storage.")),(0,a.yg)("p",null,"Note \u26a0\ufe0f ",(0,a.yg)("inlineCode",{parentName:"p"},"memory.enabled: false, redis.enabled: true")),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-yaml"},"warehouse:\n store:\n memory:\n enabled: false\n init-size: 1024\n redis:\n enabled: true\n host: 127.0.0.1\n port: 6379\n password: 123456\n")))}u.isMDXComponent=!0}}]); |