- Adding Prometheus and grafana services in development

- Adding Prometheus metrics to the business events
- Ensure asynchronous behaviour of crewai specialists.
- Adapt Business events to working in mixed synchronous / asynchronous contexts
- Extend business events with specialist information
- Started adding a grafana dashboard (TBC)
This commit is contained in:
Josako
2025-03-24 16:39:22 +01:00
parent 238bdb58f4
commit b6ee7182de
25 changed files with 1337 additions and 83 deletions

View File

@@ -80,6 +80,8 @@ services:
- linux/arm64
ports:
- 5001:5001
expose:
- 8000
environment:
<<: *common-variables
COMPONENT_NAME: eveai_app
@@ -115,6 +117,8 @@ services:
platforms:
- linux/amd64
- linux/arm64
expose:
- 8000
environment:
<<: *common-variables
COMPONENT_NAME: eveai_workers
@@ -177,6 +181,8 @@ services:
platforms:
- linux/amd64
- linux/arm64
expose:
- 8000
environment:
<<: *common-variables
COMPONENT_NAME: eveai_chat_workers
@@ -205,6 +211,8 @@ services:
- linux/arm64
ports:
- 5003:5003
expose:
- 8000
environment:
<<: *common-variables
COMPONENT_NAME: eveai_api
@@ -266,6 +274,8 @@ services:
platforms:
- linux/amd64
- linux/arm64
expose:
- 8000
environment:
<<: *common-variables
COMPONENT_NAME: eveai_entitlements
@@ -361,6 +371,42 @@ services:
networks:
- eveai-network
prometheus:
image: prom/prometheus:latest
container_name: prometheus
ports:
- "9090:9090"
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- ./prometheus/data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/etc/prometheus/console_libraries'
- '--web.console.templates=/etc/prometheus/consoles'
- '--web.enable-lifecycle'
restart: unless-stopped
networks:
- eveai-network
grafana:
image: grafana/grafana:latest
container_name: grafana
ports:
- "3000:3000"
volumes:
- ./grafana/provisioning:/etc/grafana/provisioning
- ./grafana/data:/var/lib/grafana
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_USERS_ALLOW_SIGN_UP=false
restart: unless-stopped
depends_on:
- prometheus
networks:
- eveai-network
networks:
eveai-network:
driver: bridge