EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit e936b230 authored by Karl Grube's avatar Karl Grube
Browse files

working on federator

parent e503aed8
No related branches found
No related tags found
No related merge requests found
......@@ -5,4 +5,26 @@ global:
scrape_configs:
scrape_configs:
{% for target in prometheus_federations %}
- job_name: {{target.name}}
{% if target.internal_ca == true | default(false) %}
scheme: https
tls_config:
ca_file: '/etc/ssl/prometheus_client/root.ca.crt'
cert_file: '/etc/ssl/prometheus_client/{{fqdn}}.crt'
key_file: '/etc/ssl/prometheus_client/{{fqdn}}.key'
{% elseif target.path is search ('https')%}
scheme: https
{% else %}
scheme: http
{% endif %}
honor_labels: true
metrics_path: '/federate'
{{target.params|to_nice_yaml}}
static_configs:
- targets:
{% for server in target.servers %}
- {{server|regex_replace('htt.*:','')}}:{% if target.port is defined %}{{target.port}}{% else %}{% if target.path is search ('https') %}443{% else %}80{% endif %}{% endif %}
{% endfor %}
{% 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