# Where does nginx.stubstatus.current get its data from?

**URL:** <https://discuss.elastic.co/t/where-does-nginx-stubstatus-current-get-its-data-from/129258>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [April 24, 2018, 8:23am UTC](https://discuss.elastic.co/t/where-does-nginx-stubstatus-current-get-its-data-from/129258 "2018-04-24T08:23:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Silas\_Hansen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/silas_hansen/32/67521_2.png) [@Silas\_Hansen](https://discuss.elastic.co/u/Silas_Hansen)\
**Post date:** [April 24, 2018, 8:23am UTC](https://discuss.elastic.co/t/where-does-nginx-stubstatus-current-get-its-data-from/129258/1 "2018-04-24T08:23:41Z")

</div>

Looking at:  
[http://nginx.org/en/docs/http/ngx\_http\_stub\_status\_module.html](http://nginx.org/en/docs/http/ngx_http_stub_status_module.html)

it says nothing about any metric in the stubstatus called "current", as listed here as "nginx.stubstatus.current":  
[https://www.elastic.co/guide/en/beats/metricbeat/current/exported-fields-nginx.html#\_literal\_nginx\_stubstatus\_current\_literal](https://www.elastic.co/guide/en/beats/metricbeat/current/exported-fields-nginx.html#_literal_nginx_stubstatus_current_literal)

One could be tempted to think it came from "Active connections", but that does in fact already go into another field called nginx.stubstatus.active.

So how does nginx.stubstatus.current get populated and from which data?

Is it a derived metric?

---

<div class="post-metadata">

**Author:** ![adrisr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adrisr/32/25423_2.png) [@adrisr](https://discuss.elastic.co/u/adrisr)\
**Post date:** [April 24, 2018, 10:53am UTC](https://discuss.elastic.co/t/where-does-nginx-stubstatus-current-get-its-data-from/129258/2 "2018-04-24T10:53:08Z")

</div>

`current` is a derived metric, it is the number of requests handled since the last metric fetch.

So the difference between the current `nginx.stubstatus.requests` and the previous.

---

<div class="post-metadata">

**Author:** ![Silas\_Hansen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/silas_hansen/32/67521_2.png) [@Silas\_Hansen](https://discuss.elastic.co/u/Silas_Hansen)\
**Post date:** [April 25, 2018, 5:46am UTC](https://discuss.elastic.co/t/where-does-nginx-stubstatus-current-get-its-data-from/129258/3 "2018-04-25T05:46:49Z")

</div>

Great - thanks!

Did I miss that in the docs somewhere?

I've searched high and low, and my last idea was actually to take a look at the source, but I thought it would be of greater public interest that I put the question in here, as the docs seems to be missing some details.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 23, 2018, 5:49am UTC](https://discuss.elastic.co/t/where-does-nginx-stubstatus-current-get-its-data-from/129258/4 "2018-05-23T05:49:42Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
