-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add monitoring and logging support with Prometheus, Grafana, Lo…
…ki, and Fluentd - Updated .pre-commit-config.yaml to exclude new Dockerfile path - Added various PHONY targets to Makefile for clearer command definitions - Updated compose.yml to include Prometheus, Fluentd, Loki, and Grafana services - Set up Dockerfile for Fluentd and its configuration - Created Grafana dashboards and provisioning files - Added Loki and Prometheus configurations
- Loading branch information
Showing
11 changed files
with
337 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM fluent/fluentd:edge-debian | ||
|
||
USER root | ||
|
||
RUN apt-get update && apt-get install -y netcat-openbsd | ||
RUN gem install fluent-plugin-grafana-loki | ||
|
||
USER fluent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<source> | ||
@type forward | ||
port 24224 | ||
</source> | ||
|
||
<match **> | ||
@type loki | ||
url http://loki:3100 | ||
# url http://loki:3100/loki/api/v1/push | ||
# insecure_tls true | ||
# tenant ${$.kubernetes.labels.tenant} | ||
|
||
extra_labels {"env":"dev"} | ||
# extract_kubernetes_labels true | ||
# remove_keys kubernetes | ||
<label> | ||
# worker fluentd_worker | ||
# container $.kubernetes.container | ||
</label> | ||
|
||
<buffer> | ||
chunk_limit_size 1m | ||
flush_interval 10s | ||
flush_at_shutdown true | ||
</buffer> | ||
</match> | ||
|
||
<label @FLUENT_LOG> | ||
<match **> | ||
@type stdout | ||
</match> | ||
</label> |
Oops, something went wrong.