promtail: Add more systemd-journal fields as structured metadata
This commit is contained in:
parent
59a76a526b
commit
5045dc7fde
2 changed files with 81 additions and 8 deletions
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
{%- if 'scrape_configs' not in config -%}
|
||||
{%- set tmp = config.setdefault('scrape_configs', []) -%}
|
||||
{%- for key, value in prometheus_agent.agents.promtail.scrape_jobs.items() -%}
|
||||
{%- for key, value in prometheus_agent.agents.promtail.scrape_jobs.items() if value -%}
|
||||
{%- set tmp = value.setdefault('job_name', key) -%}
|
||||
{%- set tmp = config.scrape_configs.append(value) -%}
|
||||
{%- endfor -%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue