Prowlarr Module API Explanation
The Prowlarr module monitors active search indexers status and indexer query grab statistics.
API Execution Logic
The module locates the service matching the identifier prowlarr. It loads the PROWLARR_API_KEY and sets it in the request headers via the X-Api-Key key.
Parallel Request Execution
To retrieve indexer counts and download statistics, the module executes two parallel GET requests:
- Indexers Query: A request is sent to
/api/v1/indexerto retrieve all configured indexers. - Indexer Stats Query: A request is sent to
/api/v1/indexerstatsto retrieve usage stats.
Data Parsing
- Primary Metric: The count of configured search indexers that are active (evaluated by filtering indexers where
enable === true). - Secondary Metric: The total count of indexer grabs, calculated by summing the
numberOfGrabsproperty across all indexer statistics.
Caching Strategy
The results are cached for 60 seconds (TTL) with a stale window of 300 seconds. A timeout of 5 seconds is enforced per request.