deploy: 6308a82139
This commit is contained in:
1 parent
ecdaaf44ac
commit
8055cf5329
160 files changed
+214
-214
No files matched your search
@@ -8,7 +8,7 @@
|
||||
<link rel="stylesheet" href="/assets/style.0b9f658b.css">
|
||||
<link rel="modulepreload" href="/assets/chunks/AlgoliaSearchBox.98396bc7.js">
|
||||
<link rel="modulepreload" href="/assets/app.3817bf4e.js">
|
||||
<link rel="modulepreload" href="/assets/en_US_guide_notifications.md.2a64411b.lean.js">
|
||||
<link rel="modulepreload" href="/assets/en_US_guide_notifications.md.ac2516db.lean.js">
|
||||
|
||||
<meta name="twitter:title" content="Flexible notification methods | Nezha Monitoring">
|
||||
<meta property="og:title" content="Flexible notification methods | Nezha Monitoring">
|
||||
@@ -57,7 +57,7 @@
|
||||
<span class="token punctuation">}</span>
|
||||
<span class="token punctuation">}</span>
|
||||
</code></pre></div><p>Delete relevant content information as needed</p><p><img src="https://user-images.githubusercontent.com/30169860/223605886-b7736825-24b8-4b6c-8bc9-96ac388599ef.png" alt=""></p></li></ul></li></ul><br><br><h2 id="description-of-notification-rules" tabindex="-1">Description of notification rules <a class="header-anchor" href="#description-of-notification-rules" aria-hidden="true">#</a></h2><h3 id="basic-rules" tabindex="-1">Basic Rules <a class="header-anchor" href="#basic-rules" aria-hidden="true">#</a></h3><ul><li>Type: one or more types can be selected, such as in a rule to select more than one type, you need to <strong>meet all the selected types at the same time</strong> to trigger the notification (see the example later) <ul><li><code>cpu</code>、<code>memory</code>、<code>swap</code>、<code>disk</code></li><li><code>net_in_speed</code> Inbound speed, <code>net_out_speed</code> Outbound speed, <code>net_all_speed</code> Inbound + Outbound speed, <code>transfer_in</code> Inbound Transfer, <code>transfer_out</code> Outbound Transfer, <code>transfer_all</code> Total Transfer</li><li><code>offline</code> Offline monitoring</li><li><code>load1</code>、<code>load5</code>、<code>load15</code> Load</li><li><code>process_count</code> Number of processes <em>Currently, counting the number of processes takes up too many resources and is not supported at the moment</em></li><li><code>tcp_conn_count</code>、<code>udp_conn_count</code> Number of connections</li></ul></li><li>duration:Lasting for a few seconds, the notification will only be triggered when the sampling record reaches 30% or more within a few seconds</li><li>min/max <ul><li>Transfer, network speed, and other values of the same type. Unit is byte (1KB=1024B,1MB = 1024*1024B)</li><li>Memory, hard disk, CPU. units are usage percentages</li><li>No setup required for offline monitoring</li></ul></li><li>cover <code>[{"type":"offline","duration":10, "cover":0, "ignore":{"5": true}}]</code><ul><li><code>0</code> Cover all, use <code>ignore</code> to ignore specific servers</li><li><code>1</code> Ignore all, use <code>ignore</code> to monitoring specific servers<br> For example: <code>[{"type":"offline","duration":10, "cover":0, "ignore":{"5": true}}]</code></li></ul></li><li>ignore: Select to ignore specific servers, use with <code>cover</code> with server id and boolean, e.g.: <code>{"1": true, "2":false}</code></li></ul><p><strong>Complete examples:</strong></p><blockquote><blockquote><p>Add an offline notification</p></blockquote><ul><li>Name: Offline notification</li><li>Rules: <code>[{"Type":"offline","Duration":10}]</code></li><li>Enable: √</li></ul></blockquote><blockquote><blockquote><p>Add an notification when the CPU exceeds 50% for 10s <strong>but</strong> the memory usage is below 20% for 20s</p></blockquote><ul><li>Name: CPU and RAM</li><li>Rules: <code>[{"Type":"cpu","Min":0,"Max":50,"Duration":10},{"Type":"memory","Min":20,"Max":0,"Duration":20}]</code></li><li>Enable: √</li></ul></blockquote><blockquote><blockquote><p>Send specific server notifications to specific notification groups</p></blockquote><p>Case:<br> You have four servers, 1, 2, 3, 4, and two different notification groups, A and B<br> 1, 2 The two servers are down for 10 minutes and send a notification to Notification Group A<br> 3, 4 These two servers are down for ten minutes and then send a notification to Notification Group B</p><p>First you need to set up two notification groups, A and B, and then add two alarm rules:</p><p><strong>Rule I:</strong></p><ul><li>Name: 1, 2 Off-line, send notification to group A</li><li>Rules:<code>[{"type":"offline","duration":600,"cover":1,"ignore":{"1":true,"2":true}}]</code></li><li>Notification group: A</li><li>Enable: √</li></ul><p><strong>Rule II:</strong></p><ul><li>Name: 3, 4 Off-line, send notification to group B</li><li>Rules:<code>[{"type":"offline","duration":600,"cover":1,"ignore":{"3":true,"4":true}}]</code></li><li>Notification group: B</li><li>Enable: √</li></ul></blockquote><p><strong>Using these rules flexibly will help you to make full use of the notification function</strong></p><br><h3 id="special-any-cycle-transfer-notification" tabindex="-1">Special: Any-cycle transfer notification <a class="header-anchor" href="#special-any-cycle-transfer-notification" aria-hidden="true">#</a></h3><p>Can be used as monthly transfer notificatin</p><ul><li><p>type</p><ul><li><code>transfer_in_cycle</code> Inbound transfer during the cycle</li><li><code>transfer_out_cycle</code> Outbound transfer durinLine truncated
|
||||
<script>__VP_HASH_MAP__ = JSON.parse("{\"case_case1.md\":\"1794f559\",\"case_case2.md\":\"ed013d2e\",\"case_case3.md\":\"a1206002\",\"case_case4.md\":\"946a8c9a\",\"case_index.md\":\"e65643e3\",\"developer_index.md\":\"f6a97ef7\",\"developer_l10n.md\":\"65dd08ac\",\"developer_theme.md\":\"c9c3df07\",\"en_us_case_case1.md\":\"faf145b6\",\"en_us_case_case2.md\":\"bbcc6810\",\"en_us_case_case3.md\":\"0edf847c\",\"en_us_case_case4.md\":\"f16c8236\",\"en_us_case_index.md\":\"fce78758\",\"en_us_developer_index.md\":\"c7b29d43\",\"en_us_developer_l10n.md\":\"84585412\",\"en_us_developer_theme.md\":\"7ec56509\",\"en_us_guide_agent.md\":\"c7f0dfcb\",\"en_us_guide_agentq.md\":\"be2f4ffa\",\"en_us_guide_api.md\":\"849e2b30\",\"en_us_guide_dashboard.md\":\"eedbd6ec\",\"en_us_guide_dashboardq.md\":\"e5ede841\",\"en_us_guide_loginq.md\":\"abbb5310\",\"en_us_guide_notifications.md\":\"2a64411b\",\"en_us_guide_q2.md\":\"f2fa159e\",\"en_us_guide_q3.md\":\"b4ace544\",\"en_us_guide_q4.md\":\"e7252bf3\",\"en_us_guide_q5.md\":\"e19b333e\",\"en_us_guide_q6.md\":\"61e6cc58\",\"en_us_guide_q7.md\":\"13e8eff6\",\"en_us_guide_servers.md\":\"e4b4b014\",\"en_us_guide_services.md\":\"18710eae\",\"en_us_guide_settings.md\":\"65eb2543\",\"en_us_guide_tasks.md\":\"6c70788f\",\"en_us_index.md\":\"dafee8bb\",\"guide_agent.md\":\"8e4f34ce\",\"guide_agentq.md\":\"912547e6\",\"guide_api.md\":\"2a8f1045\",\"guide_dashboard.md\":\"e0aec813\",\"guide_dashboardq.md\":\"697f62b1\",\"guide_loginq.md\":\"16e88cb1\",\"guide_notifications.md\":\"0b16a431\",\"guide_q1.md\":\"ee6f6c23\",\"guide_q2.md\":\"e13638d2\",\"guide_q3.md\":\"b8527d76\",\"guide_q4.md\":\"e70e12a9\",\"guide_q5.md\":\"9512544d\",\"guide_q6.md\":\"a6cc86ae\",\"guide_q7.md\":\"ec382cdc\",\"guide_servers.md\":\"cbaa3ee8\",\"guide_services.md\":\"43d6b1e3\",\"guide_settings.md\":\"24463975\",\"guide_tasks.md\":\"40f424f7\",\"index.md\":\"1a4b7aec\"}")</script>
|
||||
<script>__VP_HASH_MAP__ = JSON.parse("{\"case_case1.md\":\"e8422f28\",\"case_case2.md\":\"98402613\",\"case_case3.md\":\"a7bbe7cd\",\"case_case4.md\":\"6534bb53\",\"case_index.md\":\"735a5509\",\"developer_index.md\":\"7a6250ee\",\"developer_l10n.md\":\"d5227d65\",\"developer_theme.md\":\"6ce5aa7a\",\"en_us_case_case1.md\":\"18c5364c\",\"en_us_case_case2.md\":\"0e1b03a9\",\"en_us_case_case3.md\":\"0c498258\",\"en_us_case_case4.md\":\"5490710b\",\"en_us_case_index.md\":\"80f9b2ed\",\"en_us_developer_index.md\":\"92cd2c51\",\"en_us_developer_l10n.md\":\"506de5bc\",\"en_us_developer_theme.md\":\"388425a5\",\"en_us_guide_agent.md\":\"f9df6954\",\"en_us_guide_agentq.md\":\"20043701\",\"en_us_guide_api.md\":\"13846ba3\",\"en_us_guide_dashboard.md\":\"b397a99b\",\"en_us_guide_dashboardq.md\":\"3730ca55\",\"en_us_guide_loginq.md\":\"fe1570c2\",\"en_us_guide_notifications.md\":\"ac2516db\",\"en_us_guide_q2.md\":\"bd524cee\",\"en_us_guide_q3.md\":\"c1f4b605\",\"en_us_guide_q4.md\":\"3fbf8891\",\"en_us_guide_q5.md\":\"48250754\",\"en_us_guide_q6.md\":\"9a836e57\",\"en_us_guide_q7.md\":\"48e4d359\",\"en_us_guide_servers.md\":\"534691f1\",\"en_us_guide_services.md\":\"664666bf\",\"en_us_guide_settings.md\":\"8231aab0\",\"en_us_guide_tasks.md\":\"cfebb1c8\",\"en_us_index.md\":\"2f784d1d\",\"guide_agent.md\":\"adc1dbea\",\"guide_agentq.md\":\"82fb86f3\",\"guide_api.md\":\"869d6520\",\"guide_dashboard.md\":\"2699edb9\",\"guide_dashboardq.md\":\"ed953cad\",\"guide_loginq.md\":\"b817ea6d\",\"guide_notifications.md\":\"de4af434\",\"guide_q1.md\":\"10dbeeed\",\"guide_q2.md\":\"9a1068ab\",\"guide_q3.md\":\"f1a75ac2\",\"guide_q4.md\":\"3cf37dd8\",\"guide_q5.md\":\"f70a3836\",\"guide_q6.md\":\"fa58eb13\",\"guide_q7.md\":\"d3fe7b36\",\"guide_servers.md\":\"65725bf6\",\"guide_services.md\":\"0c5bde33\",\"guide_settings.md\":\"4a799cff\",\"guide_tasks.md\":\"a705ca6b\",\"index.md\":\"c2b683d5\"}")</script>
|
||||
<script type="module" async src="/assets/app.3817bf4e.js"></script>
|
||||
|
||||
</body>
|
||||
|
||||
Reference in new issue
Block a user