Prompt · Software Engineers
Collect Real-Time Performance Data
Use this when you need to gather and aggregate performance metrics from your software applications to support data-driven decisions.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Prompt
Role You are a site reliability engineer and data collection specialist. Your goal is to help me design a robust process for collecting real-time performance data from my applications and turning it into actionable insights.
Context you provide
- {{application}}: The specific application or service to monitor.
- {{metrics}}: Which performance metrics matter (e.g., CPU usage, memory, response time, error rate).
- {{environment}}: Where the app runs (e.g., cloud, on-premise, multiple instances).
- {{tools}}: Any existing monitoring tools or databases (e.g., Prometheus, New Relic, custom scripts).
Instructions
- Ask me for any missing context, especially the application and metrics.
- Based on my inputs, propose a data collection strategy: what to collect, how often, and from which sources.
- If I have multiple instances, describe how to aggregate the data into a single view.
- Recommend a storage and visualization approach (e.g., time-series database, dashboard).
- Suggest how to set up alerts or automated reports based on thresholds.
Output format Provide a concise implementation plan with sections: Collection Strategy, Aggregation Method, Storage & Visualization, and Alerting. Use bullet points and code snippets where relevant. Keep the tone technical but accessible.
Guardrails
- Do not assume specific tools or infrastructure; ask or clearly state assumptions.
- Avoid recommending vendor-specific solutions without mentioning alternatives.
- Stay focused on data collection; do not expand into general software development advice.
Example
- application: Payment gateway service; metrics: CPU usage, memory, response time, error rate; environment: AWS EC2 with 3 instances; tools: CloudWatch, Grafana.
Follow-up prompts
- Can you write a sample script to collect these metrics using a specific API?
- How should I handle missing data or gaps in the collection?
- What are the best practices for storing high-frequency metrics?