optimize fluentd
This commit is contained in:
parent
1a745bfa22
commit
a7872afdd8
4 changed files with 14 additions and 6 deletions
|
@ -1,6 +1,7 @@
|
||||||
data_directory_base: /mnt/data
|
data_directory_base: /mnt/data
|
||||||
git_ssh_port: 56287
|
git_ssh_port: 56287
|
||||||
elasticsearch_port: 14653
|
elasticsearch_port: 14653
|
||||||
|
fluent_forward_port: 24224
|
||||||
concourse_public_key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBSVLcr617iJt+hqLFSsOQy1JeueLIAj1eRfuI+KeZAu pim@x260"
|
concourse_public_key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBSVLcr617iJt+hqLFSsOQy1JeueLIAj1eRfuI+KeZAu pim@x260"
|
||||||
|
|
||||||
nfs_shares:
|
nfs_shares:
|
||||||
|
|
|
@ -103,7 +103,7 @@ services:
|
||||||
fluentd:
|
fluentd:
|
||||||
image: git.kun.is/pim/fluentd:1.0.1
|
image: git.kun.is/pim/fluentd:1.0.1
|
||||||
ports:
|
ports:
|
||||||
- 24224:24224
|
- {{ fluent_forward_port }}:24224
|
||||||
configs:
|
configs:
|
||||||
- source: fluentconf
|
- source: fluentconf
|
||||||
target: /fluentd/etc/fluent.conf
|
target: /fluentd/etc/fluent.conf
|
||||||
|
|
|
@ -2,12 +2,18 @@
|
||||||
apiVersion: 1
|
apiVersion: 1
|
||||||
|
|
||||||
datasources:
|
datasources:
|
||||||
- name: Elasticsearch
|
- name: cpu
|
||||||
type: elasticsearch
|
type: elasticsearch
|
||||||
access: proxy
|
access: proxy
|
||||||
url: http://maestro.dmz:14653
|
url: http://maestro.dmz:14653
|
||||||
jsonData:
|
jsonData:
|
||||||
# index: '[metrics-]YYYY.MM.DD'
|
index: 'fluentd.cpu'
|
||||||
interval: Daily
|
|
||||||
timeField: '@timestamp'
|
timeField: '@timestamp'
|
||||||
|
|
||||||
|
- name: memory
|
||||||
|
type: elasticsearch
|
||||||
|
access: proxy
|
||||||
|
url: http://maestro.dmz:14653
|
||||||
|
jsonData:
|
||||||
|
index: 'fluentd.memory'
|
||||||
|
timeField: '@timestamp'
|
||||||
|
|
|
@ -3,14 +3,15 @@
|
||||||
# This is used by log forwarding and the fluent-cat command
|
# This is used by log forwarding and the fluent-cat command
|
||||||
<source>
|
<source>
|
||||||
@type forward
|
@type forward
|
||||||
port 24224
|
port {{ fluent_forward_port }}
|
||||||
</source>
|
</source>
|
||||||
|
|
||||||
<match cool.testje>
|
<match *>
|
||||||
@type elasticsearch
|
@type elasticsearch
|
||||||
host maestro.dmz
|
host maestro.dmz
|
||||||
port {{ elasticsearch_port }}
|
port {{ elasticsearch_port }}
|
||||||
include_timestamp true
|
include_timestamp true
|
||||||
|
index_name fluentd.${tag}
|
||||||
</match>
|
</match>
|
||||||
|
|
||||||
<system>
|
<system>
|
||||||
|
|
Reference in a new issue