mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 17:42:19 +08:00
Docs: Update postgres.md (#26467)
* Update postgres.md * Update docs/sources/features/datasources/postgres.md Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com> Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
@ -26,7 +26,7 @@ Name | Description
|
|||||||
------------ | -------------
|
------------ | -------------
|
||||||
*Name* | The data source name. This is how you refer to the data source in panels and queries.
|
*Name* | The data source name. This is how you refer to the data source in panels and queries.
|
||||||
*Default* | Default data source means that it will be pre-selected for new panels.
|
*Default* | Default data source means that it will be pre-selected for new panels.
|
||||||
*Host* | The IP address/hostname and optional port of your PostgreSQL instance.
|
*Host* | The IP address/hostname and optional port of your PostgreSQL instance. _Do not_ include the database name. The connection string for connecting to Postgres will not be correct and will cause errors.
|
||||||
*Database* | Name of your PostgreSQL database.
|
*Database* | Name of your PostgreSQL database.
|
||||||
*User* | Database user's login/username
|
*User* | Database user's login/username
|
||||||
*Password* | Database user's password
|
*Password* | Database user's password
|
||||||
@ -418,3 +418,7 @@ datasources:
|
|||||||
postgresVersion: 903 # 903=9.3, 904=9.4, 905=9.5, 906=9.6, 1000=10
|
postgresVersion: 903 # 903=9.3, 904=9.4, 905=9.5, 906=9.6, 1000=10
|
||||||
timescaledb: false
|
timescaledb: false
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If you encounter metric request errors or other issues:
|
||||||
|
- Make sure your data source YAML file parameters exactly match the example. This includes parameter names and use of quotation marks.
|
||||||
|
- Make sure the `database` name is not included in the `url`.
|
||||||
|
Reference in New Issue
Block a user