Skip to content

Commit 6f62131

Browse files
committed
Update WebGazer heartbeat monitor stuff
1 parent a5eb52f commit 6f62131

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,26 @@
22

33
* Takes the dump of the Postgres database
44
* Uploads it to AWS' object storage service S3
5-
* Reports to WebGazer Pulse (optional)
5+
* Reports to [WebGazer](https://www.webgazer.io) (optional)
66

77
## Usage
88

99
### Environment variables
1010

11-
| Variable | Required | Default value | Description |
12-
|-----------------------|:--------:|---------------|-------------------------------------------------------------------------------------------------------------------------------|
13-
| AWS_ACCESS_KEY_ID || | Access key id for the AWS account |
14-
| AWS_REGION || | Region for the AWS bucket |
15-
| AWS_S3_ENDPOINT || | AWS S3 endpoint with bucket and path (e.g. "my-bucket/postgres-backup") |
16-
| AWS_S3_STORAGE_CLASS | | STANDARD_IA | AWS S3 storage class (see https://aws.amazon.com/s3/storage-classes/ and https://rclone.org/s3/#s3-storage-class for options. |
17-
| AWS_SECRET_ACCESS_KEY || | Secret access key for the AWS account |
18-
| POSTGRES_DB || | Postgres server database |
19-
| POSTGRES_HOST | | postgres | Postgres server host |
20-
| POSTGRES_PASSWORD || | Postgres server password |
21-
| POSTGRES_PORT | | 5432 | Postgres server port |
22-
| POSTGRES_USER | | postgres | Postgres server user |
23-
| POSTGRES_VERSION | | 16 | Postgres server version (13, 14, 15 or 16) |
24-
| WEBGAZER_PULSE_URL | | | [WebGazer Pulse](https://www.webgazer.io/pulse) URL |
11+
| Variable | Required | Default value | Description |
12+
|------------------------|:--------:|---------------|-------------------------------------------------------------------------------------------------------------------------------|
13+
| AWS_ACCESS_KEY_ID || | Access key id for the AWS account |
14+
| AWS_REGION || | Region for the AWS bucket |
15+
| AWS_S3_ENDPOINT || | AWS S3 endpoint with bucket and path (e.g. "my-bucket/postgres-backup") |
16+
| AWS_S3_STORAGE_CLASS | | STANDARD_IA | AWS S3 storage class (see https://aws.amazon.com/s3/storage-classes/ and https://rclone.org/s3/#s3-storage-class for options. |
17+
| AWS_SECRET_ACCESS_KEY || | Secret access key for the AWS account |
18+
| POSTGRES_DB || | Postgres server database |
19+
| POSTGRES_HOST | | postgres | Postgres server host |
20+
| POSTGRES_PASSWORD || | Postgres server password |
21+
| POSTGRES_PORT | | 5432 | Postgres server port |
22+
| POSTGRES_USER | | postgres | Postgres server user |
23+
| POSTGRES_VERSION | | 16 | Postgres server version (13, 14, 15 or 16) |
24+
| WEBGAZER_HEARTBEAT_URL | | | [WebGazer Heartbeat Monitor](https://www.webgazer.io/services/cron-job-monitoring) URL |
2525

2626
### Running
2727

@@ -37,7 +37,7 @@
3737
-e POSTGRES_PORT=<postgres_port[5432]> \
3838
-e POSTGRES_USER=<postgres_user[postgres]> \
3939
-e POSTGRES_VERSION=<postgres_version[15]> \
40-
-e WEBGAZER_PULSE_URL=<webgazer_pulse_url>
40+
-e WEBGAZER_HEARTBEAT_URL=<webgazer_heartbeat_url>
4141

4242
### Example
4343

@@ -53,7 +53,7 @@
5353
-e POSTGRES_PORT=5432 \
5454
-e POSTGRES_USER=postgres_user \
5555
-e POSTGRES_VERSION=15 \
56-
-e WEBGAZER_PULSE_URL=https://pulse.webgazer.io/1-8f713c75d659
56+
-e WEBGAZER_HEARTBEAT_URL=https://heartbeat.webgazer.io/1-8f713c75d659
5757

5858
## Shameless plug
5959

docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ rclone copyto \
4747
":s3,access_key_id=${AWS_ACCESS_KEY_ID},provider=AWS,region=${AWS_REGION},secret_access_key=${AWS_SECRET_ACCESS_KEY},storage_class=${AWS_S3_STORAGE_CLASS}:${AWS_S3_ENDPOINT}/${BACKUP_FILE_NAME}"
4848
echo "Uploading to S3... Done."
4949

50-
if [ -n "${WEBGAZER_PULSE_URL}" ]; then
51-
curl "${WEBGAZER_PULSE_URL}?seconds=${SECONDS}"
50+
if [ -n "${WEBGAZER_HEARTBEAT_URL}" ]; then
51+
curl "${WEBGAZER_HEARTBEAT_URL}?seconds=${SECONDS}"
5252
fi

0 commit comments

Comments
 (0)