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

Metricbeat mysql: Add config.epr.yml #17323

Merged
merged 2 commits into from
Mar 30, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
8 changes: 4 additions & 4 deletions metricbeat/docs/modules/mysql.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ metricbeat.modules:
- module: mysql
metricsets:
- "status"
# - "galera_status"
- "galera_status"
period: 10s

# Host DSN should be defined as "user:pass@tcp(127.0.0.1:3306)/"
Expand All @@ -70,13 +70,13 @@ metricbeat.modules:
hosts: ["root:secret@tcp(127.0.0.1:3306)/"]

# Username of hosts. Empty by default.
#username: root
username: ""

# Password of hosts. Empty by default.
#password: secret
password: ""

# By setting raw to true, all raw fields from the status metricset will be added to the event.
#raw: false
raw: false
----

[float]
Expand Down
8 changes: 4 additions & 4 deletions metricbeat/metricbeat.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ metricbeat.modules:
- module: mysql
metricsets:
- "status"
# - "galera_status"
- "galera_status"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this normally means that the metricset is disabled by default, do we really need to change this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I used this way (enabling metricset) to ensure that the configuration option is used with the metricset.
In this case, if I enable "galera_status", the script will include all configuration options related to it.

period: 10s

# Host DSN should be defined as "user:pass@tcp(127.0.0.1:3306)/"
Expand All @@ -632,13 +632,13 @@ metricbeat.modules:
hosts: ["root:secret@tcp(127.0.0.1:3306)/"]

# Username of hosts. Empty by default.
#username: root
username: ""

# Password of hosts. Empty by default.
#password: secret
password: ""

# By setting raw to true, all raw fields from the status metricset will be added to the event.
#raw: false
raw: false

#--------------------------------- Nats Module ---------------------------------
- module: nats
Expand Down
8 changes: 4 additions & 4 deletions metricbeat/module/mysql/_meta/config.reference.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- module: mysql
metricsets:
- "status"
# - "galera_status"
- "galera_status"
period: 10s

# Host DSN should be defined as "user:pass@tcp(127.0.0.1:3306)/"
Expand All @@ -12,10 +12,10 @@
hosts: ["root:secret@tcp(127.0.0.1:3306)/"]

# Username of hosts. Empty by default.
#username: root
username: ""

# Password of hosts. Empty by default.
#password: secret
password: ""

# By setting raw to true, all raw fields from the status metricset will be added to the event.
#raw: false
raw: false