<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>node status on 又LAG隨性筆記</title><link>https://www.lagagain.com/tags/node-status/</link><description>Recent content in node status on 又LAG隨性筆記</description><generator>Hugo -- gohugo.io</generator><language>zh-TW</language><lastBuildDate>Sun, 22 Nov 2026 06:30:00 +0800</lastBuildDate><atom:link href="https://www.lagagain.com/tags/node-status/index.xml" rel="self" type="application/rss+xml"/><item><title>Ch8 - APISIX 自身健康檢查的兩種途徑：適用於不同版本的配置實戰</title><link>https://www.lagagain.com/post/2025-it%E9%90%B5%E4%BA%BA%E8%B3%BD-apisix%E4%BD%BF%E7%94%A8%E7%B6%93%E9%A9%97%E5%88%86%E4%BA%AB13/</link><pubDate>Sun, 22 Nov 2026 06:30:00 +0800</pubDate><guid>https://www.lagagain.com/post/2025-it%E9%90%B5%E4%BA%BA%E8%B3%BD-apisix%E4%BD%BF%E7%94%A8%E7%B6%93%E9%A9%97%E5%88%86%E4%BA%AB13/</guid><description>&lt;blockquote>
&lt;p>本系列文章於2025年，已在&lt;a href="https://ithelp.ithome.com.tw/users/20112470/ironman/8791">iT邦幫忙：【與雲原生精靈共舞：APISIX使用者的兩年旅程】&lt;/a>發布過。&lt;/p>
&lt;/blockquote>
&lt;p>在「健康檢查」一章中，透過&lt;code>/health.json&lt;/code>檢查新竹百貨公司的健康狀態。這些健康檢查端點，也可以提供給Uptime Monitor服務&amp;ndash;像是UptimeRobot進行檢查。&lt;/p>
&lt;p>&lt;img src="https://i.ibb.co/hR5rrQMs/201124706-Or-CBl-Mcg-V.png" alt="圖片">&lt;/p>
&lt;p>&lt;strong>那麼APISIX本身呢？&lt;/strong>&lt;/p>
&lt;h2 id="tldr">TL;DR&lt;/h2>
&lt;p>如果是使用&lt;code>3.13&lt;/code>以後的版本，可以直接使用&lt;a href="https://apisix.apache.org/docs/apisix/status-api/">Status API&lt;/a>。如果是此前版本，可以透過promethues或是node-status端點進行檢查。&lt;/p>
&lt;h2 id="status-api">Status API&lt;/h2>
&lt;p>&lt;a href="https://apisix.apache.org/docs/apisix/status-api/">Status API&lt;/a>是在3.13版本後才出現在文檔之中。&lt;/p>
&lt;p>如果要將「Quick Start」中的案例調整成&lt;code>3.13&lt;/code>版本，可以調整&lt;code>docker-compose.yaml&lt;/code>中的&lt;code>apisix&lt;/code>服務：&lt;/p>
&lt;div class="highlight">&lt;pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4">&lt;code class="language-yaml" data-lang="yaml"> apisix:
container_name: apisix
restart: always
&lt;span style="color:#75715e">#image: &amp;#34;apache/apisix:3.2.2-debian&amp;#34;&lt;/span>
image: &lt;span style="color:#e6db74">&amp;#34;apache/apisix:3.13.0-debian&amp;#34;&lt;/span>
volumes:
- ./apisix_config/config.yaml:/usr/local/apisix/conf/config.yaml:ro
ports:
- &lt;span style="color:#ae81ff">9180&lt;/span>:&lt;span style="color:#ae81ff">9180&lt;/span> &lt;span style="color:#75715e"># admin api&lt;/span>
- &lt;span style="color:#ae81ff">7085&lt;/span>:&lt;span style="color:#ae81ff">7085&lt;/span> &lt;span style="color:#75715e"># Status API&lt;/span>
- &lt;span style="color:#ae81ff">9080&lt;/span>:&lt;span style="color:#ae81ff">9080&lt;/span> &lt;span style="color:#75715e"># HTTP&lt;/span>
- &lt;span style="color:#ae81ff">9091&lt;/span>:&lt;span style="color:#ae81ff">9091&lt;/span> &lt;span style="color:#75715e"># prometheus&lt;/span>
- &lt;span style="color:#ae81ff">9443&lt;/span>:&lt;span style="color:#ae81ff">9443&lt;/span> &lt;span style="color:#75715e"># HTTPS&lt;/span>
- &lt;span style="color:#ae81ff">9090&lt;/span>:&lt;span style="color:#ae81ff">9090&lt;/span> &lt;span style="color:#75715e"># control api&lt;/span>
- &lt;span style="color:#ae81ff">389&lt;/span>:&lt;span style="color:#ae81ff">389&lt;/span> &lt;span style="color:#75715e"># Proxy AD Service&lt;/span>
environment:
TZ: &lt;span style="color:#e6db74">&amp;#34;Asia/Taipei&amp;#34;&lt;/span>
&lt;/code>&lt;/pre>&lt;/div>&lt;p>將使用的&lt;code>image&lt;/code>替換成&lt;code>apache/apisix:3.13.0-debian&lt;/code>，並且轉發&lt;code>7085&lt;/code>端口。然後調整&lt;code>apisix_config/config.yaml&lt;/code>：&lt;/p></description></item></channel></rss>