aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workers/metrics.ts (follow)
Commit message (Collapse)AuthorAgeFilesLines
* feat(metrics): add prometheus metric for bookmark crawl latency (#2461)Mohamed Bassem2026-02-081-1/+11
| | | | | | | | | | Track the time from bookmark creation to crawl completion as a histogram (karakeep_bookmark_crawl_latency_seconds). This measures the end-to-end latency users experience when adding bookmarks via extension, web, etc. Excludes recrawls (crawledAt already set) and imports (low priority jobs). https://claude.ai/code/session_019jTGGXGWzK9C5aTznQhdgz Co-authored-by: Claude <noreply@anthropic.com>
* fix(import): register improt metrics to the prom registryMohamed Bassem2026-02-041-1/+1
|
* feat: add Prometheus counter for HTTP status codes (#2117)Mohamed Bassem2025-11-151-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | * feat: add Prometheus counter for crawler status codes Add a new Prometheus metric to track HTTP status codes encountered during crawling operations. This helps monitor crawler health and identify patterns in response codes (e.g., 200 OK, 404 Not Found, etc.). Changes: - Add crawlerStatusCodeCounter in metrics.ts with status_code label - Instrument crawlerWorker.ts to track status codes after page crawling - Counter increments for each crawl with the corresponding HTTP status code The metric is exposed at the /metrics endpoint and follows the naming convention: karakeep_crawler_status_codes_total * fix: update counter name to follow Prometheus conventions Change metric name from "karakeep_crawler_status_codes" to "karakeep_crawler_status_codes_total" to comply with Prometheus naming best practices for counter metrics. --------- Co-authored-by: Claude <noreply@anthropic.com>
* feat: correct default prom metrics from web and worker containersMohamed Bassem2025-11-101-0/+1
|
* feat: Export prometheus metrics from the workersMohamedBassem2025-08-221-0/+17