Overview
IncidentFox integrates with Prometheus for metrics queries, instant queries, and alert management. This includes support for Alertmanager for alert correlation.Tools Available
| Tool | Description |
|---|---|
query_prometheus | Execute PromQL range queries |
prometheus_instant_query | Execute instant PromQL queries |
get_prometheus_alerts | Get configured alert rules |
get_alertmanager_alerts | Get currently firing alerts |
get_active_alerts | Get all active alerts across sources |
Configuration
Basic Setup
With Alertmanager
Authentication
Prometheus supports several authentication methods:| Method | Configuration |
|---|---|
| Bearer Token | auth: "vault://secrets/token" |
| Basic Auth | username and password fields |
| No Auth | Omit auth field (not recommended) |
Example Queries
PromQL Range Query
Check Firing Alerts
Correlate with Metrics
Use Cases
Anomaly Detection
IncidentFox uses Prometheus metrics for anomaly detection:- Queries historical data for baseline
- Applies Z-score or Prophet-based detection
- Identifies deviations from normal behavior
Alert Correlation
When investigating incidents, IncidentFox:- Fetches currently firing alerts from Alertmanager
- Correlates alert timing with incident timeline
- Identifies related alerts across services
Capacity Planning
Use the forecasting tools with Prometheus data:Required Permissions
| Component | Permission |
|---|---|
| Prometheus | Query access to /api/v1/query and /api/v1/query_range |
| Alertmanager | Read access to /api/v2/alerts |
Troubleshooting
Connection Issues
- Verify the URL is correct and accessible
- Check authentication credentials
- Ensure network connectivity from IncidentFox

