# Additional labels to assign to the logs. There are other __meta_kubernetes_* labels based on the Kubernetes metadadata, such as the namespace the pod is (default to 2.2.1). Currently only UDP is supported, please submit a feature request if youre interested into TCP support. Screenshots, Promtail config, or terminal output Here we can see the labels from syslog (job, robot & role) as well as from relabel_config (app & host) are correctly added. E.g., You can extract many values from the above sample if required. Scraping is nothing more than the discovery of log files based on certain rules. After enough data has been read into memory, or after a timeout, it flushes the logs to Loki as one batch. # the key in the extracted data while the expression will be the value. ), Forwarding the log stream to a log storage solution. These labels can be used during relabeling. The scrape_configs contains one or more entries which are all executed for each container in each new pod running This example of config promtail based on original docker config The original design doc for labels. For all targets discovered directly from the endpoints list (those not additionally inferred The data can then be used by Promtail e.g. directly which has basic support for filtering nodes (currently by node They also offer a range of capabilities that will meet your needs. # Describes how to relabel targets to determine if they should, # Describes how to discover Kubernetes services running on the, # Describes how to use the Consul Catalog API to discover services registered with the, # Describes how to use the Consul Agent API to discover services registered with the consul agent, # Describes how to use the Docker daemon API to discover containers running on, "^(?s)(?P