Update promtail/rootfs/etc/promtail/default-scrape-config.yaml
This commit is contained in:
		@@ -1,9 +1,9 @@
 | 
			
		||||
---
 | 
			
		||||
job_name: home_assistant_logs
 | 
			
		||||
    static_configs:
 | 
			
		||||
      - targets:
 | 
			
		||||
          - localhost  # Target for the logs, can be anything since it's just a label
 | 
			
		||||
        labels:
 | 
			
		||||
          job: home_assistant  # Job label for your logs in Loki
 | 
			
		||||
          host: home_assistant  # Optional label for host, useful if running multiple Home Assistant instances
 | 
			
		||||
          __path__: /config/home-assistant.log  # Path to Home Assistant log file
 | 
			
		||||
- job_name: home_assistant_logs
 | 
			
		||||
  static_configs:
 | 
			
		||||
    - targets:
 | 
			
		||||
        - localhost  # Target for the logs, can be anything since it's just a label
 | 
			
		||||
      labels:
 | 
			
		||||
        job: home_assistant  # Job label for your logs in Loki
 | 
			
		||||
        host: home_assistant  # Optional label for host, useful if running multiple Home Assistant instances
 | 
			
		||||
        __path__: /config/home-assistant.log  # Path to Home Assistant log file
 | 
			
		||||
		Reference in New Issue
	
	Block a user