mirror of
https://github.com/prometheus-community/ansible
synced 2025-02-16 20:58:26 +00:00
32 lines
1 KiB
Text
32 lines
1 KiB
Text
|
{{ ansible_managed | comment }}
|
||
|
|
||
|
[Unit]
|
||
|
Description=Influxdb to Prometheus Exporter Service
|
||
|
After=network-online.target
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
User={{ influxdb_exporter_system_user }}
|
||
|
Group={{ influxdb_exporter_system_group }}
|
||
|
ExecStart={{ influxdb_exporter_binary_install_dir }}/influxdb_exporter \
|
||
|
'--web.listen-address={{ influxdb_exporter_web_listen_address }}' \
|
||
|
'--udp.bind-address={{ influxdb_exporter_udp_bind_address }}' \
|
||
|
'--web.telemetry-path={{ influxdb_exporter_web_telemetry_path }}' \
|
||
|
'--web.exporter-telemetry-path={{ influxdb_exporter_exporter_web_telemetry_path }}' \
|
||
|
'--influxdb.sample-expiry={{ influxdb_exporter_influxdb_sample_expiry }}' \
|
||
|
'--log.level={{ influxdb_exporter_log_level }}' \
|
||
|
'--log.format={{ influxdb_exporter_log_format }}' \
|
||
|
{% if influxdb_exporter_export_timestamps %}
|
||
|
'--timestamps'
|
||
|
{% else %}
|
||
|
'--no-timestamps'
|
||
|
{% endif %}
|
||
|
|
||
|
SyslogIdentifier=influxdb_exporter
|
||
|
Restart=always
|
||
|
RestartSec=1
|
||
|
StartLimitInterval=0
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|