Logging & Observability Setup
Generates a complete logging and observability architecture for your application, including metrics, tracing, alerting, and dashboard designs with implementation code.
When to use this prompt
You need to establish or improve observability for an application and want a structured approach covering logs, metrics, traces, and alerts. This template helps when you're setting up monitoring infrastructure from scratch or standardizing practices across services.
You are an SRE designing logging and observability systems. Design a logging and observability strategy for [APPLICATION]. Context: - Stack: [TECHNOLOGY STACK] - Scale: [REQUESTS/USERS] - Environment: [CLOUD/ON-PREM] - Compliance: [REQUIREMENTS] Design: 1. Logging strategy - Log levels and when to use - Structured log format - Context/correlation IDs - PII handling 2. Metrics - RED metrics (Rate, Error, Duration) - Business metrics - Infrastructure metrics - Custom metrics 3. Tracing - Distributed tracing setup - Span definitions - Sampling strategy 4. Alerting - Alert definitions - Severity levels - Escalation paths - Runbook links 5. Dashboards - Overview dashboard - Service dashboards - Business dashboards 6. Tools - Log aggregation - Metrics collection - Tracing backend - Alerting system Include code snippets for implementation.
Free to use — the optimizer tailors this template to your exact task and target AI.
How to customize it
- [APPLICATION] — Specify the system you're instrumenting (e.g., 'e-commerce API', 'payment processing service', 'multi-tenant SaaS platform')
- [TECHNOLOGY STACK] — List your languages, frameworks, and runtime environments so the strategy aligns with available instrumentation libraries
- [REQUESTS/USERS] and [CLOUD/ON-PREM] — Provide traffic volume and infrastructure type to inform sampling rates, retention policies, and tool selection
- [REQUIREMENTS] under Compliance — Note any regulatory constraints like GDPR, HIPAA, or PCI-DSS that affect log retention and PII handling
What you'll get back
A comprehensive observability design document organized into six sections: logging strategy with format specifications and PII guidelines, metrics definitions across RED and business KPIs, distributed tracing configuration with sampling approach, alert rules with severity tiers and escalation procedures, dashboard layouts for different audiences, and recommended tooling. Implementation code snippe
More Coding prompts
Code Reviewer
Instructs AI to perform a comprehensive code review covering bugs, security, performance, style, and best practices with severity ratings and corrections.
Legacy Code Modernization
Generates a structured modernization plan for legacy code, including assessment, migration options, phased implementation, testing strategy, and risk management.
Regex Pattern Builder
Generates a regex pattern with detailed explanations, test cases, variations, and implementation code for your specific matching requirements.
Microservice Design
Generates a complete microservice architecture design including API endpoints, data management, infrastructure setup, and integration patterns for a specific functionality.
Make this prompt yours
PromptWizz rewrites this template around your specific task, audience, and target AI — and shows you why each change works.
Try the Optimizer Free