server: log_level: warn http_listen_port: 0 grpc_listen_port: 0 clients: - url: https://loki.callpipe.com/loki/api/v1/push external_labels: hostname: "{{ inventory_hostname }}" tls_config: ca_file: /etc/step/certs/root_ca.crt cert_file: /etc/step/certs/callpipe.crt key_file: /etc/step/certs/callpipe.key scrape_configs: - job_name: journald journal: labels: job: systemd-label relabel_configs: - source_labels: ['__journal__systemd_unit'] target_label: 'unit' {% if 'jobs' in logs %} {% for job_name, path in logs.jobs.items() %} - job_name: {{ job_name }} static_configs: - targets: - localhost labels: job: {{ job_name }} __path__: {{ path }} {% endfor %} {% endif %}