Snowflake integration allows IncidentFox to query historical data, enrichment tables, and analytics to provide deeper context during investigations.Common use cases:
Query historical incident patterns
Look up customer or service metadata
Access aggregated metrics not in real-time systems
-- Create userCREATE USER incidentfox_reader PASSWORD = 'secure_password_here' DEFAULT_ROLE = INCIDENTFOX_ROLE DEFAULT_WAREHOUSE = COMPUTE_WH;-- Create role with limited permissionsCREATE ROLE INCIDENTFOX_ROLE;-- Grant read access to relevant schemasGRANT USAGE ON WAREHOUSE COMPUTE_WH TO ROLE INCIDENTFOX_ROLE;GRANT USAGE ON DATABASE ANALYTICS TO ROLE INCIDENTFOX_ROLE;GRANT USAGE ON SCHEMA ANALYTICS.OBSERVABILITY TO ROLE INCIDENTFOX_ROLE;GRANT SELECT ON ALL TABLES IN SCHEMA ANALYTICS.OBSERVABILITY TO ROLE INCIDENTFOX_ROLE;GRANT SELECT ON FUTURE TABLES IN SCHEMA ANALYTICS.OBSERVABILITY TO ROLE INCIDENTFOX_ROLE;-- Assign role to userGRANT ROLE INCIDENTFOX_ROLE TO USER incidentfox_reader;
SELECT customer_tier, COUNT(DISTINCT customer_id) as affected_customers, SUM(transaction_value) as affected_revenueFROM analytics.business.transactions tJOIN analytics.business.customers c ON t.customer_id = c.idWHERE t.service = 'payments' AND t.status = 'failed' AND t.timestamp > DATEADD('hour', -1, CURRENT_TIMESTAMP())GROUP BY customer_tier
SELECT d.service, d.version, d.deployed_at, COUNT(e.id) as errors_after_deployFROM analytics.devops.deployments dLEFT JOIN analytics.observability.errors e ON e.service = d.service AND e.timestamp BETWEEN d.deployed_at AND DATEADD('hour', 4, d.deployed_at)WHERE d.deployed_at > DATEADD('day', -1, CURRENT_TIMESTAMP())GROUP BY d.service, d.version, d.deployed_atORDER BY d.deployed_at DESC
User: @incidentfox investigate high error rate in checkoutIncidentFox:1. Queries Coralogix for current errors2. Queries Snowflake for historical error baseline3. Queries Snowflake for recent deployments4. Correlates findingsResult: "Error rate is 10x normal baseline. This matches a patternseen after v2.3.1 deployment last month. Current deployment v2.5.0went out 45 minutes ago. Recommend rollback."