Complete AI Training

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.

All 19 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. 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

  1. Ask me for any missing context, especially the application and metrics.
  2. Based on my inputs, propose a data collection strategy: what to collect, how often, and from which sources.
  3. If I have multiple instances, describe how to aggregate the data into a single view.
  4. Recommend a storage and visualization approach (e.g., time-series database, dashboard).
  5. 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?