- homepage/index.html:菜单改为 特性/文档/定价,正文按钮指向 /docs/ 与 /pricing - homepage/pricing.html:新增许可与定价页(License & Pricing) - homepage/assets/screenshots/:6 张文档截图收进站点,构建不再依赖仓库 docs/ 目录 - scripts/build-homepage.py:取图优先 homepage/assets;模板内置 h5 移动端修复(重建不丢);dist/assets 不再重复复制截图 - homepage/dist/:23 个构建产物入库,nginx 直接托管(重建幂等)
49 lines
4.1 KiB
HTML
49 lines
4.1 KiB
HTML
<!doctype html>
|
|
<html lang="zh-CN"><head>
|
|
<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
|
|
<title>告警通知 · LokiStack 文档</title>
|
|
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='14' fill='%23059669'/%3E%3Ctext x='32' y='44' font-size='34' font-weight='800' fill='%23fff' text-anchor='middle' font-family='sans-serif'%3EL%3C/text%3E%3C/svg%3E">
|
|
<link rel="stylesheet" href="/docs/assets/loki-docs.css">
|
|
<style id="h5-fix">@media (max-width:820px){body{-webkit-text-size-adjust:100%}nav a,nav button,.nav-links a,.nav-menu a,.nav-item,.topnav a,.menu a,.side a,.sidebar a,.docs-side a,.toc a,footer a,a.btn,.plan .btn,button.btn{display:inline-flex;align-items:center;min-height:44px}.side a,.sidebar a,.docs-side a{padding:10px 12px;border-radius:8px}.toc a{padding:8px 0}pre{max-width:100%;overflow-x:auto}.plans,.grid,.grid-2,.grid-3{grid-template-columns:1fr!important}.hero h1,.hero-title{font-size:clamp(24px,7vw,34px)!important}.tbl-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}}</style>
|
|
<script id="h5-fix-js">(function(){var f=function(){document.querySelectorAll("table").forEach(function(t){var p=t.parentElement;if(p&&p.classList&&p.classList.contains("tbl-scroll"))return;var w=document.createElement("div");w.className="tbl-scroll";p.insertBefore(w,t);w.appendChild(t);});};if(document.readyState==="loading")document.addEventListener("DOMContentLoaded",f);else f();})();</script>
|
|
</head><body>
|
|
<div class="topbar">
|
|
<a class="brand" href="/"><i>L</i>LokiStack</a>
|
|
<span style="color:#98a2b3;font-size:13px">文档</span>
|
|
<nav class="topnav"><a href="/">官网</a><a href="/docs/" class="on">文档</a></nav>
|
|
</div>
|
|
<div class="layout">
|
|
<aside class="side"><h4>开始使用</h4><a data-slug="readme" href="/docs/readme/">产品介绍</a><a data-slug="install" href="/docs/install/">快速安装</a><a data-slug="wizard" href="/docs/wizard/">部署向导</a><h4>采集与查询</h4><a data-slug="collectors" href="/docs/collectors/">日志采集</a><a data-slug="query" href="/docs/query/">日志查询</a><a data-slug="analysis" href="/docs/analysis/">日志分析</a><a data-slug="access" href="/docs/access/">查询授权</a><h4>告警与运维</h4><a data-slug="alerts" href="/docs/alerts/" class="on">告警通知</a><a data-slug="faq" href="/docs/faq/">常见问题</a></aside>
|
|
<article>
|
|
<h1>告警通知</h1>
|
|
<div class="meta">告警与运维 · 更新于 2026-10-28</div>
|
|
<p>「日志告警」页(<code>/alerts</code>)管理规则、通知通道与发送历史。</p>
|
|
<p><img alt="告警通知" src="/docs/assets/screenshots/alerts.png" /></p>
|
|
<h2 id="_1">快速开始</h2>
|
|
<ol>
|
|
<li>在「通知通道」中编辑默认通道,填入飞书群机器人 Webhook 并启用。</li>
|
|
<li>内置九条规则默认启用并已绑定默认通道,命中阈值即发送到群。</li>
|
|
</ol>
|
|
<h2 id="_2">规则</h2>
|
|
<ul>
|
|
<li>查询为 LogQL 日志流匹配;窗口(分钟)、阈值(条数)、冷却(分钟)三要素。</li>
|
|
<li>内置规则已排除 Loki 自身日志(app=loki),避免告警查询日志造成自我误报。</li>
|
|
<li>模板按钮一键填充常用规则(命名空间错误 / Ingress 4xx5xx / FATAL 等)。</li>
|
|
</ul>
|
|
<h2 id="_3">通道与发送历史</h2>
|
|
<ul>
|
|
<li>通道支持飞书 Webhook(可选签名);可建多通道对应不同告警群。</li>
|
|
<li>发送历史记录每次触发的命中数、投递结果与失败原因;保留天数在「系统设置 → 日志保留时间」调整。</li>
|
|
</ul>
|
|
<h2 id="_4">防刷屏机制</h2>
|
|
<ul>
|
|
<li>单规则冷却(默认 ≥ 2 小时);全平台每小时发送上限(风暴抑制)。</li>
|
|
<li>通道未配置/未启用时命中只记入历史,不影响规则评估。</li>
|
|
</ul>
|
|
<div class="pager"><a href="/docs/access/">← 查询授权</a><a href="/docs/faq/">常见问题 →</a></div>
|
|
</article>
|
|
<nav class="toc"><b>本页目录</b><a href="#_1">快速开始</a><a href="#_2">规则</a><a href="#_3">通道与发送历史</a><a href="#_4">防刷屏机制</a></nav>
|
|
</div>
|
|
<footer>LokiStack · <a href="/">返回官网</a> · © 日理万机</footer>
|
|
</body></html>
|