update
This commit is contained in:
19
templates/postgres-agent-config.yml.j2
Normal file
19
templates/postgres-agent-config.yml.j2
Normal file
@@ -0,0 +1,19 @@
|
||||
agent:
|
||||
metadata:
|
||||
agent_name: "{{ postgres_agent_name | default('dsk-postgres-agent') }}"
|
||||
option:
|
||||
exporter_config:
|
||||
command: "/usr/bin/dsk-postgres-exporter"
|
||||
port: 19187
|
||||
args:
|
||||
- --extend.query-path=/etc/datasaker/dsk-postgres-agent/queries.yaml
|
||||
- --data-source-user="{{ postgres_user_name | default('') }}"
|
||||
- --data-source-pass="{{ postgres_user_password | default('') }}"
|
||||
- --data-source-uri="{{ postgres_database_address | default('') }}":"{{ postgres_database_port | default('') }}"
|
||||
scrape_interval: 15s
|
||||
scrape_timeout: 5s
|
||||
scrape_configs:
|
||||
- job_name: dsk-postgres-agent
|
||||
url: localhost:19187
|
||||
filtering_configs:
|
||||
rule: drop
|
||||
Reference in New Issue
Block a user