try async-connect for container logging to fluentd
This commit is contained in:
@@ -45,4 +45,5 @@ services:
|
|||||||
driver: fluentd
|
driver: fluentd
|
||||||
options:
|
options:
|
||||||
fluentd-address: "logs.xai-corp.net:24224"
|
fluentd-address: "logs.xai-corp.net:24224"
|
||||||
|
fluentd-async-connect: 'true'
|
||||||
tag: dkregistry
|
tag: dkregistry
|
||||||
|
|||||||
@@ -31,4 +31,5 @@ services:
|
|||||||
driver: fluentd
|
driver: fluentd
|
||||||
options:
|
options:
|
||||||
fluentd-address: "logs.xai-corp.net:24224"
|
fluentd-address: "logs.xai-corp.net:24224"
|
||||||
|
fluentd-async-connect: 'true'
|
||||||
tag: gitea
|
tag: gitea
|
||||||
|
|||||||
@@ -47,4 +47,5 @@ services:
|
|||||||
driver: fluentd
|
driver: fluentd
|
||||||
options:
|
options:
|
||||||
fluentd-address: "logs.xai-corp.net:24224"
|
fluentd-address: "logs.xai-corp.net:24224"
|
||||||
|
fluentd-async-connect: 'true'
|
||||||
tag: letsencrypt-update
|
tag: letsencrypt-update
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ services:
|
|||||||
driver: fluentd
|
driver: fluentd
|
||||||
options:
|
options:
|
||||||
fluentd-address: "logs.xai-corp.net:24224"
|
fluentd-address: "logs.xai-corp.net:24224"
|
||||||
|
fluentd-async-connect: 'true'
|
||||||
tag: nextcloud
|
tag: nextcloud
|
||||||
|
|
||||||
collabora:
|
collabora:
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ services:
|
|||||||
- /opt/shared/logs:/fluentd/log
|
- /opt/shared/logs:/fluentd/log
|
||||||
ports:
|
ports:
|
||||||
- "24224:24224"
|
- "24224:24224"
|
||||||
|
- "24224:24224/udp"
|
||||||
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ services:
|
|||||||
driver: fluentd
|
driver: fluentd
|
||||||
options:
|
options:
|
||||||
fluentd-address: "logs.xai-corp.net:24224"
|
fluentd-address: "logs.xai-corp.net:24224"
|
||||||
|
fluentd-async-connect: 'true'
|
||||||
tag: sslproxy
|
tag: sslproxy
|
||||||
|
|
||||||
# logging:
|
# logging:
|
||||||
|
|||||||
@@ -35,4 +35,5 @@ services:
|
|||||||
driver: fluentd
|
driver: fluentd
|
||||||
options:
|
options:
|
||||||
fluentd-address: "logs.xai-corp.net:24224"
|
fluentd-address: "logs.xai-corp.net:24224"
|
||||||
|
fluentd-async-connect: 'true'
|
||||||
tag: dkui
|
tag: dkui
|
||||||
|
|||||||
@@ -81,6 +81,7 @@
|
|||||||
- user-richard
|
- user-richard
|
||||||
- rsyslog
|
- rsyslog
|
||||||
- motd
|
- motd
|
||||||
|
- vbox-guest
|
||||||
- { role: Datadog.datadog, when: ansible_architecture != 'armv7l' } #does not support armhf architecture. should switch to fluentd or logstash
|
- { role: Datadog.datadog, when: ansible_architecture != 'armv7l' } #does not support armhf architecture. should switch to fluentd or logstash
|
||||||
- { role: ddagent_source, when: ansible_architecture == 'armv7l' }
|
- { role: ddagent_source, when: ansible_architecture == 'armv7l' }
|
||||||
|
|
||||||
|
|||||||
11
roles/vbox-guest/tasks/main.yml
Normal file
11
roles/vbox-guest/tasks/main.yml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
# install virtual box guest additions on ubuntu16.04
|
||||||
|
|
||||||
|
- name: install system packages
|
||||||
|
apt:
|
||||||
|
state: present
|
||||||
|
name: "{{item}}"
|
||||||
|
update_cache: yes
|
||||||
|
with_items:
|
||||||
|
- virtualbox-guest-dkms
|
||||||
|
when: ansible_virtualization_role == "guest"
|
||||||
@@ -10,3 +10,5 @@
|
|||||||
tasks:
|
tasks:
|
||||||
- name: test connection
|
- name: test connection
|
||||||
ping:
|
ping:
|
||||||
|
|
||||||
|
- debug: var=ansible_virtualization_role
|
||||||
|
|||||||
Reference in New Issue
Block a user