mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-11-09 10:19:16 +00:00
1 line
5.3 KiB
JavaScript
1 line
5.3 KiB
JavaScript
"use strict";(self.webpackChunkrancher_docs=self.webpackChunkrancher_docs||[]).push([[89162],{3905:(e,r,n)=>{n.d(r,{Zo:()=>u,kt:()=>g});var t=n(67294);function a(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function i(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function o(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?i(Object(n),!0).forEach((function(r){a(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function c(e,r){if(null==e)return{};var n,t,a=function(e,r){if(null==e)return{};var n,t,a={},i=Object.keys(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=0||(a[n]=e[n]);return a}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var s=t.createContext({}),l=function(e){var r=t.useContext(s),n=r;return e&&(n="function"==typeof e?e(r):o(o({},r),e)),n},u=function(e){var r=l(e.components);return t.createElement(s.Provider,{value:r},e.children)},d={inlineCode:"code",wrapper:function(e){var r=e.children;return t.createElement(t.Fragment,{},r)}},p=t.forwardRef((function(e,r){var n=e.components,a=e.mdxType,i=e.originalType,s=e.parentName,u=c(e,["components","mdxType","originalType","parentName"]),p=l(n),g=a,f=p["".concat(s,".").concat(g)]||p[g]||d[g]||i;return n?t.createElement(f,o(o({ref:r},u),{},{components:n})):t.createElement(f,o({ref:r},u))}));function g(e,r){var n=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var i=n.length,o=new Array(i);o[0]=p;var c={};for(var s in r)hasOwnProperty.call(r,s)&&(c[s]=r[s]);c.originalType=e,c.mdxType="string"==typeof e?e:a,o[1]=c;for(var l=2;l<i;l++)o[l]=n[l];return t.createElement.apply(null,o)}return t.createElement.apply(null,n)}p.displayName="MDXCreateElement"},54427:(e,r,n)=>{n.r(r),n.d(r,{assets:()=>s,contentTitle:()=>o,default:()=>d,frontMatter:()=>i,metadata:()=>c,toc:()=>l});var t=n(87462),a=(n(67294),n(3905));const i={title:"Enable Alerting for Rancher CIS Benchmark"},o=void 0,c={unversionedId:"how-to-guides/advanced-user-guides/cis-scan-guides/enable-alerting-for-rancher-cis-benchmark",id:"version-2.6/how-to-guides/advanced-user-guides/cis-scan-guides/enable-alerting-for-rancher-cis-benchmark",title:"Enable Alerting for Rancher CIS Benchmark",description:"Alerts can be configured to be sent out for a scan that runs on a schedule.",source:"@site/versioned_docs/version-2.6/how-to-guides/advanced-user-guides/cis-scan-guides/enable-alerting-for-rancher-cis-benchmark.md",sourceDirName:"how-to-guides/advanced-user-guides/cis-scan-guides",slug:"/how-to-guides/advanced-user-guides/cis-scan-guides/enable-alerting-for-rancher-cis-benchmark",permalink:"/v2.6/how-to-guides/advanced-user-guides/cis-scan-guides/enable-alerting-for-rancher-cis-benchmark",draft:!1,editUrl:"https://github.com/rancher/rancher-docs/edit/main/versioned_docs/version-2.6/how-to-guides/advanced-user-guides/cis-scan-guides/enable-alerting-for-rancher-cis-benchmark.md",tags:[],version:"2.6",lastUpdatedAt:1668452187,formattedLastUpdatedAt:"Nov 14, 2022",frontMatter:{title:"Enable Alerting for Rancher CIS Benchmark"},sidebar:"tutorialSidebar",previous:{title:"View Reports",permalink:"/v2.6/how-to-guides/advanced-user-guides/cis-scan-guides/view-reports"},next:{title:"Configure Alerts for Periodic Scan on a Schedule",permalink:"/v2.6/how-to-guides/advanced-user-guides/cis-scan-guides/configure-alerts-for-periodic-scan-on-a-schedule"}},s={},l=[],u={toc:l};function d(e){let{components:r,...n}=e;return(0,a.kt)("wrapper",(0,t.Z)({},u,n,{components:r,mdxType:"MDXLayout"}),(0,a.kt)("p",null,"Alerts can be configured to be sent out for a scan that runs on a schedule."),(0,a.kt)("admonition",{title:"Prerequisite:",type:"note"},(0,a.kt)("p",{parentName:"admonition"},"Before enabling alerts for ",(0,a.kt)("inlineCode",{parentName:"p"},"rancher-cis-benchmark"),", make sure to install the ",(0,a.kt)("inlineCode",{parentName:"p"},"rancher-monitoring")," application and configure the Receivers and Routes. For more information, see ",(0,a.kt)("a",{parentName:"p",href:"/v2.6/reference-guides/monitoring-v2-configuration/receivers"},"this section.")),(0,a.kt)("p",{parentName:"admonition"},"While configuring the routes for ",(0,a.kt)("inlineCode",{parentName:"p"},"rancher-cis-benchmark")," alerts, you can specify the matching using the key-value pair ",(0,a.kt)("inlineCode",{parentName:"p"},"job: rancher-cis-scan"),". An example route configuration is ",(0,a.kt)("a",{parentName:"p",href:"/v2.6/reference-guides/monitoring-v2-configuration/receivers#example-route-config-for-cis-scan-alerts"},"here."))),(0,a.kt)("p",null,"While installing or upgrading the ",(0,a.kt)("inlineCode",{parentName:"p"},"rancher-cis-benchmark")," Helm chart, set the following flag to ",(0,a.kt)("inlineCode",{parentName:"p"},"true")," in the ",(0,a.kt)("inlineCode",{parentName:"p"},"values.yaml"),":"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-yaml"},"alerts:\n enabled: true\n")))}d.isMDXComponent=!0}}]); |