Metrics & Dashboards

See how your application performs without configuring Prometheus or Grafana. Encore automatically collects metrics and provides dashboards that show what matters.

Start building

See how it could work for your team.

Metrics that collect themselves

Most metrics setups require instrumenting every endpoint, choosing metric names, and configuring exporters. Encore collects application metrics automatically, so you get visibility from day one.For every API endpoint, Encore tracks request rate, latency percentiles, and error rates. For databases, it tracks query counts and durations. For pub/sub, it tracks message throughput and processing times.

0lines of metrics code
100%endpoint coverage
ordersproductionLive · last 15m
REQUESTS/S1,558
P50 LATENCY13ms
P99 LATENCY84ms
ERROR RATE0.20%
Requests per second15m
p99 latency84ms

Add custom metrics when you need them

Automatic metrics cover the common cases, but sometimes you need business-specific metrics. Encore provides a simple API for counters and gauges — plus labelled groups — that works locally and in production.Custom metrics show up in the same dashboard alongside automatic metrics, and can be exported to your existing monitoring tools.

order/metrics.ts
import { Counter, CounterGroup } from "encore.dev/metrics";

// A simple counter
export const ordersProcessed = new Counter("orders_processed");

// Or group a counter by labels
interface Labels {
  success: boolean;
}
export const ordersByOutcome = new CounterGroup<Labels>("orders_by_outcome");

function process(order: Order) {
  // ...
  ordersProcessed.increment();
  ordersByOutcome.with({ success: true }).increment();
}

Export to your existing tools

Encore's built-in dashboards work immediately. If you already use Datadog, Grafana, or another monitoring tool, you can export metrics via Prometheus or OpenTelemetry.

Use both: Encore's dashboards for quick checks, and your existing tools for advanced alerting and correlation.

DatadogGrafanaPrometheusOpenTelemetry
“What used to take days or weeks of back-and-forth between developers and infra teams is now automated and completed in minutes.”
Josef Sima, Engineering Director at Groupon
2–3xfaster development speed
90%shorter time to market
// POWERING DEVELOPMENT AT
GrouponPave BankBookshop.orgCoinbasePalletGradient Labs

Stop configuring metrics

Get visibility from day one.

Get started
brew install encoredev/tap/encore &&
encore app create
Copy

Run in your terminal to get started locally.