Cap monitoring container logs at 3 x 10 MB (#11)
seat-back-trivia/pipeline/head This commit looks good
seat-back-trivia/pipeline/head This commit looks good
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
adb8d5fab1
commit
82a8380b48
@@ -6,8 +6,14 @@
|
|||||||
# The droplet has 512 MB of RAM, so every container has a hard memory cap.
|
# The droplet has 512 MB of RAM, so every container has a hard memory cap.
|
||||||
name: monitoring
|
name: monitoring
|
||||||
|
|
||||||
|
# Disk is tight, so container logs are capped at 3 x 10 MB each.
|
||||||
|
x-logging: &logging
|
||||||
|
driver: json-file
|
||||||
|
options: {max-size: 10m, max-file: "3"}
|
||||||
|
|
||||||
services:
|
services:
|
||||||
prometheus:
|
prometheus:
|
||||||
|
logging: *logging
|
||||||
image: prom/prometheus:${PROMETHEUS_TAG:?choose a release}
|
image: prom/prometheus:${PROMETHEUS_TAG:?choose a release}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command:
|
command:
|
||||||
@@ -23,6 +29,7 @@ services:
|
|||||||
depends_on: [node-exporter, blackbox-exporter]
|
depends_on: [node-exporter, blackbox-exporter]
|
||||||
|
|
||||||
grafana:
|
grafana:
|
||||||
|
logging: *logging
|
||||||
image: grafana/grafana:${GRAFANA_TAG:?choose a release}
|
image: grafana/grafana:${GRAFANA_TAG:?choose a release}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
@@ -50,6 +57,7 @@ services:
|
|||||||
depends_on: [prometheus]
|
depends_on: [prometheus]
|
||||||
|
|
||||||
node-exporter:
|
node-exporter:
|
||||||
|
logging: *logging
|
||||||
image: quay.io/prometheus/node-exporter:${NODE_EXPORTER_TAG:?choose a release}
|
image: quay.io/prometheus/node-exporter:${NODE_EXPORTER_TAG:?choose a release}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
pid: host
|
pid: host
|
||||||
@@ -70,6 +78,7 @@ services:
|
|||||||
networks: [monitoring]
|
networks: [monitoring]
|
||||||
|
|
||||||
blackbox-exporter:
|
blackbox-exporter:
|
||||||
|
logging: *logging
|
||||||
image: quay.io/prometheus/blackbox-exporter:${BLACKBOX_TAG:?choose a release}
|
image: quay.io/prometheus/blackbox-exporter:${BLACKBOX_TAG:?choose a release}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command: ["--config.file=/config/blackbox.yml"]
|
command: ["--config.file=/config/blackbox.yml"]
|
||||||
|
|||||||
Reference in New Issue
Block a user