4aae61297f
Analytics parity phases 2–7 (docs/plans/analytics-parity/), built on
138e706 and ported onto v2.3.1:
- Cost by AI tool (?tool= on cost/analytics/stats/workflows, by_tool,
Codex fast/priority and flex tiers, agenthub_cost_usd_total{tool,model})
- Date ranges (from/to) on cost/analytics/workflows; Analytics range select
with Today / This week (Monday) / This month (1st) / 7d / 30d / 90d / All /
Custom; workflow filters carried into workflow-stats.js (read worker)
- Budgets and cost alerts as alert rule types (alert_rules rebuilt without
its rule_type CHECK), GET /api/budgets/status, rule preview, spend pace,
status-bar budget chip; rules stay editable in place
- Query Explorer (/query, allowlisted sort, CSV/JSON export) and scheduled
reports (report_definitions/report_runs, Settings → Reports)
- Session Replay tab and immutable snapshots (session_snapshots, /snapshot/:token)
- Remote Codex sync, push ingest with a hashed token, privacy redaction and
ignored folders (Settings → Data), Cursor sessions (no cost)
- Read-only MCP server, statusline, Grafana/Prometheus files
Also: resizable sidebar, pet run/wave animations, the workspace home keeps a
half-typed prompt, and the pre-commit hook runs only the related tests for a
small commit.
27 lines
954 B
YAML
27 lines
954 B
YAML
# Prometheus scrape config for AgentHub's /api/metrics (see docs/MONITORING.md).
|
|
#
|
|
# As shipped it is the config docker-compose.monitoring.yml mounts: Prometheus
|
|
# runs in a container and reaches the dashboard on the HOST through
|
|
# host.docker.internal. For a Prometheus running natively on the same machine,
|
|
# change the target to "127.0.0.1:4820".
|
|
#
|
|
# The dashboard's DNS-rebinding guard answers 403 EBADHOST to any Host header
|
|
# that is not loopback, so a container scrape needs the dashboard started with
|
|
# DASHBOARD_ALLOWED_HOSTS=host.docker.internal
|
|
# and, when DASHBOARD_TOKEN is set, the authorization block below.
|
|
global:
|
|
scrape_interval: 15s
|
|
scrape_timeout: 10s
|
|
|
|
rule_files:
|
|
- agenthub-rules.yml
|
|
|
|
scrape_configs:
|
|
- job_name: agenthub
|
|
metrics_path: /api/metrics
|
|
static_configs:
|
|
- targets: ["host.docker.internal:4820"]
|
|
# authorization:
|
|
# type: Bearer
|
|
# credentials_file: /etc/prometheus/dashboard-token
|