Repository navigation
Expand file tree
/
Copy pathdebug-BxTB-PuU.js
More file actions
12 lines (12 loc) · 5.33 KB
/
Copy pathdebug-BxTB-PuU.js
File metadata and controls
12 lines (12 loc) · 5.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
import{i as e,r as t,s as n,t as r}from"./app-CJcco6Ta.js";var i=JSON.parse(`{"path":"/docs/debug.html","title":"Debug & Monitoring","lang":"en-US","frontmatter":{},"git":{"updatedTime":1794570941000,"contributors":[{"name":"Alexis SOUQUIERE","username":"","email":"alexis.souquiere@michelin.com","commits":1}],"changelog":[{"hash":"4c2cfeeb4ebc80229c0e80cb51cfab622742482a","time":1794570941000,"email":"alexis.souquiere@michelin.com","author":"Alexis SOUQUIERE","message":"fix(topic): show last records for all topics in the topic list (#3411)"}]},"filePathRelative":"docs/debug.md"}`),a={name:`debug.md`};function o(r,i,a,o,s,c){return n(),t(`div`,null,[...i[0]||=[e(`<h1 id="debug-monitoring" tabindex="-1"><a class="header-anchor" href="#debug-monitoring"><span>Debug & Monitoring</span></a></h1><h2 id="monitoring-endpoint" tabindex="-1"><a class="header-anchor" href="#monitoring-endpoint"><span>Monitoring endpoint</span></a></h2><p>Several monitoring endpoint is enabled by default and available on port <code>28081</code> only.</p><p>You can disable it, change the port or restrict access only for authenticated users following micronaut configuration below.</p><ul><li><code>/info</code> <a href="https://docs.micronaut.io/snapshot/guide/index.html#infoEndpoint" target="_blank" rel="noopener noreferrer">Info Endpoint</a> with git status information.</li><li><code>/health</code> <a href="https://docs.micronaut.io/snapshot/guide/index.html#healthEndpoint" target="_blank" rel="noopener noreferrer">Health Endpoint</a></li><li><code>/loggers</code> <a href="https://docs.micronaut.io/snapshot/guide/index.html#loggersEndpoint" target="_blank" rel="noopener noreferrer">Loggers Endpoint</a></li><li><code>/metrics</code> <a href="https://docs.micronaut.io/snapshot/guide/index.html#metricsEndpoint" target="_blank" rel="noopener noreferrer">Metrics Endpoint</a></li><li><code>/prometheus</code> <a href="https://micronaut-projects.github.io/micronaut-micrometer/latest/guide/" target="_blank" rel="noopener noreferrer">Prometheus Endpoint</a></li></ul><h2 id="debugging-akhq-performance-issues" tabindex="-1"><a class="header-anchor" href="#debugging-akhq-performance-issues"><span>Debugging AKHQ performance issues</span></a></h2><p>You can debug all query duration from AKHQ with this commands</p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code class="language-bash"><span class="line"><span class="token function">curl</span> <span class="token parameter variable">-i</span> <span class="token parameter variable">-X</span> POST <span class="token parameter variable">-H</span> <span class="token string">"Content-Type: application/json"</span> <span class="token punctuation">\\</span></span>
<span class="line"> <span class="token parameter variable">-d</span> <span class="token string">'{ "configuredLevel": "TRACE" }'</span> <span class="token punctuation">\\</span></span>
<span class="line"> http://localhost:28081/loggers/org.akhq</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><h2 id="debugging-authentication" tabindex="-1"><a class="header-anchor" href="#debugging-authentication"><span>Debugging authentication</span></a></h2><p>Debugging auth can be done by increasing log level on Micronaut that handle most of the authentication part :</p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code class="language-bash"><span class="line"><span class="token function">curl</span> <span class="token parameter variable">-i</span> <span class="token parameter variable">-X</span> POST <span class="token parameter variable">-H</span> <span class="token string">"Content-Type: application/json"</span> <span class="token punctuation">\\</span></span>
<span class="line"> <span class="token parameter variable">-d</span> <span class="token string">'{ "configuredLevel": "TRACE" }'</span> <span class="token punctuation">\\</span></span>
<span class="line"> http://localhost:28081/loggers/io.micronaut.security</span>
<span class="line"></span>
<span class="line"></span>
<span class="line"><span class="token function">curl</span> <span class="token parameter variable">-i</span> <span class="token parameter variable">-X</span> POST <span class="token parameter variable">-H</span> <span class="token string">"Content-Type: application/json"</span> <span class="token punctuation">\\</span></span>
<span class="line"> <span class="token parameter variable">-d</span> <span class="token string">'{ "configuredLevel": "TRACE" }'</span> <span class="token punctuation">\\</span></span>
<span class="line"> http://localhost:28081/loggers/org.akhq.configs</span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div>`,11)]])}var s=r(a,[[`render`,o]]);export{i as _pageData,s as default};