<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@等线";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:12.0pt;
        font-family:宋体;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:DengXian;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="ZH-CN" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:DengXian">Hi Tobias,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:DengXian"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:DengXian">We are working on it and we have found the cause of the issue.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:DengXian">Likely, we will create an issue on GitHub and share the fixing patch next week.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:DengXian"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:DengXian">Thanks for your report.<br>
<br>
<o:p></o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="color:black">发件人</span></b><b><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">:</span></b><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black"> Tobias
 Genannt <tobias.genannt@kappa-velorum.net><br>
</span><b><span style="color:black">日期</span></b><b><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">:</span></b><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">
</span><span style="color:black">星期三</span><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">, 2022</span><span style="color:black">年</span><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">9</span><span style="color:black">月</span><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">21</span><span style="color:black">日</span><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">
 01:17<br>
</span><b><span style="color:black">收件人</span></b><b><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">:</span></b><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black"> unit@nginx.org <unit@nginx.org><br>
</span><b><span style="color:black">主题</span></b><b><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">:</span></b><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black"> unit statistics<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US" style="font-size:11.0pt">EXTERNAL MAIL: unit-bounces@nginx.org<br>
<br>
Hello,<br>
<br>
I was just testing the new statistics feature, which looks really nice. <br>
I'm using Unit inside a docker container and the configuration API <br>
should only be visible inside the container, but I would like to see the <br>
statistics from the outside. So to solve the problem I added a route <br>
like this:<br>
<br>
{<br>
     "match": {<br>
         "uri": "/status/*"<br>
     },<br>
<br>
     "action": {<br>
         "proxy": "<a href="http://unix:/opt/unit/unit.sock">http://unix:/opt/unit/unit.sock</a>"<br>
     }<br>
}<br>
<br>
This works as expected but now all calls to the /status/ will change the <br>
stats. So it would be nice if the stats could be disabled for a route or <br>
if this is not possible for a listener.<br>
<br>
I also noticed that my connections object looks like this:<br>
connections": {<br>
     "accepted": 8,<br>
     "active": -41,<br>
     "idle": 0,<br>
     "closed": 49<br>
}<br>
<br>
Notice the negative number for "active". For reference the complete <br>
configuration is this:<br>
<a href="https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnetbox-community%2Fnetbox-docker%2Fblob%2Frelease%2Fdocker%2Fnginx-unit.json&amp;data=05%7C01%7Cz.hong%40f5.com%7C7fe304e29c694284951408da9b2c08e4%7Cdd3dfd2f6a3b40d19be0bf8327d81c50%7C0%7C0%7C637992910721327110%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=%2BEAQVO1v1rCLMK5duflAswy0Y8l4wQLMaiWOSY6OIzA%3D&amp;reserved=0">https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnetbox-community%2Fnetbox-docker%2Fblob%2Frelease%2Fdocker%2Fnginx-unit.json&amp;data=05%7C01%7Cz.hong%40f5.com%7C7fe304e29c694284951408da9b2c08e4%7Cdd3dfd2f6a3b40d19be0bf8327d81c50%7C0%7C0%7C637992910721327110%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=%2BEAQVO1v1rCLMK5duflAswy0Y8l4wQLMaiWOSY6OIzA%3D&amp;reserved=0</a><br>
+ the additional route as seen above.<br>
<br>
<br>
Greetings,<br>
Tobias<br>
_______________________________________________<br>
unit mailing list -- unit@nginx.org<br>
To unsubscribe send an email to unit-leave@nginx.org<o:p></o:p></span></p>
</div>
</div>
</body>
</html>