Skip to main content
The formae agent exposes its own telemetry through OpenTelemetry: metrics, logs, and traces pushed over OTLP, plus a Prometheus-compatible /metrics endpoint for pull-based collection. This guide turns it on and shows what you get. The full list of configuration knobs lives in the configuration reference.

What gets exported

With OpenTelemetry enabled, the agent exports three signals over OTLP: A Prometheus-compatible endpoint is also available at http://localhost:49684/api/v1/metrics for pull-based scraping.

Enable OpenTelemetry

Add an oTel block to your configuration file:
Restart the agent and it begins pushing telemetry to the OTLP endpoint. For the complete property table (including otlp.temporality and the prometheus settings), see the configuration reference.
Metric temporality. Keep the default delta for OpenTelemetry-native backends such as Grafana Cloud, or a collector running the deltatocumulative processor. Switch to cumulative for Prometheus or Mimir backends that do not support delta temporality.

Scrape with Prometheus instead

To scrape metrics rather than push them, keep the Prometheus endpoint on and turn OTLP push off:

Key metrics

Alongside Go runtime, host, Ergo actor-system, and database metrics, the agent exports formae-specific stats:

Logs and traces

Structured logs are pushed to the OTLP endpoint with trace and span IDs attached, so you can jump from a log line to the operation that produced it. Local file logging stays available whatever the OpenTelemetry setting:
Traces cover API request handling, resource create/read/update/delete operations, database queries (with query text and latency), and plugin interactions, all correlated with the matching logs.

Grafana dashboards

Pre-built dashboards live in the formae-grafana-dashboards repository. To import one by hand, open Dashboards > Import in Grafana and upload the dashboard JSON, then select your Prometheus and Loki datasources. To provision them automatically, point a Grafana dashboard provider at the cloned repository:

See also