-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsample.env
160 lines (137 loc) · 3.36 KB
/
sample.env
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
#
# This file is a place where the behaviour of environment variable is defined.
#
# It can be used to:
# - set up a PaaS application wich provide a service to set environment variable
# - run the code locally, without PaaS
#
# To run the code locally, you had to create a minimal configuration file
# It will be read by Dotenv and exposed throught NodeJS process.env global variable
#
# Instructions:
# 1. copy this file as `.env`
# 2. edit the `.env` file with working values
# 3. uncomment the lines to activate or configure associated features
#
# Line size max: 80 characters.
#
# =========
# HOSTING
# =========
# Name of region which is hosting the application whose database is to be monitored
# If not present, the application will crash
#
# presence: required
# type: text
# default: none
SCALINGO_REGION=
# Name of the applications whose databases has to be monitored
# If not present, the application will crash
#
# presence: required
# type: array of text
# default: none
SCALINGO_APPS=
# =========
# AUTHENTICATION
# =========
# API token who grant access to the application whose database is to be monitored
# If not present, the application will crash
#
# presence: required
# type: text
# default: none
SCALINGO_TOKEN=
# =========
# SCHEDULING
# =========
# Enable metrics monitoring
#
# presence: optional
# type: text
# value: yes to activate
FT_METRICS=yes
# Enable statements monitoring
#
# presence: optional
# type: text
# value: yes to activate
FT_STATEMENTS=yes
# Enable response time monitoring
#
# presence: optional
# type: text
# value: yes to activate
FT_RESPONSE_TIME=yes
# Enable progress (vacuum, create index...) monitoring
#
# presence: optional
# type: text
# value: yes to activate
FT_PROGRESS=yes
# Enable running queries monitoring
#
# presence: optional
# type: text
# value: yes to activate
FT_QUERIES_METRIC=yes
FT_BLOCKING_QUERIES=yes
# Execution periodicity (for node-cron library, in a cron-like pattern)
# Cron patterns have five fields, and 1 minute as the finest granularity
# But this library has six fields, with 1 second as the finest granularity.
# See https://github.com/kelektiv/node-cron#available-cron-patterns
#
# Metrics Schedule
# If not present, the application will crash
#
# presence: required
# type: text
# default: none
# each 15 seconds
METRICS_SCHEDULE=*/15 * * * * *
# Statements Schedule
# If not present, the application will crash
#
# presence: required
# type: text
# default: none
# each hour
STATEMENTS_SCHEDULE=* * */1 * * *
# Response time schedule
# If not present, the application will crash
#
# presence: required
# type: text
# default: none
# each 15 seconds
RESPONSE_TIME_SCHEDULE=*/15 * * * * *
# Progress reporting schedule
#
# presence: optional
# type: text
# default: 0 */10 * * * *
PROGRESS_SCHEDULE=0 */10 * * * *
# Queries metrics schedule
#
# presence: optional
# type: text
# default: 0 */10 * * * *
QUERIES_METRIC_SCHEDULE=0 */10 * * * *
# =========
# RESPONSE_TIME
# =========
# Query used for response time
# This query will be run in a read-only transaction, so use a SELECT
#
# presence: optional
# type: text
# default: SELECT pg_sleep(1)
RESPONSE_TIME_QUERY=SELECT id FROM users ORDER BY RANDOM() LIMIT 1
# URL of the PostgreSQL database used for testing
#
# If not present, the application test will fail
#
# presence: required
# type: Url
# default: none
TEST_DATABASE_URL=postgresql://user@localhost/database