Documentation

Track metrics over HTTP, view charts in the console, and get daily summaries or threshold alerts. Replace placeholders in the examples with your own keys from Settings or a metric's detail page.

Getting started

Sign up to create an organization and your first account. After sign-in you land on the Metrics list — create a metric there, copy its ingest URL, and send your first sample.

Already on a team? Ask a colleague to invite you, or use an invitation link they send you. Existing users can log in any time. New orgs get a 42-day free trial; the basic plan is $1/month after that.

Metrics console

Each metric has a type: count for events (page views, signups) or value for measurements (latency, revenue). Open a metric to see its time-series chart, change the period and resolution, and add samples manually.

On the detail page you can add guide lines on the chart, overlay another metric for comparison, and configure alerts when values cross thresholds or stop arriving. Use Live mode for near-real-time updates over WebSocket while you watch the chart.

Every metric has its own public ingest key (pmk_…) shown on the detail page — use that in scripts and tracking pixels so you do not need to pass a metric slug on each request.

If a key leaks, anyone in your organization can choose Replace key under Settings → Metric keys, even if the metric is private or its owner has left. If you can open the metric, you can also do this on its detail page. The old key stops working immediately, so update everything that uses it. Your existing data won't change.

Settings

Under Settings in the console sidebar you will find your organization name, two organization API keys, your personal access tokens, and your connected apps:

  • Public API key (pk_…) — ingest samples for any metric in the org (pass metric as id or slug).
  • Secret API key (sk_…) — create metrics through the Metrics API. Keep it on your server.
  • Personal access tokens (ump_…) — connect AI tools through the MCP server with your own metric access.
  • Connected apps — see and disconnect AI tools you approved by signing in.

The same page configures your daily summary email: turn it on, pick a local send time, and use Send now to preview. Opt individual metrics into the email with Include in daily email on each metric's page.

Ingest API

Send samples with a simple GET request to /api/m on your data host (production: https://data.umlogger.com). Responses are JSON, e.g. {"ok":true}.

Per-metric public key (recommended)
curl "https://data.umlogger.com/api/m?key=pmk_YOUR_METRIC_KEY&value=42"
Organization public key + metric slug
curl "https://data.umlogger.com/api/m?key=pk_YOUR_ORG_KEY&metric=page-views&value=42"
Optional timestamp (ISO 8601)
curl "https://data.umlogger.com/api/m?key=pmk_YOUR_METRIC_KEY&value=1&timestamp=2026-01-01T12:00:00Z"
HTML tracking pixel
<img src="https://data.umlogger.com/api/m?key=pmk_YOUR_METRIC_KEY&value=1" alt="" width="1" height="1" />
JavaScript (fetch)
const url = new URL("https://data.umlogger.com/api/m");
url.searchParams.set("key", "pmk_YOUR_METRIC_KEY");
url.searchParams.set("value", String(responseTimeMs));
await fetch(url);

More examples, tested and ready to copy: send a metric from Python, Node.js, Go, PHP, Bash or GitHub Actions.

Query parameters: key (required), value (required, numeric), metric (required with org pk_ key),timestamp (optional). In production, send ingest traffic to the data host, not the main app URL — samples still work on the app host but return a warning.

Metrics API

Manage metrics programmatically with a personal access token from Settings. Send Authorization: Bearer ump_… on requests to /api/metrics (same host as ingest in dev; use your API base URL in production).

List metrics
curl -H "Authorization: Bearer ump_YOUR_TOKEN" \
  "https://data.umlogger.com/api/metrics"
Create a metric
curl -X POST -H "Authorization: Bearer ump_YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"Page views","slug":"page-views","type":"count"}' \
  "https://data.umlogger.com/api/metrics"

type must be count or value. Use GET /api/metrics/:id, PATCH, and DELETE with a metric UUID or slug. Tokens can view metrics you can see. Creating one needs a read & write token. Changing or deleting your own also needs a setting you choose when you create the token. Never give a token with that setting to AI tools. With this API, your organization's secret key can only create metrics. It can't view, change or delete them. The legacy /p?metric_pubkey=… endpoint still accepts old-style keys but is deprecated — prefer /api/m.

MCP server

Let AI tools query your metrics, create new ones, log samples, and annotate charts. The server is hosted at https://data.umlogger.com/mcp, so there is nothing to install. You can sign in from Claude, ChatGPT, Claude Code, Cursor, or OpenCode without copying a token. Access is read-only unless you choose otherwise.

Claude Code
claude mcp add --transport http umlogger https://data.umlogger.com/mcp

Start Claude Code, run /mcp, choose umlogger, and sign in.

Cursor (~/.cursor/mcp.json)
{
  "mcpServers": {
    "umlogger": {
      "url": "https://data.umlogger.com/mcp"
    }
  }
}

In Cursor's MCP settings, find umlogger and sign in.

OpenCode (~/.config/opencode/opencode.json)
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "servers": {
      "umlogger": {
        "type": "remote",
        "url": "https://data.umlogger.com/mcp"
      }
    }
  }
}

Finish any active OpenCode work, then run:

opencode service restart
opencode mcp auth umlogger

For web apps, see the Claude and ChatGPT steps. Prefer an access token? With Claude Code, Cursor, or OpenCode, follow the token instructions.

Example prompts
How do signups for the last 7 days compare with the 7 days before?
Were there any annotations around the latency spike this week?
Create a count metric called "Trial started" and add tracking for it to my code.

For the last prompt, choose Read and write when you sign in, and allow the app to get ingest keys. You can also use a read & write access token.

Using OpenCode or Claude Code? Install the free Umlogger skill to help it analyze metrics and add tracking to your code.

See the full MCP server guide for every tool, permissions, curl and TypeScript samples, and troubleshooting.

Alerts & email

Alerts on a metric's detail page watch rolling windows (e.g. last hour or day). Types include average value above/below a threshold, percent change, and missing data when no samples arrive. When an alert fires, Umlogger emails the metric's owner and anyone it's shared with.

The daily summary is separate: enable it in Settings, then tick Include in daily email on each metric you want in the morning report. Questions or custom plans? Contact us.