mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-24 21:03:27 +00:00
ad51f0b088
Include the [Influxdb exporter](https://github.com/prometheus/influxdb_exporter) role. Signed-off-by: dobbi84 <davide.obbi@e4company.com>
31 lines
1 KiB
Django/Jinja
31 lines
1 KiB
Django/Jinja
{{ 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
|