EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit 72210b3c authored by Nicolas Baudoin's avatar Nicolas Baudoin
Browse files

Added a conditional relabeling of origin for eotdl

parent 83e8df74
No related branches found
No related tags found
No related merge requests found
......@@ -56,5 +56,10 @@ scrape_configs:
- targets:
{% for server in target.servers %}
- '{{server|regex_replace('htt.*://','')}}:{% if target.port is defined %}{{target.port}}{% else %}{% if server is search ('https') %}443{% elif target.internal_ca is defined and target.internal_ca == true %}443{% else %}80{% endif %}{% endif %}'
{% endfor %}
{% endfor %}
{% if target.relabeling is defined and target.relabeling %}
relabel_configs:
- target_label: origin
replacement: '{{target.name}}' # Static addition of the 'origin' label
{% endif %}
{% endfor %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment