CROP
ProjectsPDF Parser

Grafana Service for Event Sourcing

Separate Grafana service for monitoring and visualizing Event Sourcing data.

Grafana Service for Event Sourcing

Separate Grafana service for monitoring and visualizing Event Sourcing data.

🚀 Deploy to GCP Cloud Run

Quick Start

# 1. Configure variables in .env.deploy
WEAVIATE_SERVICE_URL=http://your-weaviate-service:8002
GRAFANA_ADMIN_PASSWORD=your-secure-password
GRAFANA_ROOT_URL=https://grafana-service-xxxxx.run.app

# 2. Deploy
cd grafana_service
gcloud builds submit --config cloudbuild.yaml \
  --substitutions=_WEAVIATE_SERVICE_URL=$WEAVIATE_SERVICE_URL,_GRAFANA_ADMIN_PASSWORD=$GRAFANA_ADMIN_PASSWORD,_GRAFANA_ROOT_URL=$GRAFANA_ROOT_URL

Using Script

./deploy_grafana.sh

📊 Features

  • ✅ Ready-to-use dashboard for Event Sourcing
  • ✅ Automatic datasource configuration
  • ✅ Connection to Weaviate Service API
  • ✅ Event and statistics visualization
  • ✅ Alerts and monitoring

🔧 Configuration

Environment Variables

  • WEAVIATE_SERVICE_URL - Weaviate Service API URL
  • GRAFANA_ADMIN_PASSWORD - Administrator password
  • GRAFANA_ROOT_URL - Public Grafana URL (for correct links)

Datasources

Automatically configured:

  • Weaviate API (REST API datasource)
  • MongoDB Atlas (if direct access is needed)

📋 Dashboard

Ready-to-use dashboard includes:

  • Total Events (statistics)
  • Events by Type (chart)
  • Events Timeline (time series)
  • Recent Events (table)

🔐 Security

  • Admin password configured via environment variable
  • Cloud Run has authentication (--allow-unauthenticated for public access)
  • Recommended to use IAM for access control

On this page