Features
Metrics export
Included free on every install, scheduled export included. A metrics destination of a tenant's own needs a license with the
multitenant-customizationfeature. See pricing.
Metrics export sends your instance's request, database pool and runtime metrics to the monitoring backend you already run, every 30 seconds by default. It also serves a scrape route where a super admin reads every metric and a tenant admin reads only their own tenant's request metrics.
How it works
Link to the section How it worksThere are three ways to get the same metrics out.
| Way | Who reads it | Use it when |
|---|---|---|
Prometheus scrapes GET /api/admin/metrics | Prometheus, with METRICS_TOKEN or a super admin token | You run Prometheus and it can reach the instance. METRICS_TOKEN is in the configuration reference. |
Scrape GET /api/admin/telemetry/metrics | A super admin sees everything, a tenant admin sees their tenant | Each tenant needs its own view. |
| An exporter pushes on a schedule | Your backend | The backend cannot scrape the instance, or it is a hosted service. |
| A tenant destination pushes on the same schedule | The tenant's own collector | A tenant wants its numbers in its own monitoring. Needs multitenant-customization. |
Every export carries the same metrics:
- Process and Go runtime metrics.
- Database pool metrics,
lyeve_db_pool_*. - Request metrics:
lyeve_requests_total,lyeve_request_duration_secondsandlyeve_requests_in_flight. Each carries atenantlabel with the tenant slug, or-when the request named no tenant. - Content cache counters,
lyeve_content_list_cache_hits_totalandlyeve_content_list_cache_misses_total. lyeve_build_info, labeled with version and database dialect,lyeve_plugin_countandlyeve_runtime_seconds.
Traces are not part of this feature. To send traces, see tracing under load.
In the console, metrics export is under Insight > Observability > Telemetry.
Metrics lists every metric family the instance serves, with its current samples. Type part
of a name in Filter families, or pick a Type, to narrow the list. Tenant destination
saves where the tenant's own series are pushed, by OTLP or Pushgateway, to a URL
with headers from Add header. Without the multitenant-customization feature the section
says that setting or changing a destination needs a license, and Save is turned off.
Exporters lists the backends the instance ships to, and reads No exporters configured
until one is set. Configuring a backend is done with settings, as step 3 shows.
For the console steps, you are signed in to the console as a super admin. For the API
steps, you need a super admin token in TOKEN. The quickstart
shows how to get one.
1. Read the request metrics.
Console v0.28.0
Open Insight > Observability > Telemetry and type lyeve_requests_total in Filter
families. The counter lists one sample per status class, method and tenant.

Engine API v0.62.0
curl -s http://localhost:3001/api/admin/telemetry/metrics \ -H "Authorization: Bearer $TOKEN" | grep '^lyeve_requests_total'lyeve_requests_total{code="2xx",method="GET",plugin="core",tenant="default"} 27lyeve_requests_total{code="4xx",method="GET",plugin="core",tenant="default"} 32. List the exporters. On a fresh install none is configured.
Console v0.28.0
On the same page, Exporters reads No exporters configured.
Engine API v0.62.0
curl http://localhost:3001/api/admin/telemetry/exporters \ -H "Authorization: Bearer $TOKEN"{ "data": [], "limit": 50, "offset": 0, "total_count": 0 }3. Configure a backend. Set METRICS_PUSHGATEWAY_URL to your Pushgateway, such as
https://pushgateway.example.com, and restart the instance. A Pushgateway on your own network
also needs its range in METRICS_ALLOWED_PRIVATE_NETWORKS, as
Reach a collector on your own network describes.
4. Export once without waiting for the schedule.
Console v0.28.0
Exporters now lists pushgateway as Healthy, with its last export and its counts of
exports and failures. Choose the export button on its row, labeled Export pushgateway now.
The page confirms export triggered for pushgateway.
Engine API v0.62.0
curl -X POST http://localhost:3001/api/admin/telemetry/exporters/pushgateway/export \ -H "Authorization: Bearer $TOKEN"{ "status": "ok", "message": "export triggered for pushgateway" }Without a configured Pushgateway the answer is 404 with exporter not found.
Manual exports are at least 5 seconds apart. A second one inside that window answers 429
with rate_limited.
Choose a backend
Link to the section Choose a backend| Name | Transport | What is sent |
|---|---|---|
pushgateway | HTTP PUT /metrics/job/<job>, Prometheus text format, optional basic auth | Every metric, labels intact. Each push replaces the job's group. |
otlp | OTLP over gRPC | Gauges as gauges, counters as cumulative sums, histograms as cumulative histograms, summaries as summaries. Labels become attributes. |
newrelic | OTLP over HTTP, api-key header | The same as otlp, posted to the region's /v1/metrics. |
statsd | DogStatsD over UDP | Gauges as g. Counters as c, with the change since the last export. A histogram as .sum, .count and one .bucket gauge per bound tagged le:. A summary as .sum, .count and one gauge per quantile tagged quantile:. Labels become tags. Packets are at most 8 KiB. |
A backend runs when its address or key is set. Each one runs on its own: one that fails is marked unhealthy and turns healthy again on its next successful export, without affecting the others.
Reach a collector on your own network
Link to the section Reach a collector on your own networkExporters refuse loopback, link-local and private addresses. A collector on
your own network, such as 10.0.4.12:4317, needs its range in
METRICS_ALLOWED_PRIVATE_NETWORKS, for example 10.0.4.0/24. Until then a
manual export answers 422 and names the setting.
Send a tenant its own metrics
Link to the section Send a tenant its own metricsWith multitenant-customization, a tenant admin saves one destination for
the tenant, and every export also pushes it the series labeled with that
tenant and nothing else, the same samples the tenant's scrape shows.
Console v0.28.0
- Open Insight > Observability > Telemetry and find Tenant destination.
- Pick OTLP in Protocol and enter
https://otlp.example.com/v1/metricsin URL. - Choose Add header, then enter
Authorizationin Header andBearer <collector key>in Value. - Choose Save. The page says Destination saved.
The headers then read Stored: Authorization. Their values are never shown., with a choice to Keep the stored headers or Replace them. After the next export the section shows whether the destination is healthy, the time of the last push and how many pushes worked and failed. Delete destination asks Delete the destination with its URL, and Delete removes it.
Engine API v0.62.0
curl -X PUT http://localhost:3001/api/admin/telemetry/destination \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{"kind": "otlp", "url": "https://otlp.example.com/v1/metrics", "headers": {"Authorization": "Bearer <collector key>"}}'The answer is 200 with the destination and "licensed": true. After the next export,
GET on the same path shows its health, with healthy, the time of the last export and the
counts of exports and failures. DELETE answers 204.
| Field | Meaning |
|---|---|
kind | otlp, sent as OTLP over HTTP to the URL exactly as saved, or pushgateway, sent to <url>/metrics/job/lyeve-core/tenant/<slug>. |
url | An http or https URL of at most 2,048 characters, with no credentials in it. Send those as a header. |
headers | Up to 16 headers, 8 KiB in all. Left out, the stored headers stay while the URL keeps its scheme and host. {} sends none. |
- The URL and the headers are encrypted at rest. The answer, like
GETon the same path, shows thekind, theurl, theheader_namesalone and thehealthof the last push, besidelicensed. - A destination on a private or internal network is refused, and
METRICS_ALLOWED_PRIVATE_NETWORKSnever opens one for a tenant. - A destination moved to another host must send its headers again, so a stored key never follows a URL somebody else chose.
DELETEremoves the destination and stays free. If the license lapses, the stored destination keeps receiving, and a new or changed one answers402.
Check exporter health
Link to the section Check exporter healthGET /api/admin/telemetry/exporters lists each configured backend:
{ "data": [ { "name": "pushgateway", "healthy": true, "last_export": "2026-10-01T09:40:00Z", "last_failure": "0001-01-01T00:00:00Z", "exports": 120, "failures": 0 } ], "limit": 50, "offset": 0, "total_count": 1}last_failure holds the time of the last failure, and reads the zero time
until one happens. A backend that has failed also shows last_error and
last_error_class. Addresses and URLs in the error text are redacted. In the console, Exporters on the Telemetry page shows the same state,
counts and last error.
Settings
Link to the section SettingsSet these as environment variables or in the console. They are read when the instance starts, so restart it after a change.
| Variable | What it does | Default |
|---|---|---|
METRICS_EXPORT_INTERVAL | How often to export, such as 30s or 1m. 0 turns the schedule off and leaves manual export. | 30s |
METRICS_ENABLED_EXPORTERS | Comma-separated backends to run. Empty or all runs every backend that is configured. | all |
METRICS_PUSHGATEWAY_URL | Pushgateway base URL. | unset |
METRICS_PUSHGATEWAY_JOB | Pushgateway job name. Slashes and .. are refused. | lyeve-core |
METRICS_PUSHGATEWAY_USERNAME, METRICS_PUSHGATEWAY_PASSWORD | Pushgateway basic auth. | unset |
METRICS_OTLP_ENDPOINT | OTLP gRPC endpoint as host:port. | unset |
METRICS_OTLP_INSECURE | Connect to the OTLP endpoint without TLS. | false |
METRICS_OTLP_HEADERS | Comma-separated key=value headers for OTLP. | unset |
METRICS_STATSD_ADDRESS | DogStatsD address as host:port. | unset |
METRICS_STATSD_PREFIX | Prefix for every StatsD metric name. | lyeve |
METRICS_STATSD_TAGS | Comma-separated tags sent with every StatsD metric. | unset |
METRICS_NEWRELIC_API_KEY | New Relic license key. | unset |
METRICS_NEWRELIC_ENDPOINT | New Relic OTLP URL for your region. For the EU use https://otlp.eu01.nr-data.net:4318. | https://otlp.nr-data.net:4318 |
METRICS_ALLOWED_PRIVATE_NETWORKS | Comma-separated CIDR ranges or addresses an exporter may reach. | unset |
Metrics export runs on every install. If you set LYEVE_PLUGINS to choose
which features start, include telemetry in it. See
licensing and tiers.
| Method | Path | Who | Purpose |
|---|---|---|---|
GET | /api/admin/telemetry/metrics | Admin | Prometheus text format. A super admin gets every metric, a tenant admin only the samples labeled with their tenant. |
GET | /api/admin/telemetry/exporters | Super admin | Health of each backend, with limit (default 50, at most 500) and offset. |
POST | /api/admin/telemetry/exporters/{name}/export | Super admin | Export to one backend now. |
GET | /api/admin/telemetry/destination | Admin | The tenant's own destination, or null, and licensed. |
PUT | /api/admin/telemetry/destination | Admin | Save it: kind, url, headers. Needs multitenant-customization. |
DELETE | /api/admin/telemetry/destination | Admin | Remove it. 204. |
| Status | Message | Cause |
|---|---|---|
402 | payment_required, naming feature:multitenant_customization | A new or changed tenant destination without the license. |
422 | kind must be otlp or pushgateway, url must be an absolute http or https URL, url must not carry credentials, send them as a header, at most 16 headers | The destination is not valid. |
422 | the destination moved to another host, send its headers again, code telemetry.headers_required | A new host with the headers left out. |
422 | the destination is on a network this instance does not send to | A private or internal address. |
422 | the instance has no encryption key to seal the destination with | Set ENCRYPTION_KEY. |
403 | instance-wide metrics need super_admin | The caller is not a super admin and the request named no tenant. |
404 | exporter not found | No backend by that name is configured. |
422 | export target is on a private network the guard refuses; list it under metrics_allowed_private_networks | Add the range to METRICS_ALLOWED_PRIVATE_NETWORKS. |
429 | export cooldown active; minimum 5 seconds between manual exports | Wait five seconds between manual exports to one backend. |
502 | export target did not accept the push; see the exporter's health row | The backend could not be reached or refused the data. |
503 | metrics not initialized | The instance is still starting. |
Related
Link to the section Related- Operator guide:
scrape
/api/admin/metricswith Prometheus. - Scale and tune: trace sampling and the database pool.
- Request profiling: which route is slow, and why.
- Logs: what one request did.