Greenplum provisioning Ansible role.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

27 lines
795 B

# {{ ansible_managed }}
[Unit]
Description=Postgres metrics exporter
After=network.target
[Service]
Type=simple
User={{ greenplum_user }}
Group={{ greenplum_group }}
Environment="DATA_SOURCE_URI={{ postgres_exporter_host }}/{{ postgres_exporter_database }}?sslmode={{ postgres_exporter_sslmode }}"
Environment="DATA_SOURCE_USER={{ postgres_exporter_user }}"
Environment="DATA_SOURCE_PASS={{ postgres_exporter_password }}"
Environment="PG_EXPORTER_WEB_LISTEN_ADDRESS={{ postgres_exporter_listen_address }}"
Environment="PG_EXPORTER_WEB_TELEMETRY_PATH={{ postgres_exporter_telemetry_path }}"
Environment="PG_EXPORTER_AUTO_DISCOVER_DATABASES={{ postgres_exporter_discovery }}"
ExecStart=/usr/local/bin/postgres_exporter
Restart=on-failure
RestartSec=10
[Install]
WantedBy=multi-user.target