Browse Source

add fluent plugin for mysql status

master
Markus Bergholz 1 year ago
parent
commit
8ba96b01ca
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      docker/fluentd/Dockerfile

+ 3
- 1
docker/fluentd/Dockerfile View File

@ -1,12 +1,14 @@
FROM ubuntu:18.10
RUN apt update && apt upgrade -y && \
apt install build-essential ruby ruby-dev -y && \
apt install build-essential ruby ruby-dev -y libmariadb-dev libmariadb3 git zlib1g-dev libssl-dev && \
apt-get clean
RUN gem install fluentd --no-ri --no-rdoc
RUN gem install fluent-plugin-cloudwatch-logs
RUN gem install fluent-plugin-ufw
RUN git clone https://github.com/markuman/fluent-plugin-mysql-status; cd fluent-plugin-mysql-status; gem build fluent-plugin-mysql-status.gemspec; gem install *.gem
RUN fluentd --setup ./fluent
CMD fluentd -c ./fluent/fluent.conf

Loading…
Cancel
Save