Skip to content

Commit

Permalink
Merge pull request #4 from Diesel-Net/development
Browse files Browse the repository at this point in the history
Promotion
  • Loading branch information
tomdaley92 authored Dec 22, 2023
2 parents ff7ad41 + 9d1485a commit 003208d
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 4 deletions.
26 changes: 25 additions & 1 deletion .drone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,26 @@ clone:
depth: 1

steps:
- name: docker build & push

- name: docker build (${DRONE_BRANCH}-latest)
image: plugins/docker
settings:
mirror: dockerhub.nexus.diesel.net
registry: docker.nexus.diesel.net
username:
from_secret: nexus_user
password:
from_secret: nexus_pass
repo: docker.nexus.diesel.net/fluentd
tags:
- ${DRONE_BRANCH}-latest
when:
event:
- push



- name: docker build (${DRONE_TAG})
image: plugins/docker
settings:
mirror: dockerhub.nexus.diesel.net
Expand All @@ -22,11 +41,16 @@ steps:
repo: docker.nexus.diesel.net/fluentd
tags:
- latest
- ${DRONE_TAG}
when:
event:
- tag

trigger:
branch:
- development
- stable
event:
- push
- tag
...
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM fluent/fluentd:v1.14.6-debian-1.0
FROM fluent/fluentd:v1.16.3-debian-1.0
USER root
RUN ["gem", "install", "fluent-plugin-grafana-loki"]
RUN ["gem", "install", "fluent-plugin-rewrite-tag-filter"]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
Log Collector on Docker Swarm

- [Fluentd - Grafana Loki Docs](https://grafana.com/docs/loki/latest/clients/fluentd/)
- [Fluentd Congiguration](https://docs.fluentd.org/configuration)
- [Fluentd Configuration](https://docs.fluentd.org/configuration)
- When this IaC was written, the YAML config file format did not exist. Perhaps we convert to that config file format in the future?
4 changes: 3 additions & 1 deletion templates/loki.conf
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@
namespace
service_name
container_name
container_hostname
container_id
stream
</label>

Expand All @@ -94,7 +96,7 @@
path /fluentd/log/dlog/loki-buffer
flush_thread_count 8
flush_mode interval
flush_interval 1s
flush_interval 3s
retry_timeout 72h
overflow_action throw_exception
</buffer>
Expand Down

0 comments on commit 003208d

Please sign in to comment.