Configuration

Configuration options for the Job Metrics Dashboard

Configuration

To enable and configure the Job Metrics Dashboard in the frontend application, you need to set specific environment variables in your .env file.

Environment Variables

Enable the Plugin

Set the following variable to true to enable the Job Metrics UI components in the dashboard.

NEXT_PUBLIC_ENABLE_JOB_METRICS_PLUGIN=true

Database Connection

Provide the connection URL for the PostgreSQL database where the Go scraper is storing the metrics. This allows the dashboard to query the historical data.

# Format: postgres://user:password@host:port/database
SLURM_JOB_METRICS_DATABASE_URL="postgres://admin:securepass@localhost:5432/slurm_history"

Database Consistency:

Ensure this URL points to the same database (slurm_history) that the Go Scraper is writing to.

Scraper Configuration

The backend scraper has its own set of configuration variables (e.g., Slurm API tokens, sync intervals). Please refer to the Go Scraper Configuration section for those details.