Statistics¶
The Statistics page shows current metrics about your FenLiu activity.
Accessing Statistics¶
Click Statistics in the main navigation.
Overview Cards¶
Five cards display key metrics:
Total Streams¶
Number of hashtag streams you've created (total and active count).
Total Posts¶
Number of posts fetched from all streams (total and reviewed count).
Average Spam Score¶
Mean spam score across all posts (0-100 scale).
Delivered (All-time)¶
Posts successfully delivered to consumers (active in DB + deleted by cleanup).
Errors (All-time)¶
Posts in the error state (active in DB + deleted by cleanup).
Charts¶
Posts Over Time¶
Line chart showing post collection activity over the last 7 days.
Use it to: - See daily fetch activity - Identify peak activity periods - Spot trends in stream usage
Top Hashtags¶
Bar chart showing the top 5 hashtags by post count.
Use it to: - Identify the most active hashtags - Focus on productive streams - Balance across streams
Queue Statistics¶
The Statistics page also shows queue health metrics:
Delivered Posts¶
- Active: Posts currently in the database with
deliveredstatus - All-Time: Active + posts deleted by cleanup (preserved in QueueStats)
Errors¶
- Active: Posts currently in the database with
errorstatus - All-Time: Active + error posts deleted by cleanup (from ErrorHistory)
- Most Frequent Error: The most common error reason across active and historical errors
Error Detail Section¶
When there are active errored posts, the Statistics page shows an Active Error Details card below the overview. For each errored post it shows:
- The error reason and a link to the post
- For duplicate-attachment errors: a side-by-side image comparison showing the triggering attachment and the previously-seen matching attachment, plus their dhash values and the matched post ID
This lets you visually confirm whether a reported duplicate match is a true duplicate or a false positive before deciding whether to requeue the post.
API Access¶
Get statistics programmatically:
curl -H "X-API-Key: your-api-key" http://localhost:8000/api/v1/stats
Response includes:
- total_streams - Total hashtag streams
- active_streams - Currently active streams
- total_posts - Posts in database
- average_spam_score - Mean spam score
Next Steps¶
- Review Interface - Approve posts
- Queue Preview - Monitor exports
- Dashboard - Quick overview