docs(inputs.postgresql_extensible): Document 'measurement' query config option (#13631)
This commit is contained in:
parent
9d894e7dee
commit
59defb0bc5
|
|
@ -59,6 +59,9 @@ to use them.
|
||||||
# The script option can be used to specify the .sql file path.
|
# The script option can be used to specify the .sql file path.
|
||||||
# If script and sqlquery options specified at same time, sqlquery will be used
|
# If script and sqlquery options specified at same time, sqlquery will be used
|
||||||
#
|
#
|
||||||
|
# the measurement field defines measurement name for metrics produced
|
||||||
|
# by the query. Default is "postgresql".
|
||||||
|
#
|
||||||
# the tagvalue field is used to define custom tags (separated by comas).
|
# the tagvalue field is used to define custom tags (separated by comas).
|
||||||
# the query is expected to return columns which match the names of the
|
# the query is expected to return columns which match the names of the
|
||||||
# defined tags. The values in these columns must be of a string-type,
|
# defined tags. The values in these columns must be of a string-type,
|
||||||
|
|
@ -81,6 +84,7 @@ to use them.
|
||||||
#
|
#
|
||||||
# Structure :
|
# Structure :
|
||||||
# [[inputs.postgresql_extensible.query]]
|
# [[inputs.postgresql_extensible.query]]
|
||||||
|
# measurement string
|
||||||
# sqlquery string
|
# sqlquery string
|
||||||
# min_version int
|
# min_version int
|
||||||
# max_version int
|
# max_version int
|
||||||
|
|
@ -88,6 +92,7 @@ to use them.
|
||||||
# tagvalue string (coma separated)
|
# tagvalue string (coma separated)
|
||||||
# timestamp string
|
# timestamp string
|
||||||
[[inputs.postgresql_extensible.query]]
|
[[inputs.postgresql_extensible.query]]
|
||||||
|
measurement="pg_stat_database"
|
||||||
sqlquery="SELECT * FROM pg_stat_database where datname"
|
sqlquery="SELECT * FROM pg_stat_database where datname"
|
||||||
min_version=901
|
min_version=901
|
||||||
tagvalue=""
|
tagvalue=""
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,9 @@
|
||||||
# The script option can be used to specify the .sql file path.
|
# The script option can be used to specify the .sql file path.
|
||||||
# If script and sqlquery options specified at same time, sqlquery will be used
|
# If script and sqlquery options specified at same time, sqlquery will be used
|
||||||
#
|
#
|
||||||
|
# the measurement field defines measurement name for metrics produced
|
||||||
|
# by the query. Default is "postgresql".
|
||||||
|
#
|
||||||
# the tagvalue field is used to define custom tags (separated by comas).
|
# the tagvalue field is used to define custom tags (separated by comas).
|
||||||
# the query is expected to return columns which match the names of the
|
# the query is expected to return columns which match the names of the
|
||||||
# defined tags. The values in these columns must be of a string-type,
|
# defined tags. The values in these columns must be of a string-type,
|
||||||
|
|
@ -48,6 +51,7 @@
|
||||||
#
|
#
|
||||||
# Structure :
|
# Structure :
|
||||||
# [[inputs.postgresql_extensible.query]]
|
# [[inputs.postgresql_extensible.query]]
|
||||||
|
# measurement string
|
||||||
# sqlquery string
|
# sqlquery string
|
||||||
# min_version int
|
# min_version int
|
||||||
# max_version int
|
# max_version int
|
||||||
|
|
@ -55,6 +59,7 @@
|
||||||
# tagvalue string (coma separated)
|
# tagvalue string (coma separated)
|
||||||
# timestamp string
|
# timestamp string
|
||||||
[[inputs.postgresql_extensible.query]]
|
[[inputs.postgresql_extensible.query]]
|
||||||
|
measurement="pg_stat_database"
|
||||||
sqlquery="SELECT * FROM pg_stat_database where datname"
|
sqlquery="SELECT * FROM pg_stat_database where datname"
|
||||||
min_version=901
|
min_version=901
|
||||||
tagvalue=""
|
tagvalue=""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue