Update postgresq_extensible.go
Added more comments in the sampleConfig
This commit is contained in:
parent
d801860688
commit
4af534df91
|
@ -56,6 +56,10 @@ var sampleConfig = `
|
||||||
# New queries can be added, if the withdbname is set to true and there is no databases defined
|
# New queries can be added, if the withdbname is set to true and there is no databases defined
|
||||||
# in the 'databases field', the sql query is ended by a 'is not null' in order to make the query
|
# in the 'databases field', the sql query is ended by a 'is not null' in order to make the query
|
||||||
# succeed.
|
# succeed.
|
||||||
|
# Example :
|
||||||
|
# The sqlquery : "SELECT * FROM pg_stat_database where datname" become "SELECT * FROM pg_stat_database where datname IN ('postgres', 'pgbench')"
|
||||||
|
# because the databases variable was set to ['postgres', 'pgbench' ] and the withdbname was true.
|
||||||
|
# Be careful that if the withdbname is set to false you d'ont have to define the where clause (aka with the dbname)
|
||||||
# the tagvalue field is used to define custom tags (separated by comas)
|
# the tagvalue field is used to define custom tags (separated by comas)
|
||||||
#
|
#
|
||||||
# Structure :
|
# Structure :
|
||||||
|
|
Loading…
Reference in New Issue