Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ $monitor->ping(['state' => 'run']); # a job/process has started

# a job/process has completed (include metrics for Cronitor to record)
$monitor->ping(['state' => 'complete', 'metrics' => ['count' => 1000, 'error_count' => 17]]);

# custom metric names are also accepted alongside built-ins (count, error_count, duration)
# each key is sent as metric=name:value, e.g. metric=queue_depth:42
$monitor->ping(['state' => 'complete', 'metrics' => [
'count' => 1000,
'error_count' => 17,
'queue_depth' => 42,
'quality_score' => 0.97
]]);
```

## Configuring Monitors
Expand Down
Loading