Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MPIfR-BDG
edd_provisioning
Commits
fb67a167
Commit
fb67a167
authored
Sep 28, 2021
by
Tobias Winchen
Browse files
Fix exclusion of sensors in influx sidecar
parent
5318a432
Changes
2
Hide whitespace changes
Inline
Side-by-side
roles/common/tasks/launch_tasks.yml
View file @
fb67a167
...
...
@@ -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
...
...
roles/influx_sidecar/tasks/main.yml
View file @
fb67a167
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment