-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set default metricsets for postgresql module (#6761)
- Loading branch information
Showing
9 changed files
with
42 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
- module: postgresql | ||
enabled: true | ||
metricsets: | ||
# Stats about every PostgreSQL database | ||
- database | ||
|
||
# Stats about the background writer process's activity | ||
- bgwriter | ||
|
||
# Stats about every PostgreSQL process | ||
- activity | ||
|
||
period: 10s | ||
|
||
# The host must be passed as PostgreSQL URL. Example: | ||
# postgres://localhost:5432?sslmode=disable | ||
# The available parameters are documented here: | ||
# https://godoc.org/github.com/lib/pq#hdr-Connection_String_Parameters | ||
hosts: ["postgres://localhost:5432"] | ||
|
||
# Username to use when connecting to PostgreSQL. Empty by default. | ||
#username: user | ||
|
||
# Password to use when connecting to PostgreSQL. Empty by default. | ||
#password: pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,2 @@ | ||
- module: postgresql | ||
metricsets: | ||
# Stats about every PostgreSQL database | ||
- database | ||
|
||
# Stats about the background writer process's activity | ||
- bgwriter | ||
|
||
# Stats about every PostgreSQL process | ||
- activity | ||
|
||
period: 10s | ||
|
||
# The host must be passed as PostgreSQL URL. Example: | ||
# postgres://localhost:5432?sslmode=disable | ||
# The available parameters are documented here: | ||
# https://godoc.org/github.com/lib/pq#hdr-Connection_String_Parameters | ||
hosts: ["postgres://localhost:5432"] | ||
|
||
# Username to use when connecting to PostgreSQL. Empty by default. | ||
#username: user | ||
|
||
# Password to use when connecting to PostgreSQL. Empty by default. | ||
#password: pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,2 @@ | ||
- module: postgresql | ||
metricsets: | ||
# Stats about every PostgreSQL database | ||
- database | ||
|
||
# Stats about the background writer process's activity | ||
- bgwriter | ||
|
||
# Stats about every PostgreSQL process | ||
- activity | ||
|
||
period: 10s | ||
|
||
# The host must be passed as PostgreSQL URL. Example: | ||
# postgres://localhost:5432?sslmode=disable | ||
# The available parameters are documented here: | ||
# https://godoc.org/github.com/lib/pq#hdr-Connection_String_Parameters | ||
hosts: ["postgres://localhost:5432"] | ||
|
||
# Username to use when connecting to PostgreSQL. Empty by default. | ||
#username: user | ||
|
||
# Password to use when connecting to PostgreSQL. Empty by default. | ||
#password: pass |