The jinja template does NOT grab scrape timeout and interval in the federate config section
``` # federate jobs {%- if federate %} {%- for job in federate %} - job_name: '{{ job['job_name'] }}' honor_labels: true {%- if job.get('metrics_path') %} metrics_path: {{ job['metrics_path'] }} {%- else %} metrics_path: /federate {%- endif %} {%- if job.get('scheme') %} scheme: {{ job['scheme'] }} {%- endif %} params: {%- for param, values in job['params'].items() %} '{{ param }}': {%- for value in values %} - '{{ value }}' {%- endfor %} {%- endfor %} static_configs: - targets: {%- for target in job['targets'] %} - {{ target }} {%- endfor %} labels: {%- if job.get('label') %} group: '{{job['label']}}' {%- else %} group: 'promoagents-federate' {%- endif %} {%- endfor %} {%- endif %} ```
The jinja template does NOT grab scrape timeout and interval in the federate config section
``` 'metrics_ path') %} ].items( ) %} federate'
# federate jobs
{%- if federate %}
{%- for job in federate %}
- job_name: '{{ job['job_name'] }}'
honor_labels: true
{%- if job.get(
metrics_path: {{ job['metrics_path'] }}
{%- else %}
metrics_path: /federate
{%- endif %}
{%- if job.get('scheme') %}
scheme: {{ job['scheme'] }}
{%- endif %}
params:
{%- for param, values in job['params'
'{{ param }}':
{%- for value in values %}
- '{{ value }}'
{%- endfor %}
{%- endfor %}
static_configs:
- targets:
{%- for target in job['targets'] %}
- {{ target }}
{%- endfor %}
labels:
{%- if job.get('label') %}
group: '{{job['label']}}'
{%- else %}
group: 'promoagents-
{%- endif %}
{%- endfor %}
{%- endif %}
```