setup for loki
	
		
			
	
		
	
	
		
			
				
	
				ci/woodpecker/push/woodpecker Pipeline failed
				
					Details
				
			
		
	
				
					
				
			
				
	
				ci/woodpecker/push/woodpecker Pipeline failed
				
					Details
				
			
		
	This commit is contained in:
		
						commit
						fc4b443431
					
				| 
						 | 
				
			
			@ -3,4 +3,5 @@ USER root
 | 
			
		|||
COPY fluent.conf /fluentd/etc/ 
 | 
			
		||||
RUN chown -R fluent:fluent /fluentd && chmod -R 700 /fluentd/etc && \
 | 
			
		||||
    gem install fluent-plugin-grafana-loki
 | 
			
		||||
 | 
			
		||||
USER fluent
 | 
			
		||||
| 
						 | 
				
			
			@ -1,17 +1,18 @@
 | 
			
		|||
<source>
 | 
			
		||||
  @type forward  
 | 
			
		||||
  @type forward
 | 
			
		||||
  port 24224
 | 
			
		||||
</source>
 | 
			
		||||
<match **>  
 | 
			
		||||
  @type copy 
 | 
			
		||||
 | 
			
		||||
<match **>
 | 
			
		||||
  @type copy
 | 
			
		||||
  <store>
 | 
			
		||||
    @type gelf
 | 
			
		||||
    host graylog_graylog
 | 
			
		||||
    port 12201  
 | 
			
		||||
    @type loki
 | 
			
		||||
    url "https://loki.nixc.us/loki/api/v1/push"
 | 
			
		||||
    extra_labels {"job": "fluentd"}
 | 
			
		||||
  </store>
 | 
			
		||||
  <store>
 | 
			
		||||
    @type forward
 | 
			
		||||
    host fluentd_fluentd
 | 
			
		||||
    port 24224  
 | 
			
		||||
    port 24224
 | 
			
		||||
  </store>
 | 
			
		||||
</match>
 | 
			
		||||
</match>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -7,7 +7,7 @@ services:
 | 
			
		|||
    image: git.nixc.us/nixius/fluentd-ingest:production
 | 
			
		||||
    ports:
 | 
			
		||||
      - target: 24224
 | 
			
		||||
        published: 24224
 | 
			
		||||
        published: 24225
 | 
			
		||||
        protocol: tcp
 | 
			
		||||
        mode: host
 | 
			
		||||
    networks:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue