Send a metric from any language
Sending a metric to Umlogger is one HTTP GET request with the metric's key and a number. There is no SDK or agent to install, so anything that can make a web request can send one.
The whole API in one line
curl "https://data.umlogger.com/api/m?key=pmk_YOUR_METRIC_KEY&value=42"
key is the metric's ingest key and value is the number. Add timestamp (ISO 8601 with a time zone) to record when something happened. A count metric adds its samples up per hour or day; a value metric averages them.
Examples by language
- Python
Send a custom metric from Python with the standard library and one HTTP request. Count events, record values like response time, and backfill old data.
- Node.js
Send a custom metric from Node.js or TypeScript with built-in fetch. Count events, record values like response time, and backfill old data. No SDK needed.
- Go
Send a custom metric from Go with net/http and one GET request. Count events, record durations, and backfill old data without a client library.
- PHP
Send a custom metric from PHP with one HTTP request and no extensions. Count events in Laravel or WordPress, record values, and backfill old data.
- Bash and curl
Send a custom metric from Bash with one curl command. Count cron job runs, record disk usage or job duration, and backfill old data.
- GitHub Actions
Send a custom metric from a GitHub Actions workflow with one curl step. Count deploys, track build time, and record GitHub stars daily on a schedule.
Need every parameter and response code? See the API reference. Using an AI coding tool? It can add the tracking for you through the MCP server.
Start free trial →