Add scraper metrics for all watches
Closed this issue · 0 comments
schaermu commented
Collect infomation from /api/v1/watch/{id}
, relevant properties are:
- check_count
- fetch_time
- notification_alert_count
- last_check_status
Expose as changedetectionio_watch_xxx
with label title
. More labels are implemented with #15.
- Implement new
watchCollector
struct - Implement watch details endpoint on
ApiClient
at/api/v1/watch/{id}
. - Expose relevant properties as metrics
- Extract test fixtures & implement tests for all metrics