Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry-pick #19844 to 7.x: Add cache, rows stats and connection errors data to status metricset in MySQL module #19903

Merged
merged 1 commit into from
Jul 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,7 @@ field. You can revert this change by configuring tags for the module and omittin
- 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 @@ -32315,6 +32315,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 @@ -32707,7 +32854,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 @@ -32737,7 +32884,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 @@ -32747,7 +32894,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 @@ -32810,6 +32957,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 @@ -32845,7 +33034,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