{
    "componentChunkName": "component---src-templates-issues-tsx",
    "path": "/issues/396",
    "result": {"data":{"issuesJson":{"id":"00cc1fc1-f9f4-55a1-a687-032a1805f705","title":"nginxinc/nginx-prometheus-exporter: 用于 NGINX 和 NGINX Plus 的 NGINX Prometheus Exporter","number":396,"bodyHTML":"<div align=\"center\" dir=\"auto\">\n<p dir=\"auto\"><a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://camo.githubusercontent.com/a15b413168923d02e21292705ceaf86b92675f98e250c5c896a02ba7504a6eae/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f657279616a662f7475406d61696e2f696d672f696d6167655f32303234303432305f3231343430382e676966\"><img src=\"https://camo.githubusercontent.com/a15b413168923d02e21292705ceaf86b92675f98e250c5c896a02ba7504a6eae/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f657279616a662f7475406d61696e2f696d672f696d6167655f32303234303432305f3231343430382e676966\" width=\"100%\" height=\"3\" data-animated-image=\"\" data-canonical-src=\"https://cdn.jsdelivr.net/gh/eryajf/tu@main/img/image_20240420_214408.gif\" style=\"max-width: 100%; height: auto; max-height: 3px;\"></a><br><br></p>\n<markdown-accessiblity-table><table role=\"table\">\n<thead>\n<tr>\n<th align=\"right\">Repos</th>\n<th align=\"left\"><a href=\"https://github.com/nginxinc/nginx-prometheus-exporter\">nginxinc/nginx-prometheus-exporter</a></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td align=\"right\"><strong>Views</strong></td>\n<td align=\"left\"><a href=\"https://github.com/opsre/awesome-ops\"><img src=\"https://camo.githubusercontent.com/3a2bd234f0804a54977f9bc82c23561c70e32203c7c9ea527617a24ac64f9b20/68747470733a2f2f76696577732e77686174696c656172656e65642e746f6461792f76696577732f6769746875622f6e67696e78696e632f6e67696e782d70726f6d6574686575732d6578706f727465722e737667\" alt=\"views\" data-canonical-src=\"https://views.whatilearened.today/views/github/nginxinc/nginx-prometheus-exporter.svg\" style=\"max-width: 100%;\"></a></td>\n</tr>\n<tr>\n<td align=\"right\"><strong>Stars</strong></td>\n<td align=\"left\"><a href=\"https://github.com/opsre/awesome-ops\"><img src=\"https://camo.githubusercontent.com/6c630815e26e4c5d3a7b261ef85f5616fd79b80711b0489c445969d1ebbac638/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6e67696e78696e632f6e67696e782d70726f6d6574686575732d6578706f727465723f636f6c6f723d663266303864266c6f676f3d556e64657274616c65266c6f676f436f6c6f723d656234363330\" alt=\"stars\" data-canonical-src=\"https://img.shields.io/github/stars/nginxinc/nginx-prometheus-exporter?color=f2f08d&amp;logo=Undertale&amp;logoColor=eb4630\" style=\"max-width: 100%;\"></a></td>\n</tr>\n<tr>\n<td align=\"right\"><strong>Forks</strong></td>\n<td align=\"left\"><a href=\"https://github.com/opsre/awesome-ops\"><img src=\"https://camo.githubusercontent.com/f6cd06f33c997ebe784fe6998cc82841fa6c0e50185c9963b4d7a9bf17fc6708/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f6e67696e78696e632f6e67696e782d70726f6d6574686575732d6578706f727465723f636f6c6f723d626138366562266c6f676f3d48616e647368616b65266c6f676f436f6c6f723d656136616136\" alt=\"forks\" data-canonical-src=\"https://img.shields.io/github/forks/nginxinc/nginx-prometheus-exporter?color=ba86eb&amp;logo=Handshake&amp;logoColor=ea6aa6\" style=\"max-width: 100%;\"></a></td>\n</tr>\n<tr>\n<td align=\"right\"><strong>License</strong></td>\n<td align=\"left\"><a href=\"https://github.com/opsre/awesome-ops\"><img src=\"https://camo.githubusercontent.com/84d0a4d06e7c22c222c7683daaaa5d70ca5a99bc91fbdd7709a87af1f1d4e45d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6e67696e78696e632f6e67696e782d70726f6d6574686575732d6578706f727465723f6c6f676f3d64617461253341696d616765253246706e672533426261736536342532436956424f5277304b47676f414141414e53556845556741414144414141414177434159414141425841766d48414141414358424957584d41414173544141414c457745416d70775941414144336b6c45515652346e4f335953557a5555426748384a726f57567255474a66456d3773584e63534446784d544c327069347348456778654e526f77586770455742445552522532424e414e4f4b4f4b36366f6f4b4a4742586545475263574163455646475152484677516d483525324630774861655748493944554455354c356b6e6568644f62377a66652532423139636e434a47495243516945596c514237594a4979474c38616f73756c565a36695246516a69474b6b7564576735614c6c704f70704e586e665071773555304459524a6d56786a4367464633424c755a476d416f5655694b4541726d583744375553677351706f72674761336748664b34483663754262435644334771683141352532424c6745253242467749656e514d306a6f446f66714c6f48564e7742796d384370546e416d327a51713073676478624964515a556c416b7150415a3664676a303541446f59526f6f66792532466f5869726f376b3551586a4c6f70677a4b69514e6c4c4461716f4967754577426a7a7150355066446a45394479495879493633464d547751464d43567271774e61763451666f52673538514625324266724d485172454b3844546f434d714e4179574e4866786d54526f4c4f726d5352566747744466714345715a4f4851727a6f34706243557341333431365169364551394b476a6345465267484f724f4b6e5536574162396247455459656b4b7843766a546167394534706a653534446b3551503862624d4859762532464333756541654a6b50304f4778422532424a70426e4172595238455951516e6f4e31414e4661426e5050356c385372736559514c303641646b30464a5938484f5761424d6c6541486a683068506f73497a6c6f3876304125324633345a694f6548726130714b52504d5653493774762532423932747725324676687855654252713456454c674d376642714b354770526d6f514c584e7075625475367a6f4e52706754386e5051627138347764253246494375767978694b4871694e41664933774d367549684271476b4c696977414f734b44714f68743749747239567938536a52424557667941627225324668523142667056514664484a42253246423268683778376a36517077435665655951326b72554235436c636a3641326d3067576a25324244306d4c34397a573563517943484c4e37726a6c6d6d6174457958582532464372547a412532466f51785a6b576c39474a5443566f25324279546a3837253242346769504b6376307149486f344156344430565a727251493334706e70524d36357875652532467a417265453425324654253246536f676c664542794d7369517441546c4c3352414a355948725378365a44665337307337754d486842705225324659423573305057366f455270316236253246667252684b3353444c35546965364f515548516c5133735644752532427a50636b397657453973747225324236496a533967486d5750616861444a25324277434b364e494242587348423948796b587378774470686c436d416476706c6162554a4e6e5a504239342532464e7436784f6538587a4562503257684d335741673147756236744825324233513150673337365239713475716c6e6f36676448476a444f5139306562303141484d3672596975554a314f713472344656756a35765239427a4d3957674e764f7977446869495951467667626366774166774d764863615067425041253246447948476a50624e394138616d6562636477416444354e6633373574787165774e5552656f797677424958594c645170576c6877465771745061435044334173467541535636717171496c62304a766b564331464c39576b4c55556c55574b337a585a4c46432532423125324642726f46746f364f7358497545594a5034447a7a5732594656316f4a614141414141456c46546b5375516d4343\" alt=\"license\" data-canonical-src=\"https://img.shields.io/github/license/nginxinc/nginx-prometheus-exporter?logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAD3klEQVR4nO3YSUzUUBgH8JroWVrUGJfEm7sXNcSDFxMTL2pi4sHEgxeNRowXgpEWBDURR%2BNANOKOK66ooKJGBXeEGRcWAcEVFGQRHFwQmH5%2F0wHaeWHI9DUDU5L5knehdOb7zfe%2B19cnCJGIRCQiEYlQB7YJIyGL8aosulVZ6iRFQjiGKkudWg5aLlpOppNXnfPqw5U0DYRJmVxjCgFF3BLuZGmAoVUiKEArmX7D7USgsQporgGa3gHfK4H6cuBbCVD3Gqh1A5%2BLgE%2BFwIenQM0joDofqLoHVNwBym8CpTnAm2zQq0sgdxbIdQZUlAkqPAZ6dgj05ADoYRoofy%2FoXiro7k5QXjLopgzKiQNlLDaqoIguEwBjzqP5PfDjE9DyIXyI63FMTwQFMCVrqwNav4QfoRg58QF%2BfrMHQrEK8DToCMqNAyWNHfxmTRoLOrmSRVgGtDfqCEqZOHQrzo4pbCUsA3416Qi6EQ9KGjcEFRgHOrOKnU6WAb9bGETYekKxCvjTag9E4pje54Dk5QP8bbMHYv%2FC3ueAeJkP0OGxB%2BJpBnArYR8EYQQnoN1ANFaBnPP5l8SrseYQL06Adk0FJY8HOWaBMleAHjh0hPosIzlo8v0A%2F34ZiOeHra0qKRPMVSI7tv%2B92tw%2FvhxUeBRq4VELgM7fBqK5GpRmoQLXNpubTu6zoNRpgT8nPQbq84wd%2FICuvyxiKHqiNAfI3wM6uIhBqGkLiiwAOsKDqOht7Itr9Vy8SjRBEWfyAbr%2FhR1BfpVQFdHJB%2FB2hh7x7j6QpwCVeeYQ2krUB5Clcj6A2m0gWj%2BD0mL49zW5cQyCHLN7rjlmmatEyXX%2FCrTzA%2FoQxZkWl9GJTCVo%2ByTj87%2B4giPKcv0qIHo4AV4D0VZrrQI34pnpRM65xue%2FzAreE4%2FT%2FSoglfEByMsiQtATlL3RAJ5YHrSx6ZDfS70s7uMHhBpR%2FYB5s0PW6oERp1b6%2FfrRhK3SDL5Tie6OQUHQlQ3sVDu%2BzPck9vWE9str%2B6IjS9gHmWPahaDJ%2BwCK6NIBBXsHB9HykXsxwDphlCmAdvplabUJNnZPB94%2FNt6xOe8XzEbP2WhM3WAg1Gub6tH%2B3Q1Pg376R9q4uqlno6gdHGjDOQ90eb01AHM6rYiuUJ1Oq4r4FVuj5vR9BzM9WgNvOywDhiIYQFvgbcfwAfwMvHcaPgBPA%2FDyHGjPbN9A8amebcdwAdD5Nf375txqewNUReoyvwBIXYLdQpWlhwFWqtPaCPD3AsFuASV6qqqIlb0JvkVC1FL9WkLUUlUWK3zXZLFC%2B1%2FBroFto6OsXIuEYJP4DzzW2YFV1oJaAAAAAElFTkSuQmCC\" style=\"max-width: 100%;\"></a></td>\n</tr>\n<tr>\n<td align=\"right\"><strong>UpdatedAt</strong></td>\n<td align=\"left\"><a href=\"https://github.com/opsre/awesome-ops\"><img src=\"https://camo.githubusercontent.com/e5e479d439cc4fe026dd5bc1841cfb6e1ad2bf11753facb46d2df0bcd0bc91e7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f6e67696e78696e632f6e67696e782d70726f6d6574686575732d6578706f727465723f646973706c61795f74696d657374616d703d636f6d6d6974746572266c6f676f3d64617461253341696d616765253246706e672533426261736536342532436956424f5277304b47676f414141414e5355684555674141414234414141416543415941414141374d4b3669414141414358424957584d41414173544141414c457745416d7077594141414648556c45515652346e4c5658375539615678776d3236646c582532466468627825324232253246516e626b7655627264554151674a4a496655444e574454546d4f76314651554661504a346b7573725630314a7431734e70637453327533626f745a746d786439744a5346536f714b71494635625944464c436f76436c656673747a4a387758524c445a4c7a6e6b634f343535376e3364332532466e655a3472454f515a74315771462532423858467234253242664f4c4565326a6f59307a776638546f795a50766a45676b4c592532426b306d6d72584f36644b696e787a476b30666a5430782532425279723055716e6359637a4d317263347451253242497270324c4758646f344e4334567657715453373277716c632532427231334f527269364b6458646e624f484c6c776c7a4a70524b6e3657342532424b36706f4f434e6e494166486a253246253242776168495a4234764b6e715a6630714a704e49716c2532467638545530634e6c3572627963337730516e54703379324c54614a374d314e617844723266526e315370504736476961323174664533345463614f617931694d55564f5146624659714957536f31573854694156616e43306576584f4542375770313448466232327a453566714c4f433545524c515769644e614e49347545636339693768634a6c644868324e57725135674464624f6c7061756d49754c62326174415144506e7a3062384e6257636d785656524a33486d7870536377777a4f4a6d4b44524765384c6c435a444c4739673754496e5631516c376462586256316533675430574b697243466f6d6b5079767758466c5a474a4f6a563625324253743634757564445a4f55354555636f782532464d455144567674364d62634e3237593341797a687633737061557242365a3971724a534f3139657a6a387032704c426b4a792532426343484a7857493567573574636652527a31645531394766476b6f7539505a4f34736d52396a4746777065783444793362766e6d4b79706f74625531335669646a71595a68726a343972764d457425324625324659714c7a396430304e6a57253246637a67796f394f35317a7336614e6c6f354644747530445a675146686c47584a30644241446f4e6864367576703657686f617967374e394c564748386d443462253246486e667455516f4e4734764c51306769784d716c5725324234714f6a744e48446733723166365969525347785279375576714c62395534716b716e78504f4e7661356c447048723125324279794b524e4b57425a793565644d554842326d3572792532422532424551772532427a6766347a6f39253246306f634e3357527a4c4277344a2532424a7950574372716d4967475974554f735744346f785a46516f50556a4770564871493425324661666b51504336665a5165654d31253242764c7549516e6a754257514444437363726d485039656f4e5041744271664f6e5875614b25324268364a45624772732532427076764d6d78654962683836336162565065597953456f39464a48704e4d464a59253242503563575a6b6667374f3174537759436553514c54593345385130392532464256504a556c78516a7368543142736343593032723955445542667643484236367063665041336c794165336e6772332532463437584467614a7a736c7937787741364e5a746c555550437541487161536a5549502532427375653842525741432532464e6651374a5a505a35397330476a3756747049537a34685125324243706658474d4b685a63764c70554b7866574d386f68766637702532464f446a4842666356463849736b383267314648796b63564645253242555a414158343761452532464d6c34504f3530506e75683025324678346e6d637957507364774468427836436d6b4c562532466746446a594b784f4a4f4674623077517949684c39527943774b33414f664947703159464542686e4d4a634c525745624b644b516f55366e63545a6b494544696341792532463831645675454d3552775066657934784f7830496b25324649324e6e466b692532425761664f6f464959466367595a43797864376543556a626334416d46363566742532466b4d686b336f25324235686337734d4a79716a4a45477659466151464972375930775077384246415925324236253242766d6b3377367a7a5275444d6d5a5652736668385274413075455453443775434254364459514e36697665553066706b594c6a453671725672744f78654e4b553954484c5a4a396b4255324a427342685635416976422532466f4b61514e4b675043427744596149665a4334616454684f71463457454e56694c4a77566f586f62664c424b56773637414f6154734c6336355461564b32317651344c613939654b6359673576627873624f627a5451394e37554b4467554f3177446a6944494942736868357a746733396e514d4c535a4248344f7a424f55444551586d323036643366634c67737762585141345068634b336e6873775531427a3877765130395248472532466f597933656a6677424e6d746f59714c4130586741414141424a52553545726b4a676767253344253344266c6162656c3d557064617465644174\" alt=\"last-commit\" data-canonical-src=\"https://img.shields.io/github/last-commit/nginxinc/nginx-prometheus-exporter?display_timestamp=committer&amp;logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHUlEQVR4nLVX7U9aVxwm26dlX%2Fdhbx%2B2%2FQnbkvUbrdUAQgJJIfUDNWDTTmOv1FQUFaPJ4kusrV01Jt1sNpctS2u3botZtmxd9tJSFSoqKqIF5bYDFLCovClefstzJ8wXRLDZLznkcO4557n3d3%2FneZ4rEOQZt1WqF%2B8XFr4%2BfOLEe2joY0zwf8ToyZPvjEgkLY%2Bk0mmrXO6dKinxzGk0fjT0x%2BRyr0UqncYczM1rc4tQ%2BIrp2LGXdo4NC4VvWqTS72wqlc%2Br13ORri6KdXdnbOHLlwlzJpRKn6W4%2BK6poOCNnIAfHj%2F%2BwahIZB4vKnqZf0qJpNIql%2Fv8TU0cNl5rbyc3w0QnTp3y2LTaJ7M1NaxDr2fRn1SpPG6Gia21tfE34TcaOay1iMUVOQFbFYqIWSo1W8TiAVanC0evXOEB7Wp14HFb22zE5fqLOC5ERLQWidNaNI4uEcc9i7hcJldHh2NWrQ5gDdbOlpaumIuLb2atAQDPnz0b8NbWcmxVVRJ3HmxpScwwzOJmKDRGe8LlCZDLG9g7TInV1Ql7dbXbV1e3gT0WKirCFomkPyvwXFlZGJOjV6%2BSt64uudDZOU5EUcox%2FMEQDVvt6MbcN27Y3Ayzhv3spaUrB6Z9qrJSO19ezj8p2pLBkJy%2BcCHJxWI5gW5tcfRRz1dU19GfGkou9PZO4smR9jGFwpex4Dy3bvnmKypotbU13VidjqYZhrj49rvMEt%2F%2FYqLz9d00NjW%2Fczgyo9O51zs6aNlo5FDtu0DZgQFhlGXJ0dBADoNhd6uvp6Whoayg7N9LVGH8mD4b%2FHnftUQoNG4vLQ0gixMqlW%2B4qOjtNHDg3r1f6YiRSGxRy7UvqLb9U4qkqnxPONva5lDpHr1%2ByyKRNKWBZy5edMUHB2m5ry%2B%2BEQw%2Bzgf4zo9%2F0ocN3WRzLBw4J%2BJyPWCrqmIgGYtUOsWD4oxZFQoPUjGpVHqI4%2FafkQPC6fZQeeM1%2BvLuIQnjuBWQDDCscrmHP9eoNPAtBqfOnXuaK%2Bh6JEbGrs%2BpvvMmxeIbh863abVPeYySEo9FJHpNMFJY%2BP5cWZkfg7O1tSwYCeSQLTY3E8Q09%2FBVPJUlxQjshT1BscCY02r9UDUBfvCHB66pcfPA3lyAe3ngr3%2F47XDgaJzsly7xwA6NZtlUUPCuAHqaSjUIP%2Bsue8BRWAC%2FNfQ7JZPZ59s0Gj7VtpISz4hQ%2BCpfXGMKhZcvLpUKxfWM8ohvf7p%2FODjHBfcVF8Isk82g1FHykcVFE%2BUZAAX47aE%2FMl4PO50Pnuh0%2Fx4nmcyWPsdwDhBx6CmkLV%2FgFDjYKxOJOFtb0wQyIhL9RyCwK3AOfIGp1YFEBhnMJcLRWEbKdKQoU6ncTZkIEDicAy%2F81dVuEM5RwPfey4xOx0Ik%2FI2NnFki%2BWafOoFIYFcgYZCyxd7eCUjbc4AmF65ft%2FkMhk3o%2B5hc7sMJyqjJEGvYFaQFIr7Y0wPw8BFAY%2B6%2Bvmk3w6zzRuDMmZVRsfh8RtA0uETSD7uCBT6DYQN6iveU0fpkYLjE6qrVrtOxeNKU9THLZJ9kBU2JBsBhV5AivB%2FoKaQNKgPCBwDYaIfZC4adThOqF4WENViLJwVoXobfLBKVw67AOaTsLc65TaVK21vQ4La99eKcYg5vbxsbObzTQ9N7UKDgUO1wDjiDIIBshh5ztg39nQMLSZBH4OzBOUDEQXm206d3fcLgswbXQA4PhcK3nhswU1Bz8wvQ09RHG%2FoYy3ejfwBNmtoYqLA0XgAAAABJRU5ErkJggg%3D%3D&amp;label=UpdatedAt\" style=\"max-width: 100%;\"></a></td>\n</tr>\n<tr>\n<td align=\"right\"><strong>CreatedAt</strong></td>\n<td align=\"left\"><a href=\"https://github.com/opsre/awesome-ops\"><img src=\"https://camo.githubusercontent.com/5cd04c67ece027ace7663836b501e6ffef06bcced265ce87750d829619930805/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f637265617465642d61742f6e67696e78696e632f6e67696e782d70726f6d6574686575732d6578706f727465723f6c6f676f3d64617461253341696d616765253246706e672533426261736536342532436956424f5277304b47676f414141414e5355684555674141414234414141416543415941414141374d4b3669414141414358424957584d41414173544141414c457745416d7077594141414648556c45515652346e4c5658375539615678776d3236646c582532466468627825324232253246516e626b7655627264554151674a4a496655444e574454546d4f76314651554661504a346b7573725630314a7431734e70637453327533626f745a746d786439744a5346536f714b71494635625944464c436f76436c656673747a4a387758524c445a4c7a6e6b634f343535376e3364332532466e655a3472454f515a74315771462532423858467234253242664f4c4565326a6f59307a776638546f795a50766a45676b4c592532426b306d6d72584f36644b696e787a476b30666a5430782532425279723055716e6359637a4d317263347451253242497270324c4758646f344e4334567657715453373277716c632532427231334f527269364b6458646e624f484c6c776c7a4a70524b6e3657342532424b36706f4f434e6e494166486a253246253242776168495a4234764b6e715a6630714a704e49716c2532467638545530634e6c3572627963337730516e54703379324c54614a374d314e617844723266526e315370504736476961323174664533345463614f617931694d55564f5146624659714957536f31573854694156616e43306576584f4542375770313448466232327a453566714c4f433545524c515769644e614e49347545636339693768634a6c644868324e57725135674464624f6c7061756d49754c62326174415144506e7a3062384e6257636d785656524a33486d7870536377777a4f4a6d4b44524765384c6c435a444c4739673754496e5631516c376462586256316533675430574b697243466f6d6b5079767758466c5a474a4f6a563625324253743634757564445a4f55354555636f782532464d455144567674364d62634e3237593341797a687633737061557242365a3971724a534f3139657a6a387032704c426b4a792532426343484a7857493567573574636652527a31645531394766476b6f7539505a4f34736d52396a4746777065783444793362766e6d4b79706f74625531335669646a71595a68726a343972764d457425324625324659714c7a396430304e6a57253246637a67796f394f35317a7336614e6c6f354644747530445a675146686c47584a30644241446f4e6864367576703657686f617967374e394c564748386d443462253246486e667455516f4e4734764c51306769784d716c5725324234714f6a744e48446733723166365969525347785279375576714c62395534716b716e78504f4e7661356c447048723125324279794b524e4b57425a793565644d554842326d3572792532422532424551772532427a6766347a6f39253246306f634e3357527a4c4277344a2532424a7950574372716d4967475974554f735744346f785a46516f50556a4770564871493425324661666b51504336665a5165654d31253242764c7549516e6a754257514444437363726d485039656f4e5041744271664f6e5875614b25324268364a45624772732532427076764d6d78654962683836336162565065597953456f39464a48704e4d464a59253242503563575a6b6667374f3174537759436553514c54593345385130392532464256504a556c78516a7368543142736343593032723955445542667643484236367063665041336c794165336e6772332532463437584467614a7a736c7937787741364e5a746c555550437541487161536a5549502532427375653842525741432532464e6651374a5a505a35397330476a3756747049537a34685125324243706658474d4b685a63764c70554b7866574d386f68766637702532464f446a4842666356463849736b383267314648796b63564645253242555a414158343761452532464d6c34504f3530506e75683025324678346e6d637957507364774468427836436d6b4c562532466746446a594b784f4a4f4674623077517949684c39527943774b33414f664947703159464542686e4d4a634c525745624b644b516f55366e63545a6b494544696341792532463831645675454d3552775066657934784f7830496b25324649324e6e466b692532425761664f6f464959466367595a43797864376543556a626334416d46363566742532466b4d686b336f25324235686337734d4a79716a4a45477659466151464972375930775077384246415925324236253242766d6b3377367a7a5275444d6d5a5652736668385274413075455453443775434254364459514e36697665553066706b594c6a453671725672744f78654e4b553954484c5a4a396b4255324a427342685635416976422532466f4b61514e4b675043427744596149665a4334616454684f71463457454e56694c4a77566f586f62664c424b56773637414f6154734c6336355461564b32317651344c613939654b6359673576627873624f627a5451394e37554b4467554f3177446a6944494942736868357a746733396e514d4c535a4248344f7a424f55444551586d323036643366634c67737762585141345068634b336e6873775531427a3877765130395248472532466f597933656a6677424e6d746f59714c4130586741414141424a52553545726b4a676767253344253344266c6162656c3d437265617465644174\" alt=\"create-at\" data-canonical-src=\"https://img.shields.io/github/created-at/nginxinc/nginx-prometheus-exporter?logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHUlEQVR4nLVX7U9aVxwm26dlX%2Fdhbx%2B2%2FQnbkvUbrdUAQgJJIfUDNWDTTmOv1FQUFaPJ4kusrV01Jt1sNpctS2u3botZtmxd9tJSFSoqKqIF5bYDFLCovClefstzJ8wXRLDZLznkcO4557n3d3%2FneZ4rEOQZt1WqF%2B8XFr4%2BfOLEe2joY0zwf8ToyZPvjEgkLY%2Bk0mmrXO6dKinxzGk0fjT0x%2BRyr0UqncYczM1rc4tQ%2BIrp2LGXdo4NC4VvWqTS72wqlc%2Br13ORri6KdXdnbOHLlwlzJpRKn6W4%2BK6poOCNnIAfHj%2F%2BwahIZB4vKnqZf0qJpNIql%2Fv8TU0cNl5rbyc3w0QnTp3y2LTaJ7M1NaxDr2fRn1SpPG6Gia21tfE34TcaOay1iMUVOQFbFYqIWSo1W8TiAVanC0evXOEB7Wp14HFb22zE5fqLOC5ERLQWidNaNI4uEcc9i7hcJldHh2NWrQ5gDdbOlpaumIuLb2atAQDPnz0b8NbWcmxVVRJ3HmxpScwwzOJmKDRGe8LlCZDLG9g7TInV1Ql7dbXbV1e3gT0WKirCFomkPyvwXFlZGJOjV6%2BSt64uudDZOU5EUcox%2FMEQDVvt6MbcN27Y3Ayzhv3spaUrB6Z9qrJSO19ezj8p2pLBkJy%2BcCHJxWI5gW5tcfRRz1dU19GfGkou9PZO4smR9jGFwpex4Dy3bvnmKypotbU13VidjqYZhrj49rvMEt%2F%2FYqLz9d00NjW%2Fczgyo9O51zs6aNlo5FDtu0DZgQFhlGXJ0dBADoNhd6uvp6Whoayg7N9LVGH8mD4b%2FHnftUQoNG4vLQ0gixMqlW%2B4qOjtNHDg3r1f6YiRSGxRy7UvqLb9U4qkqnxPONva5lDpHr1%2ByyKRNKWBZy5edMUHB2m5ry%2B%2BEQw%2Bzgf4zo9%2F0ocN3WRzLBw4J%2BJyPWCrqmIgGYtUOsWD4oxZFQoPUjGpVHqI4%2FafkQPC6fZQeeM1%2BvLuIQnjuBWQDDCscrmHP9eoNPAtBqfOnXuaK%2Bh6JEbGrs%2BpvvMmxeIbh863abVPeYySEo9FJHpNMFJY%2BP5cWZkfg7O1tSwYCeSQLTY3E8Q09%2FBVPJUlxQjshT1BscCY02r9UDUBfvCHB66pcfPA3lyAe3ngr3%2F47XDgaJzsly7xwA6NZtlUUPCuAHqaSjUIP%2Bsue8BRWAC%2FNfQ7JZPZ59s0Gj7VtpISz4hQ%2BCpfXGMKhZcvLpUKxfWM8ohvf7p%2FODjHBfcVF8Isk82g1FHykcVFE%2BUZAAX47aE%2FMl4PO50Pnuh0%2Fx4nmcyWPsdwDhBx6CmkLV%2FgFDjYKxOJOFtb0wQyIhL9RyCwK3AOfIGp1YFEBhnMJcLRWEbKdKQoU6ncTZkIEDicAy%2F81dVuEM5RwPfey4xOx0Ik%2FI2NnFki%2BWafOoFIYFcgYZCyxd7eCUjbc4AmF65ft%2FkMhk3o%2B5hc7sMJyqjJEGvYFaQFIr7Y0wPw8BFAY%2B6%2Bvmk3w6zzRuDMmZVRsfh8RtA0uETSD7uCBT6DYQN6iveU0fpkYLjE6qrVrtOxeNKU9THLZJ9kBU2JBsBhV5AivB%2FoKaQNKgPCBwDYaIfZC4adThOqF4WENViLJwVoXobfLBKVw67AOaTsLc65TaVK21vQ4La99eKcYg5vbxsbObzTQ9N7UKDgUO1wDjiDIIBshh5ztg39nQMLSZBH4OzBOUDEQXm206d3fcLgswbXQA4PhcK3nhswU1Bz8wvQ09RHG%2FoYy3ejfwBNmtoYqLA0XgAAAABJRU5ErkJggg%3D%3D&amp;label=CreatedAt\" style=\"max-width: 100%;\"></a></td>\n</tr>\n</tbody>\n</table></markdown-accessiblity-table>\n<a href=\"https://github.com/opsre/awesome-ops\">\n</a><p dir=\"auto\"><a href=\"https://github.com/opsre/awesome-ops\"><img src=\"https://camo.githubusercontent.com/b964a36ea4078c39f603d46a29436371c7541a2f26e0228d7b21b9d9805b43d3/68747470733a2f2f736f6369616c6966792e6769742e63692f6f707372652f617765736f6d652d6f70732f696d6167653f6465736372697074696f6e3d3126666f6e743d42697474657226666f726b733d31266973737565733d31266c616e67756167653d31266c6f676f3d6874747073253341253246253246617661746172732e67697468756275736572636f6e74656e742e636f6d25324675253246313838353638303230266e616d653d31266f776e65723d31267061747465726e3d436972637569742b426f6172642670756c6c733d31267374617267617a6572733d31267468656d653d4c69676874\" alt=\"\" data-canonical-src=\"https://socialify.git.ci/opsre/awesome-ops/image?description=1&amp;font=Bitter&amp;forks=1&amp;issues=1&amp;language=1&amp;logo=https%3A%2F%2Favatars.githubusercontent.com%2Fu%2F188568020&amp;name=1&amp;owner=1&amp;pattern=Circuit+Board&amp;pulls=1&amp;stargazers=1&amp;theme=Light\" style=\"max-width: 100%;\"></a></p>\n<a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://camo.githubusercontent.com/a15b413168923d02e21292705ceaf86b92675f98e250c5c896a02ba7504a6eae/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f657279616a662f7475406d61696e2f696d672f696d6167655f32303234303432305f3231343430382e676966\"><img src=\"https://camo.githubusercontent.com/a15b413168923d02e21292705ceaf86b92675f98e250c5c896a02ba7504a6eae/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f657279616a662f7475406d61696e2f696d672f696d6167655f32303234303432305f3231343430382e676966\" width=\"100%\" height=\"3\" data-animated-image=\"\" data-canonical-src=\"https://cdn.jsdelivr.net/gh/eryajf/tu@main/img/image_20240420_214408.gif\" style=\"max-width: 100%; height: auto; max-height: 3px;\"></a>\n</div>\n\n<p dir=\"auto\"><a href=\"https://scorecard.dev/viewer/?uri=github.com/nginx/nginx-prometheus-exporter\" rel=\"nofollow\"><img src=\"https://camo.githubusercontent.com/040f1e2800facf05675666ab1ee4c5d1cf40f2432cc3e14853194410152d5627/68747470733a2f2f6170692e736563757269747973636f726563617264732e6465762f70726f6a656374732f6769746875622e636f6d2f6e67696e782f6e67696e782d70726f6d6574686575732d6578706f727465722f6261646765\" alt=\"OpenSSFScorecard\" data-canonical-src=\"https://api.securityscorecards.dev/projects/github.com/nginx/nginx-prometheus-exporter/badge\" style=\"max-width: 100%;\"></a><br>\n<a href=\"https://github.com/nginx/nginx-prometheus-exporter/actions/workflows/ci.yml\"><img src=\"https://github.com/nginx/nginx-prometheus-exporter/actions/workflows/ci.yml/badge.svg\" alt=\"CI\" style=\"max-width: 100%;\"></a><br>\n<a href=\"https://app.fossa.com/projects/custom%2B5618%2Fgithub.com%2Fnginx%2Fnginx-prometheus-exporter?ref=badge_shield\" rel=\"nofollow\"><img src=\"https://camo.githubusercontent.com/31e145b54e20ed1c7b8c9ebd44f21c2d31d835477dbe370644d3b0e6294ea311/68747470733a2f2f6170702e666f7373612e636f6d2f6170692f70726f6a656374732f637573746f6d253242353631382532466769746875622e636f6d2532466e67696e782532466e67696e782d70726f6d6574686575732d6578706f727465722e7376673f747970653d736869656c64\" alt=\"FOSSA Status\" data-canonical-src=\"https://app.fossa.com/api/projects/custom%2B5618%2Fgithub.com%2Fnginx%2Fnginx-prometheus-exporter.svg?type=shield\" style=\"max-width: 100%;\"></a><br>\n<a href=\"https://goreportcard.com/report/github.com/nginx/nginx-prometheus-exporter\" rel=\"nofollow\"><img src=\"https://camo.githubusercontent.com/3a04b6d8f36901b25d13f712641fc3fb45b647331a689b34909d0c61b446ffb6/68747470733a2f2f676f7265706f7274636172642e636f6d2f62616467652f6769746875622e636f6d2f6e67696e782f6e67696e782d70726f6d6574686575732d6578706f72746572\" alt=\"Go Report Card\" data-canonical-src=\"https://goreportcard.com/badge/github.com/nginx/nginx-prometheus-exporter\" style=\"max-width: 100%;\"></a><br>\n<a href=\"https://codecov.io/gh/nginx/nginx-prometheus-exporter\" rel=\"nofollow\"><img src=\"https://camo.githubusercontent.com/2b3813884a2389dda732e5bc90892bcecfd761b288cd2be8027175b067ff2251/68747470733a2f2f636f6465636f762e696f2f67682f6e67696e782f6e67696e782d70726f6d6574686575732d6578706f727465722f67726170682f62616467652e7376673f746f6b656e3d4a364f7a31304c577933\" alt=\"codecov\" data-canonical-src=\"https://codecov.io/gh/nginx/nginx-prometheus-exporter/graph/badge.svg?token=J6Oz10LWy3\" style=\"max-width: 100%;\"></a><br>\n<a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://camo.githubusercontent.com/35e659a8358cf5d82cf3768f979a7b05ba981d8d62d8d8f7548911c8bf13caee/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f6e67696e782f6e67696e782d70726f6d6574686575732d6578706f727465722f746f74616c3f6c6f676f3d676974687562\"><img src=\"https://camo.githubusercontent.com/35e659a8358cf5d82cf3768f979a7b05ba981d8d62d8d8f7548911c8bf13caee/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f6e67696e782f6e67696e782d70726f6d6574686575732d6578706f727465722f746f74616c3f6c6f676f3d676974687562\" alt=\"GitHub all releases\" data-canonical-src=\"https://img.shields.io/github/downloads/nginx/nginx-prometheus-exporter/total?logo=github\" style=\"max-width: 100%;\"></a><br>\n<a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://camo.githubusercontent.com/7b1f72ace5b36f72f6d6cedf01f08db250fd68309269a80e6cbffa15f424a1f7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f6e67696e782f6e67696e782d70726f6d6574686575732d6578706f727465722f6c61746573742f746f74616c3f736f72743d73656d766572266c6f676f3d676974687562\"><img src=\"https://camo.githubusercontent.com/7b1f72ace5b36f72f6d6cedf01f08db250fd68309269a80e6cbffa15f424a1f7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f6e67696e782f6e67696e782d70726f6d6574686575732d6578706f727465722f6c61746573742f746f74616c3f736f72743d73656d766572266c6f676f3d676974687562\" alt=\"GitHub release (latest by SemVer)\" data-canonical-src=\"https://img.shields.io/github/downloads/nginx/nginx-prometheus-exporter/latest/total?sort=semver&amp;logo=github\" style=\"max-width: 100%;\"></a><br>\n<a href=\"https://github.com/nginx/nginx-prometheus-exporter/releases/latest\"><img src=\"https://camo.githubusercontent.com/d2689eb314d43edf1db38ce5371eed72c7760e6a4974234a07e4d7cd3054e5e6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6e67696e782f6e67696e782d70726f6d6574686575732d6578706f727465723f6c6f676f3d67697468756226736f72743d73656d766572\" alt=\"GitHub release (latest SemVer)\" data-canonical-src=\"https://img.shields.io/github/v/release/nginx/nginx-prometheus-exporter?logo=github&amp;sort=semver\" style=\"max-width: 100%;\"></a><br>\n<a href=\"https://snapcraft.io/nginx-prometheus-exporter\" rel=\"nofollow\"><img src=\"https://camo.githubusercontent.com/e6e35e8604895f8f37bc205deff550ae1654480e92fee1c7c4c3b9ce89e7ce18/68747470733a2f2f736e617063726166742e696f2f6e67696e782d70726f6d6574686575732d6578706f727465722f62616467652e737667\" alt=\"nginx-prometheus-exporter\" data-canonical-src=\"https://snapcraft.io/nginx-prometheus-exporter/badge.svg\" style=\"max-width: 100%;\"></a><br>\n<a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://camo.githubusercontent.com/3df7e7fe5bf8b8be1b19bbbccfec7f30b00e9aa541c69a78979fd669c497cab9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f676f2d6d6f642f676f2d76657273696f6e2f6e67696e782f6e67696e782d70726f6d6574686575732d6578706f727465723f6c6f676f3d676f\"><img src=\"https://camo.githubusercontent.com/3df7e7fe5bf8b8be1b19bbbccfec7f30b00e9aa541c69a78979fd669c497cab9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f676f2d6d6f642f676f2d76657273696f6e2f6e67696e782f6e67696e782d70726f6d6574686575732d6578706f727465723f6c6f676f3d676f\" alt=\"GitHub go.mod Go version\" data-canonical-src=\"https://img.shields.io/github/go-mod/go-version/nginx/nginx-prometheus-exporter?logo=go\" style=\"max-width: 100%;\"></a><br>\n<a href=\"https://hub.docker.com/r/nginx/nginx-prometheus-exporter\" rel=\"nofollow\"><img src=\"https://camo.githubusercontent.com/9b09b6b30db5a332e8d78139865c6f454c6bb3c9989e6e67cce7ada437643838/68747470733a2f2f696d672e736869656c64732e696f2f646f636b65722f70756c6c732f6e67696e782f6e67696e782d70726f6d6574686575732d6578706f727465723f6c6f676f3d646f636b6572266c6f676f436f6c6f723d7768697465\" alt=\"Docker Pulls\" data-canonical-src=\"https://img.shields.io/docker/pulls/nginx/nginx-prometheus-exporter?logo=docker&amp;logoColor=white\" style=\"max-width: 100%;\"></a><br>\n<a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://camo.githubusercontent.com/5dbc640091d0ac95f8c3f9f57b39e87f6a434b504a0981f838679968d4465ffe/68747470733a2f2f696d672e736869656c64732e696f2f646f636b65722f696d6167652d73697a652f6e67696e782f6e67696e782d70726f6d6574686575732d6578706f727465723f6c6f676f3d646f636b6572266c6f676f436f6c6f723d776869746526736f72743d73656d766572\"><img src=\"https://camo.githubusercontent.com/5dbc640091d0ac95f8c3f9f57b39e87f6a434b504a0981f838679968d4465ffe/68747470733a2f2f696d672e736869656c64732e696f2f646f636b65722f696d6167652d73697a652f6e67696e782f6e67696e782d70726f6d6574686575732d6578706f727465723f6c6f676f3d646f636b6572266c6f676f436f6c6f723d776869746526736f72743d73656d766572\" alt=\"Docker Image Size (latest semver)\" data-canonical-src=\"https://img.shields.io/docker/image-size/nginx/nginx-prometheus-exporter?logo=docker&amp;logoColor=white&amp;sort=semver\" style=\"max-width: 100%;\"></a><br>\n<a href=\"https://www.repostatus.org/#active\" rel=\"nofollow\"><img src=\"https://camo.githubusercontent.com/7e20e1589fb5e2aa55bb1de94227dc006b7639c2d2e1020eb08025ffae9f61df/68747470733a2f2f7777772e7265706f7374617475732e6f72672f6261646765732f6c61746573742f6163746976652e737667\" alt=\"Project Status: Active – The project has reached a stable, usable state and is being actively developed.\" data-canonical-src=\"https://www.repostatus.org/badges/latest/active.svg\" style=\"max-width: 100%;\"></a></p>\n<h1 dir=\"auto\">NGINX Prometheus Exporter</h1>\n<p dir=\"auto\">NGINX Prometheus exporter makes it possible to monitor NGINX or NGINX Plus using Prometheus.</p>\n\n\n<h2 dir=\"auto\">Table of Contents</h2>\n<ul dir=\"auto\">\n<li><a href=\"#overview\">Overview</a></li>\n<li><a href=\"#getting-started\">Getting Started</a>\n<ul dir=\"auto\">\n<li><a href=\"#a-note-about-nginx-ingress-controller\">A Note about NGINX Ingress Controller</a></li>\n<li><a href=\"#prerequisites\">Prerequisites</a></li>\n<li><a href=\"#running-the-exporter-in-a-docker-container\">Running the Exporter in a Docker Container</a></li>\n<li><a href=\"#running-the-exporter-binary\">Running the Exporter Binary</a></li>\n</ul>\n</li>\n<li><a href=\"#usage\">Usage</a>\n<ul dir=\"auto\">\n<li><a href=\"#command-line-arguments\">Command-line Arguments</a></li>\n</ul>\n</li>\n<li><a href=\"#exported-metrics\">Exported Metrics</a>\n<ul dir=\"auto\">\n<li><a href=\"#common-metrics\">Common metrics</a></li>\n<li><a href=\"#metrics-for-nginx-oss\">Metrics for NGINX OSS</a>\n<ul dir=\"auto\">\n<li><a href=\"#stub-status-metrics\">Stub status metrics</a></li>\n</ul>\n</li>\n<li><a href=\"#metrics-for-nginx-plus\">Metrics for NGINX Plus</a>\n<ul dir=\"auto\">\n<li><a href=\"#connections\">Connections</a></li>\n<li><a href=\"#http\">HTTP</a></li>\n<li><a href=\"#ssl\">SSL</a></li>\n<li><a href=\"#http-server-zones\">HTTP Server Zones</a></li>\n<li><a href=\"#stream-server-zones\">Stream Server Zones</a></li>\n<li><a href=\"#http-upstreams\">HTTP Upstreams</a></li>\n<li><a href=\"#stream-upstreams\">Stream Upstreams</a></li>\n<li><a href=\"#stream-zone-sync\">Stream Zone Sync</a></li>\n<li><a href=\"#location-zones\">Location Zones</a></li>\n<li><a href=\"#resolver\">Resolver</a></li>\n<li><a href=\"#http-requests-rate-limiting\">HTTP Requests Rate Limiting</a></li>\n<li><a href=\"#http-connections-limiting\">HTTP Connections Limiting</a></li>\n<li><a href=\"#stream-connections-limiting\">Stream Connections Limiting</a></li>\n<li><a href=\"#cache\">Cache</a></li>\n<li><a href=\"#worker\">Worker</a></li>\n</ul>\n</li>\n</ul>\n</li>\n<li><a href=\"#troubleshooting\">Troubleshooting</a></li>\n<li><a href=\"#releases\">Releases</a>\n<ul dir=\"auto\">\n<li><a href=\"#docker-images\">Docker images</a></li>\n<li><a href=\"#binaries\">Binaries</a></li>\n<li><a href=\"#homebrew\">Homebrew</a></li>\n<li><a href=\"#snap\">Snap</a></li>\n<li><a href=\"#scoop\">Scoop</a></li>\n<li><a href=\"#nix\">Nix</a></li>\n</ul>\n</li>\n<li><a href=\"#building-the-exporter\">Building the Exporter</a>\n<ul dir=\"auto\">\n<li><a href=\"#building-the-docker-image\">Building the Docker Image</a></li>\n<li><a href=\"#building-the-binary\">Building the Binary</a></li>\n</ul>\n</li>\n<li><a href=\"#grafana-dashboard\">Grafana Dashboard</a></li>\n<li><a href=\"#sbom-software-bill-of-materials\">SBOM (Software Bill of Materials)</a>\n<ul dir=\"auto\">\n<li><a href=\"#binaries-1\">Binaries</a></li>\n<li><a href=\"#docker-image\">Docker Image</a></li>\n</ul>\n</li>\n<li><a href=\"#provenance\">Provenance</a></li>\n<li><a href=\"#contacts\">Contacts</a></li>\n<li><a href=\"#contributing\">Contributing</a></li>\n<li><a href=\"#support\">Support</a></li>\n<li><a href=\"#license\">License</a></li>\n</ul>\n\n<h2 dir=\"auto\">Overview</h2>\n<p dir=\"auto\"><a href=\"https://nginx.org\" rel=\"nofollow\">NGINX</a> exposes a handful of metrics via the <a href=\"https://nginx.org/en/docs/http/ngx_http_stub_status_module.html#stub_status\" rel=\"nofollow\">stub_status<br>\npage</a>. <a href=\"https://www.nginx.com/products/nginx/\" rel=\"nofollow\">NGINX<br>\nPlus</a> provides a richer set of metrics via the<br>\n<a href=\"https://nginx.org/en/docs/http/ngx_http_api_module.html\" rel=\"nofollow\">API</a> and the <a href=\"https://docs.nginx.com/nginx/admin-guide/monitoring/live-activity-monitoring/\" rel=\"nofollow\">monitoring<br>\ndashboard</a>. NGINX Prometheus exporter<br>\nfetches the metrics from a single NGINX or NGINX Plus, converts the metrics into appropriate Prometheus metrics types<br>\nand finally exposes them via an HTTP server to be collected by <a href=\"https://prometheus.io/\" rel=\"nofollow\">Prometheus</a>.</p>\n<h2 dir=\"auto\">Getting Started</h2>\n<p dir=\"auto\">In this section, we show how to quickly run NGINX Prometheus Exporter for NGINX or NGINX Plus.</p>\n<h3 dir=\"auto\">A Note about NGINX Ingress Controller</h3>\n<p dir=\"auto\">If you’d like to use the NGINX Prometheus Exporter with <a href=\"https://github.com/nginx/kubernetes-ingress/\">NGINX Ingress<br>\nController</a> for Kubernetes, see <a href=\"https://docs.nginx.com/nginx-ingress-controller/logging-and-monitoring/prometheus/\" rel=\"nofollow\">this<br>\ndoc</a> for the installation<br>\ninstructions.</p>\n<h3 dir=\"auto\">Prerequisites</h3>\n<p dir=\"auto\">We assume that you have already installed Prometheus and NGINX or NGINX Plus. Additionally, you need to:</p>\n<ul dir=\"auto\">\n<li>Expose the built-in metrics in NGINX/NGINX Plus:\n<ul dir=\"auto\">\n<li>For NGINX, expose the <a href=\"https://nginx.org/en/docs/http/ngx_http_stub_status_module.html#stub_status\" rel=\"nofollow\">stub_status<br>\npage</a> at <code class=\"notranslate\">/stub_status</code> on port <code class=\"notranslate\">8080</code>.</li>\n<li>For NGINX Plus, expose the <a href=\"https://nginx.org/en/docs/http/ngx_http_api_module.html#api\" rel=\"nofollow\">API</a> at <code class=\"notranslate\">/api</code> on port<br>\n<code class=\"notranslate\">8080</code>.</li>\n</ul>\n</li>\n<li>Configure Prometheus to scrape metrics from the server with the exporter. Note that the default scrape port of the<br>\nexporter is <code class=\"notranslate\">9113</code> and the default metrics path -- <code class=\"notranslate\">/metrics</code>.</li>\n</ul>\n<h3 dir=\"auto\">Running the Exporter in a Docker Container</h3>\n<p dir=\"auto\">To start the exporter we use the <a href=\"https://docs.docker.com/engine/reference/run/\" rel=\"nofollow\">docker run</a> command.</p>\n<ul dir=\"auto\">\n<li>\n<p dir=\"auto\">To export NGINX metrics, run:</p>\n<div class=\"highlight highlight-text-shell-session notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"docker run -p 9113:9113 nginx/nginx-prometheus-exporter:1.4.2 --nginx.scrape-uri=http://&lt;nginx&gt;:8080/stub_status\"><pre class=\"notranslate\"><span class=\"pl-c1\">docker run -p 9113:9113 nginx/nginx-prometheus-exporter:1.4.2 --nginx.scrape-uri=http://&lt;nginx&gt;:8080/stub_status</span></pre></div>\n<p dir=\"auto\">where <code class=\"notranslate\">&lt;nginx&gt;</code> is the IP address/DNS name, through which NGINX is available.</p>\n</li>\n<li>\n<p dir=\"auto\">To export NGINX Plus metrics, run:</p>\n<div class=\"highlight highlight-text-shell-session notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"docker run -p 9113:9113 nginx/nginx-prometheus-exporter:1.4.2 --nginx.plus --nginx.scrape-uri=http://&lt;nginx-plus&gt;:8080/api\"><pre class=\"notranslate\"><span class=\"pl-c1\">docker run -p 9113:9113 nginx/nginx-prometheus-exporter:1.4.2 --nginx.plus --nginx.scrape-uri=http://&lt;nginx-plus&gt;:8080/api</span></pre></div>\n<p dir=\"auto\">where <code class=\"notranslate\">&lt;nginx-plus&gt;</code> is the IP address/DNS name, through which NGINX Plus is available.</p>\n</li>\n</ul>\n<h3 dir=\"auto\">Running the Exporter Binary</h3>\n<ul dir=\"auto\">\n<li>\n<p dir=\"auto\">To export NGINX metrics, run:</p>\n<div class=\"highlight highlight-text-shell-session notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"nginx-prometheus-exporter --nginx.scrape-uri=http://&lt;nginx&gt;:8080/stub_status\"><pre class=\"notranslate\"><span class=\"pl-c1\">nginx-prometheus-exporter --nginx.scrape-uri=http://&lt;nginx&gt;:8080/stub_status</span></pre></div>\n<p dir=\"auto\">where <code class=\"notranslate\">&lt;nginx&gt;</code> is the IP address/DNS name, through which NGINX is available.</p>\n</li>\n<li>\n<p dir=\"auto\">To export NGINX Plus metrics:</p>\n<div class=\"highlight highlight-text-shell-session notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"nginx-prometheus-exporter --nginx.plus --nginx.scrape-uri=http://&lt;nginx-plus&gt;:8080/api\"><pre class=\"notranslate\"><span class=\"pl-c1\">nginx-prometheus-exporter --nginx.plus --nginx.scrape-uri=http://&lt;nginx-plus&gt;:8080/api</span></pre></div>\n<p dir=\"auto\">where <code class=\"notranslate\">&lt;nginx-plus&gt;</code> is the IP address/DNS name, through which NGINX Plus is available.</p>\n</li>\n<li>\n<p dir=\"auto\">To scrape NGINX metrics with unix domain sockets, run:</p>\n<div class=\"highlight highlight-text-shell-session notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"nginx-prometheus-exporter --nginx.scrape-uri=unix:&lt;nginx&gt;:/stub_status\"><pre class=\"notranslate\"><span class=\"pl-c1\">nginx-prometheus-exporter --nginx.scrape-uri=unix:&lt;nginx&gt;:/stub_status</span></pre></div>\n<p dir=\"auto\">where <code class=\"notranslate\">&lt;nginx&gt;</code> is the path to unix domain socket, through which NGINX stub status is available.</p>\n</li>\n</ul>\n<p dir=\"auto\"><strong>Note</strong>. The <code class=\"notranslate\">nginx-prometheus-exporter</code> is not a daemon. To run the exporter as a system service (daemon), you can<br>\nfollow the example in <a href=\"./examples/systemd/README.md\">examples/systemd</a>. Alternatively, you can run the exporter<br>\nin a Docker container.</p>\n<h2 dir=\"auto\">Usage</h2>\n<h3 dir=\"auto\">Command-line Arguments</h3>\n<div class=\"highlight highlight-text-shell-session notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"usage: nginx-prometheus-exporter [&lt;flags&gt;]\n\n\nFlags:\n  -h, --[no-]help                Show context-sensitive help (also try --help-long and --help-man).\n      --[no-]web.systemd-socket  Use systemd socket activation listeners instead\n                                 of port listeners (Linux only). ($SYSTEMD_SOCKET)\n      --web.listen-address=:9113 ...\n                                 Addresses on which to expose metrics and web interface. Repeatable for multiple addresses. ($LISTEN_ADDRESS)\n      --web.config.file=&quot;&quot;       Path to configuration file that can enable TLS or authentication. See: https://github.com/prometheus/exporter-toolkit/blob/master/docs/web-configuration.md ($CONFIG_FILE)\n      --web.telemetry-path=&quot;/metrics&quot;\n                                 Path under which to expose metrics. ($TELEMETRY_PATH)\n      --[no-]nginx.plus          Start the exporter for NGINX Plus. By default, the exporter is started for NGINX. ($NGINX_PLUS)\n      --nginx.scrape-uri=http://127.0.0.1:8080/stub_status ...\n                                 A URI or unix domain socket path for scraping NGINX or NGINX Plus metrics. For NGINX, the stub_status page must be available through the URI. For NGINX Plus -- the API. Repeatable for multiple URIs. ($SCRAPE_URI)\n      --[no-]nginx.ssl-verify    Perform SSL certificate verification. ($SSL_VERIFY)\n      --nginx.ssl-ca-cert=&quot;&quot;     Path to the PEM encoded CA certificate file used to validate the servers SSL certificate. ($SSL_CA_CERT)\n      --nginx.ssl-client-cert=&quot;&quot;\n                                 Path to the PEM encoded client certificate file to use when connecting to the server. ($SSL_CLIENT_CERT)\n      --nginx.ssl-client-key=&quot;&quot;  Path to the PEM encoded client certificate key file to use when connecting to the server. ($SSL_CLIENT_KEY)\n      --nginx.timeout=5s         A timeout for scraping metrics from NGINX or NGINX Plus. ($TIMEOUT)\n      --prometheus.const-label=PROMETHEUS.CONST-LABEL ...\n                                 Label that will be used in every metric. Format is label=value. It can be repeated multiple times. ($CONST_LABELS)\n      --log.level=info           Only log messages with the given severity or above. One of: [debug, info, warn, error]\n      --log.format=logfmt        Output format of log messages. One of: [logfmt, json]\n      --[no-]version             Show application version.\"><pre class=\"notranslate\"><span class=\"pl-c1\">usage: nginx-prometheus-exporter [&lt;flags&gt;]</span>\n\n\n<span class=\"pl-c1\">Flags:</span>\n<span class=\"pl-c1\">  -h, --[no-]help                Show context-sensitive help (also try --help-long and --help-man).</span>\n<span class=\"pl-c1\">      --[no-]web.systemd-socket  Use systemd socket activation listeners instead</span>\n<span class=\"pl-c1\">                                 of port listeners (Linux only). ($SYSTEMD_SOCKET)</span>\n<span class=\"pl-c1\">      --web.listen-address=:9113 ...</span>\n<span class=\"pl-c1\">                                 Addresses on which to expose metrics and web interface. Repeatable for multiple addresses. ($LISTEN_ADDRESS)</span>\n<span class=\"pl-c1\">      --web.config.file=\"\"       Path to configuration file that can enable TLS or authentication. See: https://github.com/prometheus/exporter-toolkit/blob/master/docs/web-configuration.md ($CONFIG_FILE)</span>\n<span class=\"pl-c1\">      --web.telemetry-path=\"/metrics\"</span>\n<span class=\"pl-c1\">                                 Path under which to expose metrics. ($TELEMETRY_PATH)</span>\n<span class=\"pl-c1\">      --[no-]nginx.plus          Start the exporter for NGINX Plus. By default, the exporter is started for NGINX. ($NGINX_PLUS)</span>\n<span class=\"pl-c1\">      --nginx.scrape-uri=http://127.0.0.1:8080/stub_status ...</span>\n<span class=\"pl-c1\">                                 A URI or unix domain socket path for scraping NGINX or NGINX Plus metrics. For NGINX, the stub_status page must be available through the URI. For NGINX Plus -- the API. Repeatable for multiple URIs. ($SCRAPE_URI)</span>\n<span class=\"pl-c1\">      --[no-]nginx.ssl-verify    Perform SSL certificate verification. ($SSL_VERIFY)</span>\n<span class=\"pl-c1\">      --nginx.ssl-ca-cert=\"\"     Path to the PEM encoded CA certificate file used to validate the servers SSL certificate. ($SSL_CA_CERT)</span>\n<span class=\"pl-c1\">      --nginx.ssl-client-cert=\"\"</span>\n<span class=\"pl-c1\">                                 Path to the PEM encoded client certificate file to use when connecting to the server. ($SSL_CLIENT_CERT)</span>\n<span class=\"pl-c1\">      --nginx.ssl-client-key=\"\"  Path to the PEM encoded client certificate key file to use when connecting to the server. ($SSL_CLIENT_KEY)</span>\n<span class=\"pl-c1\">      --nginx.timeout=5s         A timeout for scraping metrics from NGINX or NGINX Plus. ($TIMEOUT)</span>\n<span class=\"pl-c1\">      --prometheus.const-label=PROMETHEUS.CONST-LABEL ...</span>\n<span class=\"pl-c1\">                                 Label that will be used in every metric. Format is label=value. It can be repeated multiple times. ($CONST_LABELS)</span>\n<span class=\"pl-c1\">      --log.level=info           Only log messages with the given severity or above. One of: [debug, info, warn, error]</span>\n<span class=\"pl-c1\">      --log.format=logfmt        Output format of log messages. One of: [logfmt, json]</span>\n<span class=\"pl-c1\">      --[no-]version             Show application version.</span></pre></div>\n<h2 dir=\"auto\">Exported Metrics</h2>\n<h3 dir=\"auto\">Common metrics</h3>\n<markdown-accessiblity-table><table role=\"table\">\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n<th>Labels</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code class=\"notranslate\">nginx_exporter_build_info</code></td>\n<td>Gauge</td>\n<td>Shows the exporter build information.</td>\n<td><code class=\"notranslate\">branch</code>, <code class=\"notranslate\">goarch</code>, <code class=\"notranslate\">goos</code>, <code class=\"notranslate\">goversion</code>, <code class=\"notranslate\">revision</code>, <code class=\"notranslate\">tags</code> and <code class=\"notranslate\">version</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">promhttp_metric_handler_requests_total</code></td>\n<td>Counter</td>\n<td>Total number of scrapes by HTTP status code.</td>\n<td><code class=\"notranslate\">code</code> (the HTTP status code)</td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">promhttp_metric_handler_requests_in_flight</code></td>\n<td>Gauge</td>\n<td>Current number of scrapes being served.</td>\n<td>[]</td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">go_*</code></td>\n<td>Multiple</td>\n<td>Go runtime metrics.</td>\n<td>[]</td>\n</tr>\n</tbody>\n</table></markdown-accessiblity-table>\n<h3 dir=\"auto\">Metrics for NGINX OSS</h3>\n<markdown-accessiblity-table><table role=\"table\">\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n<th>Labels</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code class=\"notranslate\">nginx_up</code></td>\n<td>Gauge</td>\n<td>Shows the status of the last metric scrape: <code class=\"notranslate\">1</code> for a successful scrape and <code class=\"notranslate\">0</code> for a failed one</td>\n<td>[]</td>\n</tr>\n</tbody>\n</table></markdown-accessiblity-table>\n<h4 dir=\"auto\"><a href=\"https://nginx.org/en/docs/http/ngx_http_stub_status_module.html\" rel=\"nofollow\">Stub status metrics</a></h4>\n<markdown-accessiblity-table><table role=\"table\">\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n<th>Labels</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code class=\"notranslate\">nginx_connections_accepted</code></td>\n<td>Counter</td>\n<td>Accepted client connections.</td>\n<td>[]</td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginx_connections_active</code></td>\n<td>Gauge</td>\n<td>Active client connections.</td>\n<td>[]</td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginx_connections_handled</code></td>\n<td>Counter</td>\n<td>Handled client connections.</td>\n<td>[]</td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginx_connections_reading</code></td>\n<td>Gauge</td>\n<td>Connections where NGINX is reading the request header.</td>\n<td>[]</td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginx_connections_waiting</code></td>\n<td>Gauge</td>\n<td>Idle client connections.</td>\n<td>[]</td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginx_connections_writing</code></td>\n<td>Gauge</td>\n<td>Connections where NGINX is writing the response back to the client.</td>\n<td>[]</td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginx_http_requests_total</code></td>\n<td>Counter</td>\n<td>Total http requests.</td>\n<td>[]</td>\n</tr>\n</tbody>\n</table></markdown-accessiblity-table>\n<h3 dir=\"auto\">Metrics for NGINX Plus</h3>\n<markdown-accessiblity-table><table role=\"table\">\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n<th>Labels</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code class=\"notranslate\">nginxplus_up</code></td>\n<td>Gauge</td>\n<td>Shows the status of the last metric scrape: <code class=\"notranslate\">1</code> for a successful scrape and <code class=\"notranslate\">0</code> for a failed one</td>\n<td>[]</td>\n</tr>\n</tbody>\n</table></markdown-accessiblity-table>\n<h4 dir=\"auto\"><a href=\"https://nginx.org/en/docs/http/ngx_http_api_module.html#def_nginx_connections\" rel=\"nofollow\">Connections</a></h4>\n<markdown-accessiblity-table><table role=\"table\">\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n<th>Labels</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code class=\"notranslate\">nginxplus_connections_accepted</code></td>\n<td>Counter</td>\n<td>Accepted client connections</td>\n<td>[]</td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_connections_active</code></td>\n<td>Gauge</td>\n<td>Active client connections</td>\n<td>[]</td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_connections_dropped</code></td>\n<td>Counter</td>\n<td>Dropped client connections dropped</td>\n<td>[]</td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_connections_idle</code></td>\n<td>Gauge</td>\n<td>Idle client connections</td>\n<td>[]</td>\n</tr>\n</tbody>\n</table></markdown-accessiblity-table>\n<h4 dir=\"auto\"><a href=\"https://nginx.org/en/docs/http/ngx_http_api_module.html#http_\" rel=\"nofollow\">HTTP</a></h4>\n<markdown-accessiblity-table><table role=\"table\">\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n<th>Labels</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code class=\"notranslate\">nginxplus_http_requests_total</code></td>\n<td>Counter</td>\n<td>Total http requests</td>\n<td>[]</td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_http_requests_current</code></td>\n<td>Gauge</td>\n<td>Current http requests</td>\n<td>[]</td>\n</tr>\n</tbody>\n</table></markdown-accessiblity-table>\n<h4 dir=\"auto\"><a href=\"https://nginx.org/en/docs/http/ngx_http_api_module.html#def_nginx_ssl_object\" rel=\"nofollow\">SSL</a></h4>\n<markdown-accessiblity-table><table role=\"table\">\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n<th>Labels</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code class=\"notranslate\">nginxplus_ssl_handshakes</code></td>\n<td>Counter</td>\n<td>Successful SSL handshakes</td>\n<td>[]</td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_ssl_handshakes_failed</code></td>\n<td>Counter</td>\n<td>Failed SSL handshakes</td>\n<td>[]</td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_ssl_session_reuses</code></td>\n<td>Counter</td>\n<td>Session reuses during SSL handshake</td>\n<td>[]</td>\n</tr>\n</tbody>\n</table></markdown-accessiblity-table>\n<h4 dir=\"auto\"><a href=\"https://nginx.org/en/docs/http/ngx_http_api_module.html#def_nginx_http_server_zone\" rel=\"nofollow\">HTTP Server Zones</a></h4>\n<markdown-accessiblity-table><table role=\"table\">\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n<th>Labels</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code class=\"notranslate\">nginxplus_server_zone_processing</code></td>\n<td>Gauge</td>\n<td>Client requests that are currently being processed</td>\n<td><code class=\"notranslate\">server_zone</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_server_zone_requests</code></td>\n<td>Counter</td>\n<td>Total client requests</td>\n<td><code class=\"notranslate\">server_zone</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_server_zone_responses</code></td>\n<td>Counter</td>\n<td>Total responses sent to clients</td>\n<td><code class=\"notranslate\">code</code> (the response status code. The values are: <code class=\"notranslate\">1xx</code>, <code class=\"notranslate\">2xx</code>, <code class=\"notranslate\">3xx</code>, <code class=\"notranslate\">4xx</code> and <code class=\"notranslate\">5xx</code>), <code class=\"notranslate\">server_zone</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_server_zone_responses_codes</code></td>\n<td>Counter</td>\n<td>Total responses sent to clients by code</td>\n<td><code class=\"notranslate\">code</code> (the response status code. The possible values are <a href=\"https://www.nginx.com/resources/wiki/extending/api/http/\" rel=\"nofollow\">here</a>), <code class=\"notranslate\">server_zone</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_server_zone_discarded</code></td>\n<td>Counter</td>\n<td>Requests completed without sending a response</td>\n<td><code class=\"notranslate\">server_zone</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_server_zone_received</code></td>\n<td>Counter</td>\n<td>Bytes received from clients</td>\n<td><code class=\"notranslate\">server_zone</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_server_zone_sent</code></td>\n<td>Counter</td>\n<td>Bytes sent to clients</td>\n<td><code class=\"notranslate\">server_zone</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_server_ssl_handshakes</code></td>\n<td>Counter</td>\n<td>Successful SSL handshakes</td>\n<td><code class=\"notranslate\">server_zone</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_server_ssl_handshakes_failed</code></td>\n<td>Counter</td>\n<td>Failed SSL handshakes</td>\n<td><code class=\"notranslate\">server_zone</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_server_ssl_session_reuses</code></td>\n<td>Counter</td>\n<td>Session reuses during SSL handshake</td>\n<td><code class=\"notranslate\">server_zone</code></td>\n</tr>\n</tbody>\n</table></markdown-accessiblity-table>\n<h4 dir=\"auto\"><a href=\"https://nginx.org/en/docs/http/ngx_http_api_module.html#def_nginx_stream_server_zone\" rel=\"nofollow\">Stream Server Zones</a></h4>\n<markdown-accessiblity-table><table role=\"table\">\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n<th>Labels</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_server_zone_processing</code></td>\n<td>Gauge</td>\n<td>Client connections that are currently being processed</td>\n<td><code class=\"notranslate\">server_zone</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_server_zone_connections</code></td>\n<td>Counter</td>\n<td>Total connections</td>\n<td><code class=\"notranslate\">server_zone</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_server_zone_sessions</code></td>\n<td>Counter</td>\n<td>Total sessions completed</td>\n<td><code class=\"notranslate\">code</code> (the response status code. The values are: <code class=\"notranslate\">2xx</code>, <code class=\"notranslate\">4xx</code>, and <code class=\"notranslate\">5xx</code>), <code class=\"notranslate\">server_zone</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_server_zone_discarded</code></td>\n<td>Counter</td>\n<td>Connections completed without creating a session</td>\n<td><code class=\"notranslate\">server_zone</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_server_zone_received</code></td>\n<td>Counter</td>\n<td>Bytes received from clients</td>\n<td><code class=\"notranslate\">server_zone</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_server_zone_sent</code></td>\n<td>Counter</td>\n<td>Bytes sent to clients</td>\n<td><code class=\"notranslate\">server_zone</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_server_ssl_handshakes</code></td>\n<td>Counter</td>\n<td>Successful SSL handshakes</td>\n<td><code class=\"notranslate\">server_zone</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_server_ssl_handshakes_failed</code></td>\n<td>Counter</td>\n<td>Failed SSL handshakes</td>\n<td><code class=\"notranslate\">server_zone</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_server_ssl_session_reuses</code></td>\n<td>Counter</td>\n<td>Session reuses during SSL handshake</td>\n<td><code class=\"notranslate\">server_zone</code></td>\n</tr>\n</tbody>\n</table></markdown-accessiblity-table>\n<h4 dir=\"auto\"><a href=\"https://nginx.org/en/docs/http/ngx_http_api_module.html#def_nginx_http_upstream\" rel=\"nofollow\">HTTP Upstreams</a></h4>\n<blockquote>\n<p dir=\"auto\">Note: for the <code class=\"notranslate\">state</code> metric, the string values are converted to float64 using the following rule: <code class=\"notranslate\">\"up\"</code> -&gt; <code class=\"notranslate\">1.0</code>,<br>\n<code class=\"notranslate\">\"draining\"</code> -&gt; <code class=\"notranslate\">2.0</code>, <code class=\"notranslate\">\"down\"</code> -&gt; <code class=\"notranslate\">3.0</code>, <code class=\"notranslate\">\"unavail\"</code> –&gt; <code class=\"notranslate\">4.0</code>, <code class=\"notranslate\">\"checking\"</code> –&gt; <code class=\"notranslate\">5.0</code>, <code class=\"notranslate\">\"unhealthy\"</code> -&gt; <code class=\"notranslate\">6.0</code>.</p>\n</blockquote>\n<markdown-accessiblity-table><table role=\"table\">\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n<th>Labels</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code class=\"notranslate\">nginxplus_upstream_server_state</code></td>\n<td>Gauge</td>\n<td>Current state</td>\n<td><code class=\"notranslate\">server</code>, <code class=\"notranslate\">upstream</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_upstream_server_active</code></td>\n<td>Gauge</td>\n<td>Active connections</td>\n<td><code class=\"notranslate\">server</code>, <code class=\"notranslate\">upstream</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_upstream_server_limit</code></td>\n<td>Gauge</td>\n<td>Limit for connections which corresponds to the max_conns parameter of the upstream server. Zero value means there is no limit</td>\n<td><code class=\"notranslate\">server</code>, <code class=\"notranslate\">upstream</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_upstream_server_requests</code></td>\n<td>Counter</td>\n<td>Total client requests</td>\n<td><code class=\"notranslate\">server</code>, <code class=\"notranslate\">upstream</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_upstream_server_responses</code></td>\n<td>Counter</td>\n<td>Total responses sent to clients</td>\n<td><code class=\"notranslate\">code</code> (the response status code. The values are: <code class=\"notranslate\">1xx</code>, <code class=\"notranslate\">2xx</code>, <code class=\"notranslate\">3xx</code>, <code class=\"notranslate\">4xx</code> and <code class=\"notranslate\">5xx</code>), <code class=\"notranslate\">server</code>, <code class=\"notranslate\">upstream</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_upstream_server_responses_codes</code></td>\n<td>Counter</td>\n<td>Total responses sent to clients by code</td>\n<td><code class=\"notranslate\">code</code> (the response status code. The possible values are <a href=\"https://www.nginx.com/resources/wiki/extending/api/http/\" rel=\"nofollow\">here</a>), <code class=\"notranslate\">server</code>, <code class=\"notranslate\">upstream</code></td>\n</tr>\n<tr>\n<td>nginxplus_upstream_server_sent`</td>\n<td>Counter</td>\n<td>Bytes sent to this server</td>\n<td><code class=\"notranslate\">server</code>, <code class=\"notranslate\">upstream</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_upstream_server_received</code></td>\n<td>Counter</td>\n<td>Bytes received to this server</td>\n<td><code class=\"notranslate\">server</code>, <code class=\"notranslate\">upstream</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_upstream_server_fails</code></td>\n<td>Counter</td>\n<td>Number of unsuccessful attempts to communicate with the server</td>\n<td><code class=\"notranslate\">server</code>, <code class=\"notranslate\">upstream</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_upstream_server_unavail</code></td>\n<td>Counter</td>\n<td>How many times the server became unavailable for client requests (state 'unavail') due to the number of unsuccessful attempts reaching the max_fails threshold</td>\n<td><code class=\"notranslate\">server</code>, <code class=\"notranslate\">upstream</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_upstream_server_header_time</code></td>\n<td>Gauge</td>\n<td>Average time to get the response header from the server</td>\n<td><code class=\"notranslate\">server</code>, <code class=\"notranslate\">upstream</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_upstream_server_response_time</code></td>\n<td>Gauge</td>\n<td>Average time to get the full response from the server</td>\n<td><code class=\"notranslate\">server</code>, <code class=\"notranslate\">upstream</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_upstream_server_health_checks_checks</code></td>\n<td>Counter</td>\n<td>Total health check requests</td>\n<td><code class=\"notranslate\">server</code>, <code class=\"notranslate\">upstream</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_upstream_server_health_checks_fails</code></td>\n<td>Counter</td>\n<td>Failed health checks</td>\n<td><code class=\"notranslate\">server</code>, <code class=\"notranslate\">upstream</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_upstream_server_health_checks_unhealthy</code></td>\n<td>Counter</td>\n<td>How many times the server became unhealthy (state 'unhealthy')</td>\n<td><code class=\"notranslate\">server</code>, <code class=\"notranslate\">upstream</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_upstream_server_ssl_handshakes</code></td>\n<td>Counter</td>\n<td>Successful SSL handshakes</td>\n<td><code class=\"notranslate\">server</code>, <code class=\"notranslate\">upstream</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_upstream_server_ssl_handshakes_failed</code></td>\n<td>Counter</td>\n<td>Failed SSL handshakes</td>\n<td><code class=\"notranslate\">server</code>, <code class=\"notranslate\">upstream</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_upstream_server_ssl_session_reuses</code></td>\n<td>Counter</td>\n<td>Session reuses during SSL handshake</td>\n<td><code class=\"notranslate\">server</code>, <code class=\"notranslate\">upstream</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_upstream_keepalive</code></td>\n<td>Gauge</td>\n<td>Idle keepalive connections</td>\n<td><code class=\"notranslate\">upstream</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_upstream_zombies</code></td>\n<td>Gauge</td>\n<td>Servers removed from the group but still processing active client requests</td>\n<td><code class=\"notranslate\">upstream</code></td>\n</tr>\n</tbody>\n</table></markdown-accessiblity-table>\n<h4 dir=\"auto\"><a href=\"https://nginx.org/en/docs/http/ngx_http_api_module.html#def_nginx_stream_upstream\" rel=\"nofollow\">Stream Upstreams</a></h4>\n<blockquote>\n<p dir=\"auto\">Note: for the <code class=\"notranslate\">state</code> metric, the string values are converted to float64 using the following rule: <code class=\"notranslate\">\"up\"</code> -&gt; <code class=\"notranslate\">1.0</code>,<br>\n<code class=\"notranslate\">\"down\"</code> -&gt; <code class=\"notranslate\">3.0</code>, <code class=\"notranslate\">\"unavail\"</code> –&gt; <code class=\"notranslate\">4.0</code>, <code class=\"notranslate\">\"checking\"</code> –&gt; <code class=\"notranslate\">5.0</code>, <code class=\"notranslate\">\"unhealthy\"</code> -&gt; <code class=\"notranslate\">6.0</code>.</p>\n</blockquote>\n<markdown-accessiblity-table><table role=\"table\">\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n<th>Labels</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_upstream_server_state</code></td>\n<td>Gauge</td>\n<td>Current state</td>\n<td><code class=\"notranslate\">server</code>, <code class=\"notranslate\">upstream</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_upstream_server_active</code></td>\n<td>Gauge</td>\n<td>Active connections</td>\n<td><code class=\"notranslate\">server</code> , <code class=\"notranslate\">upstream</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_upstream_server_limit</code></td>\n<td>Gauge</td>\n<td>Limit for connections which corresponds to the max_conns parameter of the upstream server. Zero value means there is no limit</td>\n<td><code class=\"notranslate\">server</code> , <code class=\"notranslate\">upstream</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_upstream_server_connections</code></td>\n<td>Counter</td>\n<td>Total number of client connections forwarded to this server</td>\n<td><code class=\"notranslate\">server</code>, <code class=\"notranslate\">upstream</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_upstream_server_connect_time</code></td>\n<td>Gauge</td>\n<td>Average time to connect to the upstream server</td>\n<td><code class=\"notranslate\">server</code>, <code class=\"notranslate\">upstream</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_upstream_server_first_byte_time</code></td>\n<td>Gauge</td>\n<td>Average time to receive the first byte of data</td>\n<td><code class=\"notranslate\">server</code>, <code class=\"notranslate\">upstream</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_upstream_server_response_time</code></td>\n<td>Gauge</td>\n<td>Average time to receive the last byte of data</td>\n<td><code class=\"notranslate\">server</code>, <code class=\"notranslate\">upstream</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_upstream_server_sent</code></td>\n<td>Counter</td>\n<td>Bytes sent to this server</td>\n<td><code class=\"notranslate\">server</code>, <code class=\"notranslate\">upstream</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_upstream_server_received</code></td>\n<td>Counter</td>\n<td>Bytes received from this server</td>\n<td><code class=\"notranslate\">server</code>, <code class=\"notranslate\">upstream</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_upstream_server_fails</code></td>\n<td>Counter</td>\n<td>Number of unsuccessful attempts to communicate with the server</td>\n<td><code class=\"notranslate\">server</code>, <code class=\"notranslate\">upstream</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_upstream_server_unavail</code></td>\n<td>Counter</td>\n<td>How many times the server became unavailable for client connections (state 'unavail') due to the number of unsuccessful attempts reaching the max_fails threshold</td>\n<td><code class=\"notranslate\">server</code>, <code class=\"notranslate\">upstream</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_upstream_server_health_checks_checks</code></td>\n<td>Counter</td>\n<td>Total health check requests</td>\n<td><code class=\"notranslate\">server</code>, <code class=\"notranslate\">upstream</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_upstream_server_health_checks_fails</code></td>\n<td>Counter</td>\n<td>Failed health checks</td>\n<td><code class=\"notranslate\">server</code>, <code class=\"notranslate\">upstream</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_upstream_server_health_checks_unhealthy</code></td>\n<td>Counter</td>\n<td>How many times the server became unhealthy (state 'unhealthy')</td>\n<td><code class=\"notranslate\">server</code>, <code class=\"notranslate\">upstream</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_upstream_server_ssl_handshakes</code></td>\n<td>Counter</td>\n<td>Successful SSL handshakes</td>\n<td><code class=\"notranslate\">server</code>, <code class=\"notranslate\">upstream</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_upstream_server_ssl_handshakes_failed</code></td>\n<td>Counter</td>\n<td>Failed SSL handshakes</td>\n<td><code class=\"notranslate\">server</code>, <code class=\"notranslate\">upstream</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_upstream_server_ssl_session_reuses</code></td>\n<td>Counter</td>\n<td>Session reuses during SSL handshake</td>\n<td><code class=\"notranslate\">server</code>, <code class=\"notranslate\">upstream</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_upstream_zombies</code></td>\n<td>Gauge</td>\n<td>Servers removed from the group but still processing active client connections</td>\n<td><code class=\"notranslate\">upstream</code></td>\n</tr>\n</tbody>\n</table></markdown-accessiblity-table>\n<h4 dir=\"auto\"><a href=\"https://nginx.org/en/docs/http/ngx_http_api_module.html#def_nginx_stream_zone_sync\" rel=\"nofollow\">Stream Zone Sync</a></h4>\n<markdown-accessiblity-table><table role=\"table\">\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n<th>Labels</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_zone_sync_zone_records_pending</code></td>\n<td>Gauge</td>\n<td>The number of records that need to be sent to the cluster</td>\n<td><code class=\"notranslate\">zone</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_zone_sync_zone_records_total</code></td>\n<td>Gauge</td>\n<td>The total number of records stored in the shared memory zone</td>\n<td><code class=\"notranslate\">zone</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_zone_sync_zone_bytes_in</code></td>\n<td>Counter</td>\n<td>Bytes received by this node</td>\n<td>[]</td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_zone_sync_zone_bytes_out</code></td>\n<td>Counter</td>\n<td>Bytes sent by this node</td>\n<td>[]</td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_zone_sync_zone_msgs_in</code></td>\n<td>Counter</td>\n<td>Total messages received by this node</td>\n<td>[]</td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_zone_sync_zone_msgs_out</code></td>\n<td>Counter</td>\n<td>Total messages sent by this node</td>\n<td>[]</td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_zone_sync_zone_nodes_online</code></td>\n<td>Gauge</td>\n<td>Number of peers this node is connected to</td>\n<td>[]</td>\n</tr>\n</tbody>\n</table></markdown-accessiblity-table>\n<h4 dir=\"auto\"><a href=\"https://nginx.org/en/docs/http/ngx_http_api_module.html#def_nginx_http_location_zone\" rel=\"nofollow\">Location Zones</a></h4>\n<markdown-accessiblity-table><table role=\"table\">\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n<th>Labels</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code class=\"notranslate\">nginxplus_location_zone_requests</code></td>\n<td>Counter</td>\n<td>Total client requests</td>\n<td><code class=\"notranslate\">location_zone</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_location_zone_responses</code></td>\n<td>Counter</td>\n<td>Total responses sent to clients</td>\n<td><code class=\"notranslate\">code</code> (the response status code. The values are: <code class=\"notranslate\">1xx</code>, <code class=\"notranslate\">2xx</code>, <code class=\"notranslate\">3xx</code>, <code class=\"notranslate\">4xx</code> and <code class=\"notranslate\">5xx</code>), <code class=\"notranslate\">location_zone</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_location_zone_responses_codes</code></td>\n<td>Counter</td>\n<td>Total responses sent to clients by code</td>\n<td><code class=\"notranslate\">code</code> (the response status code. The possible values are <a href=\"https://www.nginx.com/resources/wiki/extending/api/http/\" rel=\"nofollow\">here</a>), <code class=\"notranslate\">location_zone</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_location_zone_discarded</code></td>\n<td>Counter</td>\n<td>Requests completed without sending a response</td>\n<td><code class=\"notranslate\">location_zone</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_location_zone_received</code></td>\n<td>Counter</td>\n<td>Bytes received from clients</td>\n<td><code class=\"notranslate\">location_zone</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_location_zone_sent</code></td>\n<td>Counter</td>\n<td>Bytes sent to clients</td>\n<td><code class=\"notranslate\">location_zone</code></td>\n</tr>\n</tbody>\n</table></markdown-accessiblity-table>\n<h4 dir=\"auto\"><a href=\"https://nginx.org/en/docs/http/ngx_http_api_module.html#def_nginx_resolver_zone\" rel=\"nofollow\">Resolver</a></h4>\n<markdown-accessiblity-table><table role=\"table\">\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n<th>Labels</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code class=\"notranslate\">nginxplus_resolver_name</code></td>\n<td>Counter</td>\n<td>Total requests to resolve names to addresses</td>\n<td><code class=\"notranslate\">resolver</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_resolver_srv</code></td>\n<td>Counter</td>\n<td>Total requests to resolve SRV records</td>\n<td><code class=\"notranslate\">resolver</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_resolver_addr</code></td>\n<td>Counter</td>\n<td>Total requests to resolve addresses to names</td>\n<td><code class=\"notranslate\">resolver</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_resolver_noerror</code></td>\n<td>Counter</td>\n<td>Total number of successful responses</td>\n<td><code class=\"notranslate\">resolver</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_resolver_formerr</code></td>\n<td>Counter</td>\n<td>Total number of FORMERR responses</td>\n<td><code class=\"notranslate\">resolver</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_resolver_servfail</code></td>\n<td>Counter</td>\n<td>Total number of SERVFAIL responses</td>\n<td><code class=\"notranslate\">resolver</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_resolver_nxdomain</code></td>\n<td>Counter</td>\n<td>Total number of NXDOMAIN responses</td>\n<td><code class=\"notranslate\">resolver</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_resolver_notimp</code></td>\n<td>Counter</td>\n<td>Total number of NOTIMP responses</td>\n<td><code class=\"notranslate\">resolver</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_resolver_refused</code></td>\n<td>Counter</td>\n<td>Total number of REFUSED responses</td>\n<td><code class=\"notranslate\">resolver</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_resolver_timedout</code></td>\n<td>Counter</td>\n<td>Total number of timed out request</td>\n<td><code class=\"notranslate\">resolver</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_resolver_unknown</code></td>\n<td>Counter</td>\n<td>Total requests completed with an unknown error</td>\n<td><code class=\"notranslate\">resolver</code></td>\n</tr>\n</tbody>\n</table></markdown-accessiblity-table>\n<h4 dir=\"auto\"><a href=\"https://nginx.org/en/docs/http/ngx_http_api_module.html#def_nginx_http_limit_req_zone\" rel=\"nofollow\">HTTP Requests Rate Limiting</a></h4>\n<markdown-accessiblity-table><table role=\"table\">\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n<th>Labels</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code class=\"notranslate\">nginxplus_limit_request_passed</code></td>\n<td>Counter</td>\n<td>Total number of requests that were neither limited nor accounted as limited</td>\n<td><code class=\"notranslate\">zone</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_limit_request_rejected</code></td>\n<td>Counter</td>\n<td>Total number of requests that were rejected</td>\n<td><code class=\"notranslate\">zone</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_limit_request_delayed</code></td>\n<td>Counter</td>\n<td>Total number of requests that were delayed</td>\n<td><code class=\"notranslate\">zone</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_limit_request_rejected_dry_run</code></td>\n<td>Counter</td>\n<td>Total number of requests accounted as rejected in the dry run mode</td>\n<td><code class=\"notranslate\">zone</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_limit_request_delayed_dry_run</code></td>\n<td>Counter</td>\n<td>Total number of requests accounted as delayed in the dry run mode</td>\n<td><code class=\"notranslate\">zone</code></td>\n</tr>\n</tbody>\n</table></markdown-accessiblity-table>\n<h4 dir=\"auto\"><a href=\"https://nginx.org/en/docs/http/ngx_http_api_module.html#def_nginx_http_limit_conn_zone\" rel=\"nofollow\">HTTP Connections Limiting</a></h4>\n<markdown-accessiblity-table><table role=\"table\">\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n<th>Labels</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code class=\"notranslate\">nginxplus_limit_connection_passed</code></td>\n<td>Counter</td>\n<td>Total number of connections that were neither limited nor accounted as limited</td>\n<td><code class=\"notranslate\">zone</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_limit_connection_rejected</code></td>\n<td>Counter</td>\n<td>Total number of connections that were rejected</td>\n<td><code class=\"notranslate\">zone</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_limit_connection_rejected_dry_run</code></td>\n<td>Counter</td>\n<td>Total number of connections accounted as rejected in the dry run mode</td>\n<td><code class=\"notranslate\">zone</code></td>\n</tr>\n</tbody>\n</table></markdown-accessiblity-table>\n<h4 dir=\"auto\"><a href=\"https://nginx.org/en/docs/http/ngx_http_api_module.html#def_nginx_stream_limit_conn_zone\" rel=\"nofollow\">Stream Connections Limiting</a></h4>\n<markdown-accessiblity-table><table role=\"table\">\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n<th>Labels</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_limit_connection_passed</code></td>\n<td>Counter</td>\n<td>Total number of connections that were neither limited nor accounted as limited</td>\n<td><code class=\"notranslate\">zone</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_limit_connection_rejected</code></td>\n<td>Counter</td>\n<td>Total number of connections that were rejected</td>\n<td><code class=\"notranslate\">zone</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_stream_limit_connection_rejected_dry_run</code></td>\n<td>Counter</td>\n<td>Total number of connections accounted as rejected in the dry run mode</td>\n<td><code class=\"notranslate\">zone</code></td>\n</tr>\n</tbody>\n</table></markdown-accessiblity-table>\n<h4 dir=\"auto\"><a href=\"https://nginx.org/en/docs/http/ngx_http_api_module.html#def_nginx_http_cache\" rel=\"nofollow\">Cache</a></h4>\n<markdown-accessiblity-table><table role=\"table\">\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n<th>Labels</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code class=\"notranslate\">nginxplus_cache_size</code></td>\n<td>Gauge</td>\n<td>Total size of the cache</td>\n<td><code class=\"notranslate\">cache</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_cache_max_size</code></td>\n<td>Gauge</td>\n<td>Maximum size of the cache</td>\n<td><code class=\"notranslate\">cache</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_cache_cold</code></td>\n<td>Gauge</td>\n<td>Is the cache considered cold</td>\n<td><code class=\"notranslate\">cache</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_cache_hit_responses</code></td>\n<td>Counter</td>\n<td>Total number of cache hits</td>\n<td><code class=\"notranslate\">cache</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_cache_hit_bytes</code></td>\n<td>Counter</td>\n<td>Total number of bytes returned from cache hits</td>\n<td><code class=\"notranslate\">cache</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_cache_stale_responses</code></td>\n<td>Counter</td>\n<td>Total number of stale cache hits</td>\n<td><code class=\"notranslate\">cache</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_cache_stale_bytes</code></td>\n<td>Counter</td>\n<td>Total number of bytes returned from stale cache hits</td>\n<td><code class=\"notranslate\">cache</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_cache_updating_responses</code></td>\n<td>Counter</td>\n<td>Total number of cache hits while cache is updating</td>\n<td><code class=\"notranslate\">cache</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_cache_updating_bytes</code></td>\n<td>Counter</td>\n<td>Total number of bytes returned from cache while cache is updating</td>\n<td><code class=\"notranslate\">cache</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_cache_revalidated_responses</code></td>\n<td>Counter</td>\n<td>Total number of cache revalidations</td>\n<td><code class=\"notranslate\">cache</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_cache_revalidated_bytes</code></td>\n<td>Counter</td>\n<td>Total number of bytes returned from cache revalidations</td>\n<td><code class=\"notranslate\">cache</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_cache_miss_responses</code></td>\n<td>Counter</td>\n<td>Total number of cache misses</td>\n<td><code class=\"notranslate\">cache</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_cache_miss_bytes</code></td>\n<td>Counter</td>\n<td>Total number of bytes returned from cache misses</td>\n<td><code class=\"notranslate\">cache</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_cache_expired_responses</code></td>\n<td>Counter</td>\n<td>Total number of cache hits with expired TTL</td>\n<td><code class=\"notranslate\">cache</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_cache_expired_bytes</code></td>\n<td>Counter</td>\n<td>Total number of bytes returned from cache hits with expired TTL</td>\n<td><code class=\"notranslate\">cache</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_cache_expired_responses_written</code></td>\n<td>Counter</td>\n<td>Total number of cache hits with expired TTL written to cache</td>\n<td><code class=\"notranslate\">cache</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_cache_expired_bytes_written</code></td>\n<td>Counter</td>\n<td>Total number of bytes written to cache from cache hits with expired TTL</td>\n<td><code class=\"notranslate\">cache</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_cache_bypass_responses</code></td>\n<td>Counter</td>\n<td>Total number of cache bypasses</td>\n<td><code class=\"notranslate\">cache</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_cache_bypass_bytes</code></td>\n<td>Counter</td>\n<td>Total number of bytes returned from cache bypasses</td>\n<td><code class=\"notranslate\">cache</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_cache_bypass_responses_written</code></td>\n<td>Counter</td>\n<td>Total number of cache bypasses written to cache</td>\n<td><code class=\"notranslate\">cache</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_cache_bypass_bytes_written</code></td>\n<td>Counter</td>\n<td>Total number of bytes written to cache from cache bypasses</td>\n<td><code class=\"notranslate\">cache</code></td>\n</tr>\n</tbody>\n</table></markdown-accessiblity-table>\n<h4 dir=\"auto\"><a href=\"https://nginx.org/en/docs/http/ngx_http_api_module.html#def_nginx_worker\" rel=\"nofollow\">Worker</a></h4>\n<markdown-accessiblity-table><table role=\"table\">\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n<th>Labels</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code class=\"notranslate\">nginxplus_worker_connection_accepted</code></td>\n<td>Counter</td>\n<td>The total number of accepted client connections</td>\n<td><code class=\"notranslate\">id</code>, <code class=\"notranslate\">pid</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_worker_connection_dropped</code></td>\n<td>Counter</td>\n<td>The total number of dropped client connections</td>\n<td><code class=\"notranslate\">id</code>, <code class=\"notranslate\">pid</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_worker_connection_active</code></td>\n<td>Gauge</td>\n<td>The current number of active client connections</td>\n<td><code class=\"notranslate\">id</code>, <code class=\"notranslate\">pid</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_worker_connection_idle</code></td>\n<td>Gauge</td>\n<td>The current number of idle client connection</td>\n<td><code class=\"notranslate\">id</code>, <code class=\"notranslate\">pid</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_worker_http_requests_total</code></td>\n<td>Counter</td>\n<td>The total number of client requests received</td>\n<td><code class=\"notranslate\">id</code>, <code class=\"notranslate\">pid</code></td>\n</tr>\n<tr>\n<td><code class=\"notranslate\">nginxplus_worker_http_requests_current</code></td>\n<td>Gauge</td>\n<td>The current number of client requests that are currently being processed</td>\n<td><code class=\"notranslate\">id</code>, <code class=\"notranslate\">pid</code></td>\n</tr>\n</tbody>\n</table></markdown-accessiblity-table>\n<p dir=\"auto\">Connect to the <code class=\"notranslate\">/metrics</code> page of the running exporter to see the complete list of metrics along with their<br>\ndescriptions. Note: to see server zones related metrics you must configure <a href=\"https://nginx.org/en/docs/http/ngx_http_api_module.html#status_zone\" rel=\"nofollow\">status<br>\nzones</a> and to see upstream related metrics you<br>\nmust configure upstreams with a <a href=\"https://nginx.org/en/docs/http/ngx_http_upstream_module.html#zone\" rel=\"nofollow\">shared memory zone</a>.</p>\n<h2 dir=\"auto\">Troubleshooting</h2>\n<p dir=\"auto\">The exporter logs errors to the standard output. When using Docker, if the exporter doesn’t work as expected, check its<br>\nlogs using <a href=\"https://docs.docker.com/engine/reference/commandline/logs/\" rel=\"nofollow\">docker logs</a> command.</p>\n<h2 dir=\"auto\">Releases</h2>\n<h3 dir=\"auto\">Docker images</h3>\n<p dir=\"auto\">We publish the Docker image on <a href=\"https://hub.docker.com/r/nginx/nginx-prometheus-exporter/\" rel=\"nofollow\">DockerHub</a>,<br>\n<a href=\"https://github.com/nginx/nginx-prometheus-exporter/pkgs/container/nginx-prometheus-exporter\">GitHub Container</a>,<br>\n<a href=\"https://gallery.ecr.aws/nginx/nginx-prometheus-exporter\" rel=\"nofollow\">Amazon ECR Public Gallery</a> and<br>\n<a href=\"https://quay.io/repository/nginx/nginx-prometheus-exporter\" rel=\"nofollow\">Quay.io</a>.</p>\n<p dir=\"auto\">As an alternative, you can choose the <em>edge</em> version built from the <a href=\"https://github.com/nginx/nginx-prometheus-exporter/commits/main\">latest commit</a><br>\nfrom the main branch. The edge version is useful for experimenting with new features that are not yet published in a<br>\nstable release.</p>\n<h3 dir=\"auto\">Binaries</h3>\n<p dir=\"auto\">We publish the binaries for multiple Operating Systems and architectures on the GitHub <a href=\"https://github.com/nginx/nginx-prometheus-exporter/releases\">releases page</a>.</p>\n<h3 dir=\"auto\">Homebrew</h3>\n<p dir=\"auto\">You can add the NGINX homebrew tap with</p>\n<div class=\"highlight highlight-text-shell-session notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"brew tap nginx/tap\"><pre class=\"notranslate\"><span class=\"pl-c1\">brew tap nginx/tap</span></pre></div>\n<p dir=\"auto\">and then install the formula with</p>\n<div class=\"highlight highlight-text-shell-session notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"brew install nginx-prometheus-exporter\"><pre class=\"notranslate\"><span class=\"pl-c1\">brew install nginx-prometheus-exporter</span></pre></div>\n<h3 dir=\"auto\">Snap</h3>\n<p dir=\"auto\">You can install the NGINX Prometheus Exporter from the <a href=\"https://snapcraft.io/nginx-prometheus-exporter\" rel=\"nofollow\">Snap Store</a>.</p>\n<div class=\"highlight highlight-text-shell-session notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"snap install nginx-prometheus-exporter\"><pre class=\"notranslate\"><span class=\"pl-c1\">snap install nginx-prometheus-exporter</span></pre></div>\n<h3 dir=\"auto\">Scoop</h3>\n<p dir=\"auto\">You can add the NGINX Scoop bucket with</p>\n<div class=\"highlight highlight-text-shell-session notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"scoop bucket add nginx https://github.com/nginx/scoop-bucket.git\"><pre class=\"notranslate\"><span class=\"pl-c1\">scoop bucket add nginx https://github.com/nginx/scoop-bucket.git</span></pre></div>\n<p dir=\"auto\">and then install the package with</p>\n<div class=\"highlight highlight-text-shell-session notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"scoop install nginx-prometheus-exporter\"><pre class=\"notranslate\"><span class=\"pl-c1\">scoop install nginx-prometheus-exporter</span></pre></div>\n<h3 dir=\"auto\">Nix</h3>\n<p dir=\"auto\">First include NUR in your packageOverrides as explained in the <a href=\"https://github.com/nix-community/NUR#installation\">NUR documentation</a>.</p>\n<p dir=\"auto\">Then you can use the exporter with the following command:</p>\n<div class=\"highlight highlight-text-shell-session notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"nix-shell --packages nur.repos.nginx.nginx-prometheus-exporter\"><pre class=\"notranslate\"><span class=\"pl-c1\">nix-shell --packages nur.repos.nginx.nginx-prometheus-exporter</span></pre></div>\n<p dir=\"auto\">or install it with:</p>\n<div class=\"highlight highlight-text-shell-session notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"nix-env -f '&lt;nixpkgs&gt;' -iA nur.repos.nginx.nginx-prometheus-exporter\"><pre class=\"notranslate\"><span class=\"pl-c1\">nix-env -f '&lt;nixpkgs&gt;' -iA nur.repos.nginx.nginx-prometheus-exporter</span></pre></div>\n<h2 dir=\"auto\">Building the Exporter</h2>\n<p dir=\"auto\">You can build the exporter using the provided Makefile. Before building the exporter, make sure the following software<br>\nis installed on your machine:</p>\n<ul dir=\"auto\">\n<li>make</li>\n<li>git</li>\n<li>Docker for building the container image</li>\n<li>Go for building the binary</li>\n</ul>\n<h3 dir=\"auto\">Building the Docker Image</h3>\n<p dir=\"auto\">To build the Docker image with the exporter, run:</p>\n<div class=\"highlight highlight-text-shell-session notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"make container\"><pre class=\"notranslate\"><span class=\"pl-c1\">make container</span></pre></div>\n<p dir=\"auto\">Note: go is not required, as the exporter binary is built in a Docker container. See the <a href=\"build/Dockerfile\">Dockerfile</a>.</p>\n<h3 dir=\"auto\">Building the Binary</h3>\n<p dir=\"auto\">To build the binary, run:</p>\n<div class=\"highlight highlight-text-shell-session notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"make\"><pre class=\"notranslate\"><span class=\"pl-c1\">make</span></pre></div>\n<p dir=\"auto\">Note: the binary is built for the OS/arch of your machine. To build binaries for other platforms, see the<br>\n<a href=\"Makefile\">Makefile</a>.</p>\n<p dir=\"auto\">The binary is built with the name <code class=\"notranslate\">nginx-prometheus-exporter</code>.</p>\n<h2 dir=\"auto\">Grafana Dashboard</h2>\n<p dir=\"auto\">The official Grafana dashboard is provided with the exporter for NGINX. Check the <a href=\"./grafana/README.md\">Grafana<br>\nDashboard</a> documentation for more information.</p>\n<h2 dir=\"auto\">SBOM (Software Bill of Materials)</h2>\n<p dir=\"auto\">We generate SBOMs for the binaries and the Docker image.</p>\n<h3 dir=\"auto\">Binaries</h3>\n<p dir=\"auto\">The SBOMs for the binaries are available in the releases page. The SBOMs are generated using<br>\n<a href=\"https://github.com/anchore/syft\">syft</a> and are available in SPDX format.</p>\n<h3 dir=\"auto\">Docker Image</h3>\n<p dir=\"auto\">The SBOM for the Docker image is available in the<br>\n<a href=\"https://hub.docker.com/r/nginx/nginx-prometheus-exporter\" rel=\"nofollow\">DockerHub</a>,<br>\n<a href=\"https://github.com/nginx/nginx-prometheus-exporter/pkgs/container/nginx-prometheus-exporter\">GitHub Container registry</a>,<br>\n<a href=\"https://gallery.ecr.aws/nginx/nginx-prometheus-exporter\" rel=\"nofollow\">Amazon ECR Public Gallery</a> and<br>\n<a href=\"https://quay.io/repository/nginx/nginx-prometheus-exporter\" rel=\"nofollow\">Quay.io</a> repositories. The SBOMs are generated using<br>\n<a href=\"https://github.com/anchore/syft\">syft</a> and stored as an attestation in the image manifest.</p>\n<p dir=\"auto\">For example to retrieve the SBOM for <code class=\"notranslate\">linux/amd64</code> from Docker Hub and analyze it using<br>\n<a href=\"https://github.com/anchore/grype\">grype</a> you can run the following command:</p>\n<div class=\"highlight highlight-text-shell-session notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"docker buildx imagetools inspect nginx/nginx-prometheus-exporter:edge --format '{{ json (index .SBOM &quot;linux/amd64&quot;).SPDX }}' | grype\"><pre class=\"notranslate\"><span class=\"pl-c1\">docker buildx imagetools inspect nginx/nginx-prometheus-exporter:edge --format '{{ json (index .SBOM \"linux/amd64\").SPDX }}' | grype</span></pre></div>\n<h2 dir=\"auto\">Provenance</h2>\n<p dir=\"auto\">We generate provenance for the Docker image and it's available in the<br>\n<a href=\"https://hub.docker.com/r/nginx/nginx-prometheus-exporter\" rel=\"nofollow\">DockerHub</a>,<br>\n<a href=\"https://github.com/nginx/nginx-prometheus-exporter/pkgs/container/nginx-prometheus-exporter\">GitHub Container registry</a>,<br>\n<a href=\"https://gallery.ecr.aws/nginx/nginx-prometheus-exporter\" rel=\"nofollow\">Amazon ECR Public Gallery</a> and<br>\n<a href=\"https://quay.io/repository/nginx/nginx-prometheus-exporter\" rel=\"nofollow\">Quay.io</a> repositories, stored as an attestation in the<br>\nimage manifest.</p>\n<p dir=\"auto\">For example to retrieve the provenance for <code class=\"notranslate\">linux/amd64</code> from Docker Hub you can run the following command:</p>\n<div class=\"highlight highlight-text-shell-session notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"docker buildx imagetools inspect nginx/nginx-prometheus-exporter:edge --format '{{ json (index .Provenance &quot;linux/amd64&quot;).SLSA }}'\"><pre class=\"notranslate\"><span class=\"pl-c1\">docker buildx imagetools inspect nginx/nginx-prometheus-exporter:edge --format '{{ json (index .Provenance \"linux/amd64\").SLSA }}'</span></pre></div>\n<h2 dir=\"auto\">Contacts</h2>\n<p dir=\"auto\">We’d like to hear your feedback! If you have any suggestions or experience issues with the NGINX Prometheus Exporter,<br>\nplease create an issue or send a pull request on GitHub. You can contact us on the <a href=\"https://community.nginx.org/\" rel=\"nofollow\">NGINX Community Forums</a>.</p>\n<h2 dir=\"auto\">Contributing</h2>\n<p dir=\"auto\">If you'd like to contribute to the project, please read our <a href=\"CONTRIBUTING.md\">Contributing guide</a>.</p>\n<h2 dir=\"auto\">Support</h2>\n<p dir=\"auto\">The commercial support is available for NGINX Plus customers when the NGINX Prometheus Exporter is used with NGINX<br>\nIngress Controller.</p>\n<h2 dir=\"auto\">License</h2>\n<p dir=\"auto\"><a href=\"LICENSE\">Apache License, Version 2.0</a>.</p>","updatedAt":"2025-05-21T16:13:11Z","upvoteCount":null,"author":{"login":"eryajf","avatarUrl":"https://avatars.githubusercontent.com/u/33259379?u=e4a4090a38ac2473aaed4ef9945233636776c6c3&v=4","url":"https://github.com/eryajf"},"category":null,"labels":{"edges":[{"node":{"name":"更多","color":"25B472"}},{"node":{"name":"Prometheus-Exporter","color":"367acb"}},{"node":{"name":"nginxinc","color":"0234ae"}}]},"comments":{"edges":[]}}},"pageContext":{"number":396,"previous":{"title":"goreleaser/nfpm: 一个用 Go 编写的简单且 0 依赖项的 deb、rpm、apk 和 arch Linux 打包器","number":395},"next":{"title":"NginxProxyManager/nginx-proxy-manager: 该项目是一个预构建的Docker镜像，可以让您轻松地将您在家中或其他地方运行的网站转发出去，包括免费SSL，而无需对Nginx或Letsencrypt有太多了解。","number":397}}},
    "staticQueryHashes": ["151096407","2861350382"]}