mirror of https://gitlab.com/tildes/tildes.git
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.
16 lines
479 B
16 lines
479 B
[Unit]
|
|
Description=Prometheus Postgres Exporter
|
|
After=syslog.target network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
RemainAfterExit=no
|
|
WorkingDirectory=/opt/prometheus_postgres_exporter
|
|
User=postgres
|
|
Group=postgres
|
|
Environment="DATA_SOURCE_NAME=user=postgres host=/run/postgresql/ sslmode=disable"
|
|
Environment="PG_EXPORTER_EXTEND_QUERY_PATH=/opt/prometheus_postgres_exporter/queries.yaml"
|
|
ExecStart=/opt/prometheus_postgres_exporter/postgres_exporter
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|