Commit fb67a167 authored by Tobias Winchen's avatar Tobias Winchen
Browse files

Fix exclusion of sensors in influx sidecar

parent 5318a432
......@@ -127,7 +127,6 @@
pipeline_id: "{{ container_name }}"
katcp_host: "{{ inventory_hostname }}"
katcp_port: "{{ bind_port }}"
exclude_sensors: "{% if influx_exclude_sensors is defined and influx_exclude_sensors%} {{ influx_exclude_sensors }} {% endif %}"
when: launch_influx_sidecar
tags:
- always
......
......@@ -28,7 +28,7 @@
- docker_container:
name: "{{ pipeline_id }}_influx_sidecar"
image: "{{ docker_registry }}:{{ docker_registry_port }}/katcp2influx_sidecar"
command: "python katcp_monitor/influxdb_exporter.py --host {{ katcp_host }} --port {{ katcp_port }} --db-host={{ influx_host }} --db-port {{ influxdb_port }} --idb-db=monitor --measurement={{ measurement }} --idb-tags pipeline_id={{ pipeline_id }} {% if exclude_sensors is defined and exclude_sensors %}--exclude_sensors {{ exclude_sensors | join(' ')}}{%endif%}{% if include_sensors is defined and include_sensors %}--include_sensors {{ include_sensors | join(' ')}}{%endif%}"
command: "python katcp_monitor/influxdb_exporter.py --host {{ katcp_host }} --port {{ katcp_port }} --db-host={{ influx_host }} --db-port {{ influxdb_port }} --idb-db=monitor --measurement={{ measurement }} --idb-tags pipeline_id={{ pipeline_id }} {% if influx_exclude_sensors is defined and influx_exclude_sensors %}--exclude_sensors {{ influx_exclude_sensors | join(' ')}}{%endif%}{% if include_sensors is defined and include_sensors %}--include_sensors {{ include_sensors | join(' ')}}{%endif%}"
state: started # ensure that is running
pull: yes
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment