@whitewater-guide/gorge 2.4.0-beta.3 → 2.4.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -13
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -94,27 +94,16 @@ Here is the list of available flags:
|
|
|
94
94
|
--http-user-agent string User agent for requests sent from scripts. Leave empty to use fake browser agent (default "whitewater.guide robot")
|
|
95
95
|
--http-without-tls Disable TLS for some gauges
|
|
96
96
|
--log-format string Set this to 'json' to output log in json (default "json")
|
|
97
|
-
--log-level string Log level. Leave empty to discard logs (default "
|
|
97
|
+
--log-level string Log level. Leave empty to discard logs (default "info")
|
|
98
98
|
--pg-db string Postgres database (default "postgres")
|
|
99
99
|
--pg-host string Postgres host (default "db")
|
|
100
|
-
--pg-password string Postgres password
|
|
100
|
+
--pg-password string Postgres password [env POSTGRES_PASSWORD]
|
|
101
101
|
--pg-user string Postgres user (default "postgres")
|
|
102
102
|
--port string Port (default "7080")
|
|
103
103
|
--redis-host string Redis host (default "redis")
|
|
104
104
|
--redis-port string Redis port (default "6379")
|
|
105
105
|
```
|
|
106
106
|
|
|
107
|
-
Postgres and redis can also be configured using following environment variables:
|
|
108
|
-
|
|
109
|
-
- POSTGRES_HOST
|
|
110
|
-
- POSTGRES_DB
|
|
111
|
-
- POSTGRES_USER
|
|
112
|
-
- POSTGRES_PASSWORD
|
|
113
|
-
- REDIS_HOST
|
|
114
|
-
- REDIS_PORT
|
|
115
|
-
|
|
116
|
-
Environment variables have lower priority than cli flags.
|
|
117
|
-
|
|
118
107
|
Gorge uses database to store harvested measurements and scheduled jobs. It comes with postgres and sqlite drivers. Gorge will initialize all the required tables. Check out sql migration file if you're curious about db schema.
|
|
119
108
|
|
|
120
109
|
Gorge uses cache to store safe-to-lose data: latest measurement from each gauge and harvest statuses. It comes with redis (recommended) and embedded redis drivers.
|