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

Support more strategies in side car

parent b2b1fa03
max_interval: 60
interval: 60
strategy: "event-rate"
......@@ -28,11 +28,11 @@
- 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 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%} --max_interval={{ max_interval }}"
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%} --interval={{ interval }} --strategy={{ strategy }}"
state: started # ensure that is running
pull: yes
auto_remove: yes
# auto_remove: yes
force_kill: yes # avoid lag between rm and restart
async: 300
poll: 0
......
max_interval: 60
interval: 60
strategy: "auto"
......@@ -28,7 +28,7 @@
- docker_container:
name: "{{ pipeline_id }}_redis_sidecar"
image: "{{ docker_registry }}:{{ docker_registry_port }}/katcp2redis_sidecar"
command: "python katcp_monitor/redis_exporter.py --host {{ katcp_host }} --port {{ katcp_port }} --db-host={{ redis_storage }} --db-port={{ redis_port }} --db=5 --measurement={{ 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%} --max_interval={{ max_interval }}"
command: "python katcp_monitor/redis_exporter.py --host {{ katcp_host }} --port {{ katcp_port }} --db-host={{ redis_storage }} --db-port={{ redis_port }} --db=5 --measurement={{ 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%} --interval={{ interval }} --strategy={{ strategy }}"
state: started # ensure that is running
pull: yes
# auto_remove: 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