Sending Metrics
Metrics are time-series data points that help you track the performance and behavior of your APIs.Metric Types
ItsFriday supports several metric types:| Type | Description | Example |
|---|---|---|
| Counter | Monotonically increasing value | Request count, error count |
| Gauge | Point-in-time value | CPU usage, memory usage |
| Histogram | Distribution of values | Response time distribution |
| Summary | Statistical summary | P50, P95, P99 latencies |
Sending Metrics via API
Basic Metric
Batch Metrics
Send multiple metrics in a single request:Python SDK
Django Middleware Example
JavaScript/Node.js
Best Practices
Use consistent naming conventions
Use consistent naming conventions
Use dot-separated, lowercase names:
Add meaningful tags
Add meaningful tags
Batch your metrics
Batch your metrics
Send metrics in batches when possible to reduce API calls: