connection_churn_analysis
Analyze connection churn for Redis and RabbitMQ to identify root causes and recommended actions. Groups clients by source and supports snapshot/history comparison for delta analysis.
Instructions
[READ] Connection/channel churn → cause + action; works on both platforms.
The flagship churn analysis: for a redis target — new-connections rate vs steady clients (reconnect-per-operation smell) and rejected connections (maxclients); for a rabbitmq target — overview churn rates, channels-per- connection ratio (leak smell), and growth vs a prior snapshot. Both group clients by source so a finding can be pinned to an app. Call it once, keep the returned snapshot fields, and pass them back later as 'history' for delta-based churn. Pass 'snapshot' for pure analysis, or a target to pull live.
Args: snapshot: Injected snapshot (from a prior call's live pull shape); skips the live pull. history: A prior snapshot for delta analysis (optional). target: Broker target name from config; omit for the default.
Returns dict: {platform, metrics, bySource, comparedToHistory, thresholds, findings:[{cause, action, evidence}], note}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| history | No | ||
| snapshot | No |