File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
- instance_id = $(shell curl "http://10.1.9.49:4001/api/instance_id?name=cakecloud-db&project_name=${project}")
2
1
hostname = $(shell hostname)
3
2
DATA_SOURCE_NAME ="postgresql://${database_user}:${database_password}@localhost:${port}/${database_name}"
4
3
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}")
5
5
6
6
all : prepare_files save_env_vars start_service
7
7
Original file line number Diff line number Diff line change
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
+ ```
You can’t perform that action at this time.
0 commit comments