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
Related prompts
Git Commit Message Writer
Generates three git commit message options from your code changes, following conventional commits format with type, scope, subject, body, and footer.
GraphQL Schema Builder
Generates a complete GraphQL schema with types, queries, mutations, and subscriptions tailored to your data model and operations.
Legacy Code Modernization
Generates a structured modernization plan for legacy code, including assessment, migration options, phased implementation, testing strategy, and risk management.
Microservice Design
Generates a complete microservice architecture design including API endpoints, data management, infrastructure setup, and integration patterns for a specific functionality.
Microservices Architecture
Generates a complete microservices architecture plan including service boundaries, communication patterns, data management, infrastructure, and observability strategies.
Performance Optimization Audit
Analyzes code for performance bottlenecks across time/space complexity, I/O efficiency, caching, and concurrency. Returns prioritized optimizations with code examples.
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