Skip to content

Commit 0666b81

Browse files
author
Pancake Team
committed
Fix
2 parents 8f693c3 + 433f7bd commit 0666b81

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
instance_id = $(shell curl "http://10.1.9.49:4001/api/instance_id?name=cakecloud-db&project_name=${project}")
21
hostname = $(shell hostname)
32
DATA_SOURCE_NAME="postgresql://${database_user}:${database_password}@localhost:${port}/${database_name}"
43
PG_EXPORTER_CONSTANT_LABELS="domain=${instance_id}_${hostname}"
4+
instance_id = $(shell curl "http://10.1.9.49:4001/api/instance_id?name=${hostname}&project_name=${project}")
55

66
all: prepare_files save_env_vars start_service
77

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
### Hướng dẫn cài đặt
2+
```
3+
wget https://statics.pancake.vn/thanos-test/cakecloud-postgres-exporter.tar.gz
4+
tar -xvf cakecloud-postgres-exporter.tar.gz
5+
cd postgres_exporter
6+
make project=<PROJECT_NAME> database_user=<USER> database_password=<PASSWORD> database_name=<DB_NAME> port=<PORT>
7+
```

0 commit comments

Comments
 (0)