Define counters and gauges via a simple HTTP API, visualize them in real time. Self-hosted Datadog for the one metric you actually care about today.
Every operation in Metrics is available through a JSON REST API. No SDK required — use curl, fetch, or any HTTP client.
GET /api/metrics — list all metrics with optional search and filter query parametersPOST /api/metrics — create a new metric recordGET /api/metrics/{id} — retrieve a single metric by IDPUT /api/metrics/{id} — update an existing metricDELETE /api/metrics/{id} — remove a metricGET /api/stats — aggregated statistics with status breakdownGET /api/health — health check endpoint for monitoringA non-profit with no DevOps budget downloads the Metrics binary, sets two environment variables, and runs it on the same Linux box that handles their email. It has been running for three months without intervention. When they need to update, they download the new binary and restart the process.
When regulators or clients ask where your metrics data is stored, the best answer is a specific server you own in a specific jurisdiction you chose. Metrics makes that answer straightforward because the data never leaves your infrastructure.
GET /api/metrics — List all metrics. Supports ?q=keyword for search and ?status=value for filteringPOST /api/metrics — Create a new metric. Send JSON with at least nameGET /api/metrics/{id} — Fetch one metric by IDPUT /api/metrics/{id} — Update fields on an existing metricDELETE /api/metrics/{id} — Remove a metricGET /api/stats — Returns total count and breakdown by statusGET /api/health — Returns {"status":"ok"} for uptime monitoringPoint curl at /api/metrics to interact with Metrics programmatically. The API follows predictable REST conventions: GET to list or fetch, POST to create, PUT to update, DELETE to remove. The response schema matches the internal data model exactly, so what you see in the dashboard is what the API returns.
Self-hosted real-time metrics dashboard. Self-hosted on your infrastructure. Your data never leaves your server.
curl -fsSL https://stockyard.dev/install.sh | sh -s -- --tool metrics
PORT=9730 ./metrics
http://localhost:9730
Single binary. Embedded SQLite. No Docker. No database. No dependencies.
Your license key arrives by email within 5 minutes of checkout. Set it as an environment variable and restart the binary.
export METRICS_LICENSE_KEY=stockyard_xxxxxxxxxxxxxxxxxxxx ./metrics
No cloud connectivity required. The binary validates the key offline with Ed25519 signatures.