- 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

30
scripts/reload-prometheus.sh Executable file
View File

@@ -0,0 +1,30 @@
#!/bin/bash
# Check if the service name is provided
if [ -z "$1" ]; then
echo "Usage: $0 <service_name> (usually 'prometheus')"
exit 1
fi
SERVICE_NAME=$1
# Get the container ID of the service
CONTAINER_ID=$(docker-compose ps -q $SERVICE_NAME)
# Check if the container ID is found
if [ -z "$CONTAINER_ID" ]; then
echo "Service $SERVICE_NAME not found or not running."
exit 1
fi
# Reload Prometheus configuration
echo "Reloading Prometheus configuration..."
curl -X POST http://localhost:9090/-/reload
# Output the result
if [ $? -eq 0 ]; then
echo "Prometheus configuration reloaded successfully."
else
echo "Failed to reload Prometheus configuration."
exit 1
fi