-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add support for pg_stat_statements to MetricBeat Postgresql module #7060
Merged
jsoriano
merged 23 commits into
elastic:master
from
zinefer:feature/metricbeat-statements-metricset
Jun 4, 2018
Merged
Changes from 9 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
b812cba
create statements metricset for the metricbeat postgresql module
zinefer c516a4f
fix styling
zinefer 5bcb9ce
fix styling for travis build
zinefer 0d517c0
run make docs
zinefer 4f76515
This reverts commit 0d517c0dcc55a52fa898cc274cda1d1ae94f909a.
zinefer 45aceea
init metricbeat/postgresql/statement metricset
zinefer f186a8b
run make fmt
zinefer 80624f6
run make collect
zinefer 689eba5
run make update
zinefer 8aa871d
postgresql metricset fixes
zinefer bd3c873
Merge branch 'master' of github.com:elastic/beats into feature/metric…
zinefer 99a2bfc
run make collect, docs, fmt
zinefer 5b8caa9
run make update
zinefer 407e939
fix changelog
zinefer 6dfac36
Merge branch 'master' of github.com:elastic/beats into feature/metric…
zinefer 01aface
run make update
zinefer b5b4581
enable pg_stat_statements for integration tests
zinefer 51a9af8
enable pg_stat_statements for integration tests
zinefer f9d7bd7
bugfix column name
zinefer ddf0b43
Merge branch 'master' of github.com:elastic/beats into feature/metric…
zinefer 0c26c63
run make update
zinefer 7c2c2ff
Merge branch 'master' of github.com:elastic/beats into feature/metric…
zinefer 1fe0057
run make update
zinefer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,23 @@ | ||
//// | ||
This file is generated! See scripts/docs_collector.py | ||
//// | ||
|
||
[[metricbeat-metricset-postgresql-statement]] | ||
=== PostgreSQL statement metricset | ||
|
||
beta[] | ||
|
||
include::../../../module/postgresql/statement/_meta/docs.asciidoc[] | ||
|
||
|
||
==== Fields | ||
|
||
For a description of each field in the metricset, see the | ||
<<exported-fields-postgresql,exported fields>> section. | ||
|
||
Here is an example document generated by this metricset: | ||
|
||
[source,json] | ||
---- | ||
include::../../../module/postgresql/statement/_meta/data.json[] | ||
---- |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,54 @@ | ||
{ | ||
"@timestamp": "2017-10-12T08:05:34.853Z", | ||
"beat": { | ||
"hostname": "host.example.com", | ||
"name": "host.example.com" | ||
}, | ||
"metricset": { | ||
"host": "postgresql:5432", | ||
"module": "postgresql", | ||
"name": "statements", | ||
"rtt": 115 | ||
}, | ||
"postgresql": { | ||
"statements": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
"user": { | ||
"id": 10 | ||
}, | ||
"database": { | ||
"oid": "12407" | ||
}, | ||
"query": { | ||
"id": "3240664890", | ||
"text": "SELECT pg_sleep(?);", | ||
"calls": "2", | ||
"rows": "2", | ||
"time": { | ||
"total": 120066.497, | ||
"min": 60029.533, | ||
"max": 60036.964, | ||
"mean": 60033.2485, | ||
"stddev": 3.71549999999843 | ||
}, | ||
"memory": { | ||
"shared": { | ||
"hit": 0, | ||
"read": 0, | ||
"dirtied": 0, | ||
"written": 0, | ||
}, | ||
"local": { | ||
"hit": 0, | ||
"read": 0, | ||
"dirtied": 0, | ||
"written": 0, | ||
}, | ||
"temp": { | ||
"read": 0, | ||
"written": 0, | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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,3 @@ | ||
=== postgresql statement MetricSet | ||
|
||
This is the statement metricset of the module postgresql. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
statement