Metrics Exporter
The Metrics Exporter is IntelliAsk's Prometheus exporter — it scrapes the MongoDB database and exposes usage, token, user, model, rating, tool, and file metrics for Prometheus and Grafana. This is the complete reference for its configuration and metrics catalog.
The Metrics Exporter reads IntelliAsk's MongoDB database and exposes
Prometheus metrics — messages, tokens, users, models, ratings, tools, and files
— on a /metrics endpoint (container port 8000, published on host port 9100 in
the stack). Prometheus scrapes it; Grafana visualizes it.
It exposes all metrics under the intelliask_* prefix.
Looking to just run it?
To wire the exporter into the Compose stack (image tag, resource limits, the
EXPORTER_* keys, and proxy exposure), see
Deploy → Components → Exporter. For the
app-side metrics endpoint, see Configuration → Metrics.
What's in this section
Configuration
Every environment variable — MongoDB connection, caching, timezone, the per-group metric toggles, logging, and the optional health check.
Metrics catalog
The full list of exposed intelliask_* metrics — name, type, labels, and what
each measures — organized by metric group.
At a glance
| Stack | Python 3.14 |
| Container port | 8000 (published on host 9100 in the stack) |
| Endpoint | GET /metrics (also GET /) |
| Metric prefix | intelliask_ |
| Data source | IntelliAsk's MongoDB (read-only) |
How it works
- A background thread queries MongoDB on an interval and caches the computed
metrics (
METRICS_CACHE_ENABLED/METRICS_CACHE_TTL), so Prometheus scrapes are cheap and don't hammer the database. - Each metric group (basic, token, user, model, time-window, rating, tool, file) can be toggled independently — turn off the expensive ones on very large databases.
- If
INTELLIASK_URLis set, it also probes the web UI and exposes its HTTP status asintelliask_status_code.
All metrics use the intelliask_ prefix
Every metric this exporter exposes is named intelliask_*. Make sure any
Prometheus alert/recording rules or Grafana dashboards reference the
intelliask_* names.
Scraping it
Last updated on