Skip to content

Commit

Permalink
Add cache, rows stats and connection errors data to status metricset …
Browse files Browse the repository at this point in the history
…in MySQL module (#19844)
  • Loading branch information
sayden authored Jul 14, 2020
1 parent 2297636 commit 91aca53
Show file tree
Hide file tree
Showing 6 changed files with 449 additions and 95 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Added `performance` and `query` metricsets to `mysql` module. {pull}18955[18955]
- The `elasticsearch-xpack/index` metricset now reports hidden indices as such. {issue}18639[18639] {pull}18706[18706]
- Adds support for app insights metrics in the azure module. {issue}18570[18570] {pull}18940[18940]
- Added cache and connection_errors metrics to status metricset of MySQL module {issue}16955[16955] {pull}19844[19844]

*Packetbeat*

Expand Down
197 changes: 193 additions & 4 deletions metricbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -32345,6 +32345,153 @@ type: long
The number of failed attempts to connect to the MySQL server.


type: long

--

[float]
=== connection




[float]
=== errors




*`mysql.status.connection.errors.peer_address`*::
+
--
The number of errors that occurred while searching for connecting client IP addresses.

type: long

--

*`mysql.status.connection.errors.accept`*::
+
--
The number of errors that occurred during calls to accept() on the listening port.

type: long

--

*`mysql.status.connection.errors.internal`*::
+
--
The number of connections refused due to internal errors in the server, such as failure to start a new thread or an out-of-memory condition.


type: long

--

*`mysql.status.connection.errors.max`*::
+
--
The number of connections refused because the server max_connections limit was reached. thread or an out-of-memory condition.

type: long

--

*`mysql.status.connection.errors.tcpwrap`*::
+
--
The number of connections refused by the libwrap library.

type: long

--

*`mysql.status.connection.errors.select`*::
+
--
The number of errors that occurred during calls to select() or poll() on the listening port. (Failure of this operation does not necessarily means a client connection was rejected.)


type: long

--

[float]
=== cache




[float]
=== ssl

SSL session cache hits and misses.


*`mysql.status.cache.ssl.hits`*::
+
--
The number of SSL session cache hits.

type: long

--

*`mysql.status.cache.ssl.misses`*::
+
--
The number of SSL session cache misses.

type: long

--

*`mysql.status.cache.ssl.size`*::
+
--
The SSL session cache size.

type: long

--

[float]
=== table




[float]
=== open_cache




*`mysql.status.cache.table.open_cache.hits`*::
+
--
The number of hits for open tables cache lookups.

type: long

--

*`mysql.status.cache.table.open_cache.misses`*::
+
--
The number of misses for open tables cache lookups.

type: long

--

*`mysql.status.cache.table.open_cache.overflows`*::
+
--
Number of times, after a table is opened or closed, a cache instance has an unused entry and the size of the instance is larger than table_open_cache / table_open_cache_instances


type: long

--
Expand Down Expand Up @@ -32737,7 +32884,7 @@ type: long
*`mysql.status.handler.read.last`*::
+
--
The number of requests to read the last key in an index.
The number of requests to read the last key in an index.


type: long
Expand Down Expand Up @@ -32767,7 +32914,7 @@ type: long
*`mysql.status.handler.read.rnd`*::
+
--
The number of requests to read a row based on a fixed position.
The number of requests to read a row based on a fixed position.


type: long
Expand All @@ -32777,7 +32924,7 @@ type: long
*`mysql.status.handler.read.rnd_next`*::
+
--
The number of requests to read the next row in the data file.
The number of requests to read the next row in the data file.


type: long
Expand Down Expand Up @@ -32840,6 +32987,48 @@ type: long



[float]
=== rows




*`mysql.status.innodb.rows.reads`*::
+
--
The number of rows reads into InnoDB tables.

type: long

--

*`mysql.status.innodb.rows.inserted`*::
+
--
The number of rows inserted into InnoDB tables.

type: long

--

*`mysql.status.innodb.rows.deleted`*::
+
--
The number of rows deleted into InnoDB tables.

type: long

--

*`mysql.status.innodb.rows.updated`*::
+
--
The number of rows updated into InnoDB tables.

type: long

--

[float]
=== buffer_pool

Expand Down Expand Up @@ -32875,7 +33064,7 @@ type: long
*`mysql.status.innodb.buffer_pool.bytes.data`*::
+
--
The total number of bytes in the InnoDB buffer pool containing data.
The total number of bytes in the InnoDB buffer pool containing data.


type: long
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/module/mysql/fields.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 91aca53

Please sign in to comment.