Fix spelling errors in comments and documentation (#7492)
This commit is contained in:
@@ -16,7 +16,7 @@ The example below has two queries are specified, with the following parameters:
|
||||
# specify address via a url matching:
|
||||
# postgres://[pqgotest[:password]]@host:port[/dbname]?sslmode=...
|
||||
# or a simple string:
|
||||
# host=localhost port=5432 user=pqotest password=... sslmode=... dbname=app_production
|
||||
# host=localhost port=5432 user=pqgotest password=... sslmode=... dbname=app_production
|
||||
#
|
||||
# All connection parameters are optional.
|
||||
# Without the dbname parameter, the driver will default to a database
|
||||
@@ -71,7 +71,7 @@ The example below has two queries are specified, with the following parameters:
|
||||
```
|
||||
|
||||
The system can be easily extended using homemade metrics collection tools or
|
||||
using postgreql extensions ([pg_stat_statements](http://www.postgresql.org/docs/current/static/pgstatstatements.html), [pg_proctab](https://github.com/markwkm/pg_proctab) or [powa](http://dalibo.github.io/powa/))
|
||||
using postgresql extensions ([pg_stat_statements](http://www.postgresql.org/docs/current/static/pgstatstatements.html), [pg_proctab](https://github.com/markwkm/pg_proctab) or [powa](http://dalibo.github.io/powa/))
|
||||
|
||||
# Sample Queries :
|
||||
- telegraf.conf postgresql_extensible queries (assuming that you have configured
|
||||
|
||||
@@ -41,7 +41,7 @@ var sampleConfig = `
|
||||
## postgres://[pqgotest[:password]]@localhost[/dbname]\
|
||||
## ?sslmode=[disable|verify-ca|verify-full]
|
||||
## or a simple string:
|
||||
## host=localhost user=pqotest password=... sslmode=... dbname=app_production
|
||||
## host=localhost user=pqgotest password=... sslmode=... dbname=app_production
|
||||
#
|
||||
## All connection parameters are optional. #
|
||||
## Without the dbname parameter, the driver will default to a database
|
||||
@@ -153,7 +153,7 @@ func (p *Postgresql) Gather(acc telegraf.Accumulator) error {
|
||||
columns []string
|
||||
)
|
||||
|
||||
// Retreiving the database version
|
||||
// Retrieving the database version
|
||||
query = `SELECT setting::integer / 100 AS version FROM pg_settings WHERE name = 'server_version_num'`
|
||||
if err = p.DB.QueryRow(query).Scan(&db_version); err != nil {
|
||||
db_version = 0
|
||||
|
||||
Reference in New Issue
Block a user