Files
wehub-resource-sync 7a0da7932b
OSV-Scanner (Scheduled) / scan-scheduled (push) Failing after 0s
Create Release / test-gate (push) Has been cancelled
Create Release / release-gate (push) Has been cancelled
Create Release / ci-gate (push) Has been cancelled
Create Release / version-check (push) Has been cancelled
Create Release / e2e-test-gate (push) Has been cancelled
Create Release / responsive-test-gate (push) Has been cancelled
Create Release / compat-test-gate (push) Has been cancelled
Create Release / compose-integration-gate (push) Has been cancelled
Create Release / vulture-gate (push) Has been cancelled
Create Release / build (push) Has been cancelled
Create Release / provenance (push) Has been cancelled
Create Release / prerelease-docker (push) Has been cancelled
Create Release / publish-docker (push) Has been cancelled
Create Release / create-release (push) Has been cancelled
Create Release / cleanup-changelog (push) Has been cancelled
Create Release / trigger-pypi (push) Has been cancelled
Create Release / monitor-pypi (push) Has been cancelled
Create Release / Clean up orphan prerelease tags and signatures (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [research-form] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [research-metrics] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [research-workflow] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [settings-core] (push) Has been cancelled
CodeQL Advanced / Analyze (javascript-typescript) (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [history-news] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [library] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [link-analytics] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [chat-core] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [chat-lifecycle] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [error-benchmark] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [settings-pages] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) (push) Has been cancelled
Docker Tests (Consolidated) / Accessibility Tests (push) Has been cancelled
Docker Tests (Consolidated) / LLM Unit Tests (push) Has been cancelled
Docker Tests (Consolidated) / LLM Example Tests (push) Has been cancelled
Docker Tests (Consolidated) / Production Image Smoke Test (push) Has been cancelled
Docker Tests (Consolidated) / Infrastructure Tests (push) Has been cancelled
OSSF Scorecard / OSSF Security Scorecard Analysis (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [mobile] (push) Has been cancelled
Backwards Compatibility / Verify Encryption Constants (push) Has been cancelled
Backwards Compatibility / PyPI Version Compatibility (push) Has been cancelled
Backwards Compatibility / Database Migration Tests (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
Docker Tests (Consolidated) / detect-changes (push) Has been cancelled
Docker Tests (Consolidated) / Build Test Image (push) Has been cancelled
Docker Tests (Consolidated) / All Pytest Tests + Coverage (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [accessibility] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [api-crud] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [auth-login] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [auth-pages] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [auth-register] (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:08:55 +08:00

6.8 KiB

Metrics & Analytics Dashboard

This guide covers the Metrics Dashboard for monitoring research performance, costs, and usage analytics.

Table of Contents


Overview

The Metrics Dashboard provides insights into your research activity:

  • Token usage and LLM costs
  • Search performance and rate limiting
  • Research quality ratings
  • Link analytics and domain classification

Access the dashboard at: http://localhost:5000/metrics


Research Metrics

Overview Page

The main metrics page shows:

Metric Description
Total Researches Number of research sessions
Total Tokens Tokens consumed across all research
Total Cost Estimated LLM API costs
Average Duration Mean research completion time

Per-Research Metrics

Click on any research to see detailed metrics:

Timeline

View the research execution timeline:

  • Start and end times
  • Iteration progress
  • Question generation timing
  • Search execution timing

Search Metrics

Details about search operations:

  • Queries executed
  • Results retrieved
  • Search engine usage
  • Response times

All links discovered during research:

  • Source URLs
  • Domain classification
  • Relevance scores

Cost Analytics

Token Tracking

The system tracks token usage for cost estimation:

Metric Description
Input Tokens Tokens sent to LLM
Output Tokens Tokens received from LLM
Total Tokens Combined usage
Estimated Cost Based on model pricing

Cost Breakdown

View costs broken down by:

  • Model - Which LLM models were used
  • Provider - OpenAI, Anthropic, etc.
  • Time Period - Daily, weekly, monthly
  • Research - Per-research costs

Accessing Cost Analytics

  1. Navigate to MetricsCosts
  2. View summary statistics
  3. Filter by date range
  4. Export data as needed

Pricing Information

The system includes pricing data for common models:

GET /metrics/api/pricing
GET /metrics/api/pricing/<model_name>

Rate Limiting

Monitoring Rate Limits

View current rate limiting status for search engines:

  1. Navigate to MetricsRate Limiting
  2. See per-engine statistics
Column Description
Engine Search engine name
Current Wait Active wait time
Success Rate Percentage of successful requests
Total Requests Request count
Last Updated Most recent activity

Rate Limit Management

From the dashboard you can:

  • View current rate limit estimates
  • See learned optimal wait times
  • Monitor success rates

For CLI management, see CLI Tools.


Domain Classification

The system classifies domains found in research:

Category Examples
Academic arxiv.org, pubmed.gov
News bbc.com, reuters.com
Government .gov, .edu
Commercial company websites
Reference wikipedia.org

View aggregate statistics:

  • Total links discovered
  • Unique domains
  • Category distribution
  • Top domains by frequency
  1. Navigate to MetricsLinks
  2. View domain breakdown
  3. Filter by category
  4. See classification summary

Classification API

Classify domains programmatically:

POST /metrics/api/domain-classifications/classify
{
  "domains": ["example.com", "arxiv.org"]
}

Star Reviews

Rating Research Quality

Rate your research results to track quality over time:

  1. Open a completed research
  2. Click the star rating (1-5)
  3. Optionally add feedback text

Viewing Ratings

Navigate to MetricsStar Reviews to see:

  • Average rating across all research
  • Rating distribution
  • Recent ratings with feedback
  • Trends over time

Rating API

# Get ratings for a research
GET /metrics/api/ratings/<research_id>

# Submit a rating
POST /metrics/api/ratings/<research_id>
{
  "rating": 5,
  "feedback": "Excellent results"
}

API Reference

Metrics Endpoints

Endpoint Method Description
/metrics/api/metrics GET Overview metrics
/metrics/api/metrics/enhanced GET Detailed metrics
/metrics/api/metrics/research/<id> GET Per-research metrics
/metrics/api/metrics/research/<id>/timeline GET Research timeline
/metrics/api/metrics/research/<id>/search GET Search metrics
/metrics/api/metrics/research/<id>/links GET Research links

Cost Endpoints

Endpoint Method Description
/metrics/api/pricing GET Model pricing data
/metrics/api/pricing/<model> GET Specific model pricing
/metrics/api/cost-calculation POST Calculate costs
/metrics/api/research-costs/<id> GET Research cost breakdown
/metrics/api/cost-analytics GET Cost analytics summary

Rate Limiting Endpoints

Endpoint Method Description
/metrics/api/rate-limiting GET Rate limit statistics
/metrics/api/rate-limiting/current GET Current rate limits

Rating Endpoints

Endpoint Method Description
/metrics/api/ratings/<id> GET Get research rating
/metrics/api/ratings/<id> POST Submit rating
/metrics/api/star-reviews GET All ratings summary

Domain Classification Endpoints

Endpoint Method Description
/metrics/api/domain-classifications GET All classifications
/metrics/api/domain-classifications/summary GET Classification summary
/metrics/api/domain-classifications/classify POST Classify domains
/metrics/api/domain-classifications/progress GET Classification progress
/metrics/api/link-analytics GET Link analytics data

Troubleshooting

No Metrics Showing

  • Ensure you have completed at least one research
  • Check that token tracking is enabled
  • Refresh the page

Cost Estimates Incorrect

  • Verify model pricing is up to date
  • Check provider is correctly identified
  • Token counts may vary by model

Rate Limiting Data Missing

  • Run some searches to generate data
  • Check the rate limiting CLI for status

See Also