Documentation

SHOW STATS statement

This page documents an earlier version of . is the latest stable version. View this page in the documentation.

Using the SHOW STATS statement

The InfluxQL SHOW STATS statement returns detailed measurement statistics on InfluxDB servers and available (enabled) components. Each component exporting statistics exports a measurement named after the module and various series that are associated with the measurement. To monitor InfluxDB system measurements over time, you can use the _internal database. For details on measurements available in the _internal database, see Measurements for monitoring InfluxDB OSS and InfluxDB Enterprise (_internal).

These statistics are all reset to zero when the InfluxDB service starts.

The SHOW STATS [FOR <component>] option

If you are interested in monitoring a specific InfluxDB component, use the SHOW STATS FOR <component>] to limit the results of the SHOW STATS statement to a specified module. The SHOW STATS FOR <component> statement displays detailed measurement statistics about a subsystem within a running influxd service.

If a component is specified, it must be single-quoted. In the following example, the available statistics for the httpd module are returned.

SHOW STATS FOR 'httpd'

The SHOW STATS FOR 'indexes' option

The SHOW STATS statement does not list index memory usage unless you use the SHOW STATS FOR 'indexes' statement. This statement returns an estimate of memory use of all indexes.

Index memory usage is not reported with the default SHOW STATS statement because it is a potentially expensive operation.

SHOW STATS measurement details

The SHOW STATS statement returns the same statistics captured in the internal database, but only for the instant you run the statement.

For details on the measurement statistics returned, see InfluxDB _internal measurements.


Was this page helpful?

Thank you for your feedback!


Introducing InfluxDB Clustered

A highly available InfluxDB 3.0 cluster on your own infrastructure.

InfluxDB Clustered is a highly available InfluxDB 3.0 cluster built for high write and query workloads on your own infrastructure.

InfluxDB Clustered is currently in limited availability and is only available to a limited group of InfluxData customers. If interested in being part of the limited access group, please contact the InfluxData Sales team.

Learn more
Contact InfluxData Sales

The future of Flux

Flux is going into maintenance mode. You can continue using it as you currently are without any changes to your code.

Flux is going into maintenance mode and will not be supported in InfluxDB 3.0. This was a decision based on the broad demand for SQL and the continued growth and adoption of InfluxQL. We are continuing to support Flux for users in 1.x and 2.x so you can continue using it with no changes to your code. If you are interested in transitioning to InfluxDB 3.0 and want to future-proof your code, we suggest using InfluxQL.

For information about the future of Flux, see the following:

State of the InfluxDB Cloud Serverless documentation

InfluxDB Cloud Serverless documentation is a work in progress.

The new documentation for InfluxDB Cloud Serverless is a work in progress. We are adding new information and content almost daily. Thank you for your patience!

If there is specific information you’re looking for, please submit a documentation issue.