nezhahq.github.io/assets/guide_services.md.DcuJuPQ3.js
2024-07-08 15:22:18 +00:00

2 lines
4.8 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{_ as e,c as t,o as a,a4 as o}from"./chunks/framework.BmdFiWrL.js";const _=JSON.parse('{"title":"服务监控","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"guide/services.md","filePath":"guide/services.md","lastUpdated":1720452113000}'),r={name:"guide/services.md"},i=o('<h1 id="服务监控" tabindex="-1">服务监控 <a class="header-anchor" href="#服务监控" aria-label="Permalink to &quot;服务监控&quot;"></a></h1><p><strong>服务区域是设置 Agent 监控外部网站或服务器的功能设置区</strong><br><strong>设置好的服务监控可以在主页中的“服务”页查看过去 30 天的可用性监控结果</strong></p><h2 id="使用方法" tabindex="-1">使用方法 <a class="header-anchor" href="#使用方法" aria-label="Permalink to &quot;使用方法&quot;"></a></h2><p>如需新增一个监控,可以进入管理面板中的“服务”页,点击“添加监控”。</p><p>新增一个服务监控时,你需要设置以下参数:</p><ul><li><p><strong>名称</strong>:自定义一个名称。</p></li><li><p><strong>类型</strong>选择一个监控类型。目前哪吒监控支持三种监控类型分别是“HTTP-GET”、“ICMP-Ping”和“TCP-Ping”。</p></li><li><p><strong>目标</strong>:根据你选择的类型不同,目标的设置方法也不同:</p><ul><li><code>HTTP-GET</code>:选择此类型时,你应输入一个 URL 作为目标URL 需添加 <code>http://</code> 或 <code>https://</code>。<strong>如果你的目标 URL 是 <code>https://</code>,将会同时监控该 URL 的 SSL 证书,当 SSL 证书到期或发生变更,会触发提醒</strong>。例如:<a href="https://example.com" target="_blank" rel="noreferrer">https://example.com</a>。</li><li><code>ICMP-Ping</code>:选择此类型时,你应输入一个域名或 IP不含端口号。例如1.1.1.1 或 example.com。</li><li><code>TCP-Ping</code>:选择此类型时,你应输入一个域名或 IP 并包含端口号。例如1.1.1.1:80 或 example.com:22。</li></ul></li><li><p><strong>请求间隔</strong>:设定 Agent 每次请求目标的时间间隔,以秒为单位。</p></li><li><p><strong>覆盖范围</strong>:选择一条规则来确定要使用哪些 Agent 来请求目标。</p></li><li><p><strong>特定服务器</strong>:配合覆盖范围使用,选择规则内需要排除的 Agent。</p></li><li><p><strong>通知方式组</strong>:选择你已经在“告警”页设置好的通知方式,<a href="/guide/notifications.html#灵活的通知方式">点击这里</a>了解详情。</p></li><li><p><strong>启用故障通知</strong>:根据需要选择是否接收目标故障通知,默认为不勾选。</p></li></ul><p>设置完成后,点击“添加”即可。稍等片刻前往主页的“服务”页查看监控结果。</p><h2 id="延迟变化告警" tabindex="-1">延迟变化告警 <a class="header-anchor" href="#延迟变化告警" aria-label="Permalink to &quot;延迟变化告警&quot;"></a></h2><p>哪吒监控可以监测并统计 Agent 到目标服务器之间的延迟,在发生较大变化的情况下发送通知。利用此功能可以帮助你监控服务器的线路是否发生了变化。</p><ul><li><strong>启用延迟通知</strong>:开启时,当 Agent 至目标服务器的延迟大于<code>最高延迟</code>或小于<code>最低延迟</code>时,将会发送告警通知。</li></ul><h2 id="告警时触发任务" tabindex="-1">告警时触发任务 <a class="header-anchor" href="#告警时触发任务" aria-label="Permalink to &quot;告警时触发任务&quot;"></a></h2><p>如果你需要在服务监控告警触发时执行一些任务,可以勾选“启用触发任务”,并在“告警时触发任务”和“恢复时触发任务”中选择你已经提前设置好的触发任务。</p><h2 id="网络延迟图表" tabindex="-1">网络延迟图表 <a class="header-anchor" href="#网络延迟图表" aria-label="Permalink to &quot;网络延迟图表&quot;"></a></h2><p>在服务页中设置的 TCP-Ping 和 ICMP-Ping 类型的监控都会自动启用监控图表功能。在主页的“网络”页中,你可以查看历史网络延迟监控图表。图表中的数据是根据 Agent 到目标服务器的延迟统计而来,你可以点击 Agent 的名称来切换图表。在图表中,可以取消勾选目标服务器的名称来隐藏或显示对应的数据。</p><h2 id="管理监控" tabindex="-1">管理监控 <a class="header-anchor" href="#管理监控" aria-label="Permalink to &quot;管理监控&quot;"></a></h2><p>如需对已有的服务监控进行管理,可以前往管理面板中的“服务”页。选择一条监控配置,点击右侧的图标进行编辑或删除。</p>',16),n=[i];function l(s,c,d,p,g,h){return a(),t("div",null,n)}const P=e(r,[["render",l]]);export{_ as __pageData,P as default};