Harden production workflows and agent admission
This commit is contained in:
@@ -7,7 +7,7 @@ services:
|
||||
server:
|
||||
environment:
|
||||
MONLET_STALE_AFTER_SEC: "20"
|
||||
MONLET_DEAD_AFTER_SEC: "40"
|
||||
MONLET_DEAD_AFTER_SEC: "30"
|
||||
MONLET_DETECTOR_TICK_SEC: "5"
|
||||
MONLET_EVENTS_RETENTION_MONTHS: "1"
|
||||
MONLET_OUTBOX_RETENTION_MAX_ROWS: "1000"
|
||||
@@ -28,6 +28,7 @@ services:
|
||||
|
||||
agent-mixed:
|
||||
image: monlet-showcase-agent
|
||||
hostname: agent-01
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: deploy/docker/agent.Dockerfile
|
||||
@@ -36,6 +37,7 @@ services:
|
||||
volumes:
|
||||
- ./showcase/agents/mixed.toml:/etc/monlet/agent.toml:ro
|
||||
- ./showcase/checks:/opt/monlet/checks:ro
|
||||
- mixed_agent_state:/var/lib/monlet-agent
|
||||
depends_on:
|
||||
server:
|
||||
condition: service_healthy
|
||||
@@ -44,11 +46,13 @@ services:
|
||||
|
||||
agent-resolve:
|
||||
image: monlet-showcase-agent
|
||||
hostname: agent-02
|
||||
environment:
|
||||
MONLET_CONFIG: /etc/monlet/agent.toml
|
||||
volumes:
|
||||
- ./showcase/agents/resolve.toml:/etc/monlet/agent.toml:ro
|
||||
- ./showcase/checks:/opt/monlet/checks:ro
|
||||
- resolve_agent_state:/var/lib/monlet-agent
|
||||
- resolve_state:/state
|
||||
depends_on:
|
||||
server:
|
||||
@@ -58,11 +62,13 @@ services:
|
||||
|
||||
agent-flap:
|
||||
image: monlet-showcase-agent
|
||||
hostname: agent-03
|
||||
environment:
|
||||
MONLET_CONFIG: /etc/monlet/agent.toml
|
||||
volumes:
|
||||
- ./showcase/agents/flap.toml:/etc/monlet/agent.toml:ro
|
||||
- ./showcase/checks:/opt/monlet/checks:ro
|
||||
- flap_agent_state:/var/lib/monlet-agent
|
||||
depends_on:
|
||||
server:
|
||||
condition: service_healthy
|
||||
@@ -71,11 +77,13 @@ services:
|
||||
|
||||
agent-timeout:
|
||||
image: monlet-showcase-agent
|
||||
hostname: agent-04
|
||||
environment:
|
||||
MONLET_CONFIG: /etc/monlet/agent.toml
|
||||
volumes:
|
||||
- ./showcase/agents/timeout.toml:/etc/monlet/agent.toml:ro
|
||||
- ./showcase/checks:/opt/monlet/checks:ro
|
||||
- timeout_agent_state:/var/lib/monlet-agent
|
||||
depends_on:
|
||||
server:
|
||||
condition: service_healthy
|
||||
@@ -84,11 +92,13 @@ services:
|
||||
|
||||
agent-prometheus-owned:
|
||||
image: monlet-showcase-agent
|
||||
hostname: agent-05
|
||||
environment:
|
||||
MONLET_CONFIG: /etc/monlet/agent.toml
|
||||
volumes:
|
||||
- ./showcase/agents/prometheus_owned.toml:/etc/monlet/agent.toml:ro
|
||||
- ./showcase/checks:/opt/monlet/checks:ro
|
||||
- prometheus_owned_agent_state:/var/lib/monlet-agent
|
||||
depends_on:
|
||||
server:
|
||||
condition: service_healthy
|
||||
@@ -97,11 +107,13 @@ services:
|
||||
|
||||
agent-stale:
|
||||
image: monlet-showcase-agent
|
||||
hostname: agent-07
|
||||
environment:
|
||||
MONLET_CONFIG: /etc/monlet/agent.toml
|
||||
volumes:
|
||||
- ./showcase/agents/stale.toml:/etc/monlet/agent.toml:ro
|
||||
- ./showcase/checks:/opt/monlet/checks:ro
|
||||
- stale_agent_state:/var/lib/monlet-agent
|
||||
depends_on:
|
||||
server:
|
||||
condition: service_healthy
|
||||
@@ -110,11 +122,13 @@ services:
|
||||
|
||||
agent-dead:
|
||||
image: monlet-showcase-agent
|
||||
hostname: agent-08
|
||||
environment:
|
||||
MONLET_CONFIG: /etc/monlet/agent.toml
|
||||
volumes:
|
||||
- ./showcase/agents/dead.toml:/etc/monlet/agent.toml:ro
|
||||
- ./showcase/checks:/opt/monlet/checks:ro
|
||||
- dead_agent_state:/var/lib/monlet-agent
|
||||
depends_on:
|
||||
server:
|
||||
condition: service_healthy
|
||||
@@ -124,6 +138,7 @@ services:
|
||||
# No depends_on:server — starts in parallel so it must spool events until server is ready.
|
||||
agent-spool-replay:
|
||||
image: monlet-showcase-agent
|
||||
hostname: agent-06
|
||||
environment:
|
||||
MONLET_CONFIG: /etc/monlet/agent.toml
|
||||
volumes:
|
||||
@@ -135,5 +150,12 @@ services:
|
||||
condition: service_healthy
|
||||
|
||||
volumes:
|
||||
mixed_agent_state:
|
||||
resolve_agent_state:
|
||||
resolve_state:
|
||||
flap_agent_state:
|
||||
timeout_agent_state:
|
||||
prometheus_owned_agent_state:
|
||||
stale_agent_state:
|
||||
dead_agent_state:
|
||||
spool_replay_state:
|
||||
|
||||
Reference in New Issue
Block a user