/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 anoTel block to your configuration file:
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: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
- Configuration reference: every
oTelandprometheusproperty. - Deploy the LGTM observability stack: stand up Grafana, Loki, Tempo, and Mimir with formae.

