diff --git a/docs/sources/getting-started/labels.md b/docs/sources/getting-started/labels.md index 48fcee4aa69a2..b5215c5d451b5 100644 --- a/docs/sources/getting-started/labels.md +++ b/docs/sources/getting-started/labels.md @@ -29,6 +29,14 @@ scrape_configs: labels: job: syslog __path__: /var/log/syslog + - job_name: apache + pipeline_stages: + static_configs: + - targets: + - localhost + labels: + job: apache + __path__: /var/log/apache.log ``` This config will tail one file and assign one label: `job=syslog`. You could query it like this: