- Prometheus metrics go via pushgateway, as different worker processes might have different registries that are not picked up by Prometheus

This commit is contained in:
Josako
2025-03-25 15:48:00 +01:00
parent b6ee7182de
commit 4ea16521e2
9 changed files with 191 additions and 123 deletions

View File

@@ -39,6 +39,8 @@ x-common-variables: &common-variables
LANGCHAIN_API_KEY: "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"
SERPER_API_KEY: "e4c553856d0e6b5a171ec5e6b69d874285b9badf"
CREWAI_STORAGE_DIR: "/app/crewai_storage"
PUSH_GATEWAY_HOST: "pushgateway"
PUSH_GATEWAY_PORT: "9091"
services:
nginx:
@@ -389,6 +391,14 @@ services:
networks:
- eveai-network
pushgateway:
image: prom/pushgateway:latest
restart: unless-stopped
ports:
- "9091:9091"
networks:
- eveai-network
grafana:
image: grafana/grafana:latest
container_name: grafana

View File

@@ -32,3 +32,8 @@ scrape_configs:
static_configs:
- targets: ['eveai_entitlements:8000']
scrape_interval: 10s
- job_name: 'pushgateway'
honor_labels: true
static_configs:
- targets: [ 'pushgateway:9091' ]