optimize fluentd

This commit is contained in:
Pim Kunis 2023-08-07 22:46:53 +02:00
parent 1a745bfa22
commit a7872afdd8
4 changed files with 14 additions and 6 deletions

View file

@ -1,6 +1,7 @@
data_directory_base: /mnt/data
git_ssh_port: 56287
elasticsearch_port: 14653
fluent_forward_port: 24224
concourse_public_key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBSVLcr617iJt+hqLFSsOQy1JeueLIAj1eRfuI+KeZAu pim@x260"
nfs_shares:

View file

@ -103,7 +103,7 @@ services:
fluentd:
image: git.kun.is/pim/fluentd:1.0.1
ports:
- 24224:24224
- {{ fluent_forward_port }}:24224
configs:
- source: fluentconf
target: /fluentd/etc/fluent.conf

View file

@ -2,12 +2,18 @@
apiVersion: 1
datasources:
- name: Elasticsearch
- name: cpu
type: elasticsearch
access: proxy
url: http://maestro.dmz:14653
jsonData:
# index: '[metrics-]YYYY.MM.DD'
interval: Daily
index: 'fluentd.cpu'
timeField: '@timestamp'
- name: memory
type: elasticsearch
access: proxy
url: http://maestro.dmz:14653
jsonData:
index: 'fluentd.memory'
timeField: '@timestamp'

View file

@ -3,14 +3,15 @@
# This is used by log forwarding and the fluent-cat command
<source>
@type forward
port 24224
port {{ fluent_forward_port }}
</source>
<match cool.testje>
<match *>
@type elasticsearch
host maestro.dmz
port {{ elasticsearch_port }}
include_timestamp true
index_name fluentd.${tag}
</match>
<system>