This prompt is designed for observability and SRE teams who need a programmatic gate to prevent a service, feature, or configuration change from being deployed without the required monitoring, alerting, and SLO definitions. Its primary job is to act as a pre-deployment auditor: it receives a service definition, deployment manifest, or feature specification and determines if the observability configuration is complete. The ideal user is a platform engineer integrating this check into a CI/CD pipeline, an SRE building an internal developer portal, or an AI reliability engineer wiring it into an autonomous agent's pre-action approval flow. The prompt expects structured input detailing the service and its current monitoring configuration, and it returns a structured pass/fail report with a specific list of missing components.
Prompt
Required Monitoring Configuration Interruption Prompt

When to Use This Prompt
Define the job, the user, and the operational boundaries for the Required Monitoring Configuration Interruption Prompt.
Do not use this prompt as a general-purpose infrastructure auditor or a real-time anomaly detector. It is not designed to evaluate the quality of monitoring rules, such as whether an alert threshold is tuned correctly or if a dashboard is well-designed. It strictly checks for the presence of required configuration elements. It is also unsuitable for environments where the required monitoring specification is not clearly defined; the prompt relies on a concrete list of required components (metrics, logs, alerts, SLOs) to perform its audit. Using it without a clear specification will lead to inconsistent and unreliable halting decisions.
Before integrating this prompt, ensure you have a well-defined, machine-readable specification of what 'complete monitoring' means for your organization. This could be a checklist of required Prometheus metrics, mandatory log streams, standard alerting rules for critical paths, or a minimum set of SLOs. The prompt's value is in enforcing this policy consistently and preventing silent failures where a service goes live without anyone realizing it's invisible to the operations team. The next step is to copy the prompt template and adapt the [REQUIRED_MONITORING_SPECIFICATION] placeholder to match your internal standards.
Use Case Fit
Where the Required Monitoring Configuration Interruption Prompt works, where it fails, and the operational preconditions for safe deployment.
Good Fit: Pre-Deployment Gates
Use when: a service or feature is about to be deployed and you need to verify that monitoring, alerting, and SLO configuration exist before the deployment proceeds. Guardrail: wire the prompt into a CI/CD pipeline gate that blocks the deployment if the output indicates missing observability components.
Bad Fit: Runtime Anomaly Detection
Avoid when: you need real-time detection of monitoring gaps in already-running production systems. This prompt is designed for pre-action configuration audits, not continuous observability scanning. Guardrail: pair this prompt with a separate runtime monitoring agent for ongoing gap detection.
Required Inputs
What you must provide: a service or feature specification, the expected monitoring configuration (alerts, dashboards, SLOs, log aggregation), and the current deployment manifest or configuration state. Guardrail: validate that all three input categories are present before invoking the prompt; missing inputs should trigger a separate missing-information interruption.
Operational Risk: False-Positive Halts
What to watch: the prompt may flag monitoring components as missing when they exist under different naming conventions or in external systems not reflected in the provided configuration. Guardrail: include a human review step for any halt before blocking a critical deployment; log all halts with the specific missing components for pattern analysis.
Operational Risk: Incomplete Specification
What to watch: if the required monitoring specification is incomplete or outdated, the prompt may pass deployments that lack essential observability. Guardrail: version-control your monitoring specifications and require sign-off from SRE or observability teams before using them as the ground truth for automated checks.
Escalation Path: Unresolvable Gaps
What to watch: the prompt identifies missing monitoring components that cannot be immediately configured due to tooling limitations or organizational boundaries. Guardrail: define an escalation path that routes the gap report to the owning team with a deadline for resolution, rather than blocking the deployment indefinitely.
Copy-Ready Prompt Template
A reusable prompt that halts a deployment or release workflow when required monitoring, alerting, or SLO configuration is absent and generates a structured gap report.
This template is designed for observability and SRE teams who need to enforce a pre-deployment gate: no service or feature should proceed to production without verified monitoring coverage. The prompt acts as an automated compliance check, ingesting a service definition, deployment manifest, or feature flag configuration and comparing it against your organization's required observability standards. It produces a structured interruption report that blocks the workflow and tells the responsible engineer exactly which dashboards, alerts, or SLOs are missing.
Below is the copy-ready template. Replace each square-bracket placeholder with your specific inputs. The [SERVICE_DEFINITION] should include the service name, endpoints, dependencies, and any existing monitoring references. [REQUIRED_MONITORING_SPEC] is your organization's policy document listing mandatory observability components (e.g., 'every service must have a latency p99 alert, an error rate SLO, and a CPU saturation dashboard'). [DEPLOYMENT_CONTEXT] provides the environment, region, and change reason. [OUTPUT_SCHEMA] defines the exact JSON structure you expect back, which your pipeline can parse to block or allow the deployment.
textYou are an observability gate checker for a production deployment pipeline. Your job is to audit a service or feature against a required monitoring specification and halt the workflow if any required observability components are missing. Do not proceed with deployment reasoning. Do not suggest workarounds. Only report gaps. ## INPUT Service Definition: [SERVICE_DEFINITION] Required Monitoring Specification: [REQUIRED_MONITORING_SPEC] Deployment Context: [DEPLOYMENT_CONTEXT] ## INSTRUCTIONS 1. Parse the Service Definition to identify the service name, type, critical endpoints, dependencies, and any existing monitoring, alerting, or SLO references already present. 2. Compare the existing observability coverage against every requirement in the Required Monitoring Specification. 3. For each requirement, determine whether it is: - SATISFIED: evidence exists in the service definition or linked resources. - MISSING: the requirement is not met and no evidence exists. - UNCLEAR: partial evidence exists but is insufficient to confirm compliance. 4. If any requirement is MISSING or UNCLEAR, the overall gate status is BLOCKED. If all requirements are SATISFIED, the gate status is PASSED. 5. Generate a structured report following the Output Schema exactly. ## CONSTRAINTS - Do not invent monitoring configurations that are not present in the input. - Do not assume defaults or "common practice" fills gaps. - If a requirement references a specific metric, threshold, or dashboard name, it must be explicitly matched. - Treat UNCLEAR as BLOCKED. Do not pass ambiguous coverage. - Do not include deployment advice, remediation steps, or commentary outside the report structure. ## OUTPUT SCHEMA Return valid JSON matching this structure: [OUTPUT_SCHEMA] ## EXAMPLES [EXAMPLES]
To adapt this template, start by defining your [REQUIRED_MONITORING_SPEC] as a version-controlled policy document. This spec should be specific enough that the model can perform exact matching: 'Service must have a Prometheus alert named HighErrorRate with a threshold of 5% over 5 minutes' rather than 'Service must have error alerting.' The [OUTPUT_SCHEMA] should include fields for gate_status, service_name, checked_at, and an array of findings with requirement_id, status, and evidence. The [EXAMPLES] placeholder should contain at least one PASSED and one BLOCKED example to anchor the model's behavior. After copying the template, test it against a known-bad service definition to confirm it blocks correctly, and against a fully compliant one to confirm it does not false-positive. Wire the JSON output into your CI/CD pipeline so that a BLOCKED status prevents the deployment from proceeding and posts the findings array to the responsible team's channel.
Prompt Variables
Inputs the Required Monitoring Configuration Interruption Prompt needs to reliably detect missing observability components and generate a structured halt report. Wire these variables into your deployment pipeline or agent workflow before invoking the prompt.
| Placeholder | Purpose | Example | Validation Notes |
|---|---|---|---|
[SERVICE_NAME] | Identifies the service or feature being deployed so the report is traceable. | payment-api | Required. Must be a non-empty string matching your service registry naming convention. Reject if null or whitespace. |
[DEPLOYMENT_CONTEXT] | Provides the target environment and release metadata for scoping the monitoring check. | production-us-east-1, v2.4.1 | Required. Must include environment and version. Parse as JSON or key-value pairs. Fail if environment field is missing. |
[REQUIRED_MONITORING_SPEC] | Defines the mandatory monitoring components, alert rules, and SLO targets that must be present. | See monitoring-spec.yaml | Required. Must be a valid structured object or document reference. Validate that spec includes dashboards, alerts, and SLO sections. Reject if any section is empty. |
[CURRENT_OBSERVABILITY_STATE] | Captures the actual deployed monitoring configuration for comparison against the spec. | Prometheus scrape configs, Grafana dashboard JSON, Alertmanager rules | Required. Must be a non-empty structured input. Accept JSON, YAML, or structured text. Validate parseability before prompt invocation. If empty, treat as all-missing. |
[SERVICE_CRITICALITY_TIER] | Indicates the tier or priority of the service to determine blocking severity. | tier-1 | Required. Must match an allowed enum: tier-0, tier-1, tier-2, tier-3. Default to tier-2 if unset but log a warning. Controls whether missing items block deployment. |
[ALLOWED_PARTIAL_GAPS] | Lists monitoring components that are explicitly permitted to be absent or deferred. | ["custom-dashboard-aux"] | Optional. Accept a JSON array of component IDs. If null or empty, all gaps are treated as blocking. Validate each entry against known component IDs. |
[OUTPUT_SCHEMA] | Defines the expected structure for the interruption report so downstream systems can parse it. | See output-contract table | Required. Must be a valid JSON Schema or TypeScript interface definition. Validate schema syntax before use. Reject if schema is missing required fields: service, status, gaps, blocking. |
Implementation Harness Notes
How to wire the Required Monitoring Configuration Interruption Prompt into an SRE or CI/CD workflow with validation, retries, and human escalation.
This prompt is designed to act as a pre-deployment gate, not a passive advisor. It should be integrated into a CI/CD pipeline or an infrastructure-as-code (IaC) review workflow where it receives a structured representation of a service definition—such as a Kubernetes manifest, Terraform plan, or a service catalog entry—and returns a strict pass/fail decision. The application layer must parse the JSON output and block the pipeline progression if monitoring_complete is false. Do not rely on the model's conversational tone; the harness must enforce the binary outcome.
To wire this in, construct the [SERVICE_DEFINITION] input by extracting relevant fields from your deployment artifacts: service name, exposed endpoints, declared dependencies, resource types, and any existing monitoring annotations. The [REQUIRED_MONITORING_SPEC] should be a static configuration object maintained in your repository, defining mandatory checks like 'all HTTP endpoints must have an SLO', 'all stateful services require disk-usage alerts', or 'every service must link to a runbook'. After the model returns its JSON report, implement a strict validator that checks for the presence of monitoring_complete, blocking_gaps, and severity fields. If the JSON is malformed, retry once with a repair prompt that includes the raw output and the original schema; if it fails again, escalate to a human operator with the raw output attached.
Logging is critical for auditability. Capture the full prompt, the model's raw response, the parsed JSON, and the pipeline decision (proceed/block) as structured logs. For high-risk production environments, route any blocking_gaps with a severity of critical to a human review queue before the pipeline hard-fails. This allows an SRE to override a false positive—for example, when a service legitimately uses a sidecar for metrics collection that the prompt's pattern-matching missed. The harness should provide a manual override mechanism that records the reviewer's identity, timestamp, and justification, feeding that feedback into future prompt iterations to reduce false-positive interruptions.
Expected Output Contract
Fields, format, and validation rules for the structured interruption report generated when required monitoring configuration is absent. Use this contract to parse the model output, validate correctness, and decide whether to block deployment or escalate.
| Field or Element | Type or Format | Required | Validation Rule |
|---|---|---|---|
monitoring_gate_result | string enum: PASS | FAIL | Must be exactly PASS or FAIL. If any required component is missing, value must be FAIL. Reject any other value. | |
service_identifier | string | Must match the [SERVICE_NAME] input. Non-empty. If null or mismatched, fail validation and request correction. | |
deployment_target | string | Must match the [DEPLOYMENT_TARGET] input. Non-empty. Acceptable values include environment names or cluster identifiers. Reject empty string. | |
missing_components | array of objects | Must be present when gate_result is FAIL. Each object must contain component_type, severity, and remediation fields. If gate_result is PASS, array must be empty. Validate array length matches failure count. | |
missing_components[].component_type | string enum: DASHBOARD | ALERT | SLO | LOG_BASED_METRIC | UPTIME_CHECK | TRACING | ERROR_BUDGET | Must be one of the enumerated values. Reject unknown component types. Case-sensitive match required. | |
missing_components[].severity | string enum: CRITICAL | HIGH | MEDIUM | Must be one of the enumerated values. CRITICAL reserved for SLO and ALERT gaps on production deployments. Validate against [ENVIRONMENT] context. | |
missing_components[].remediation | string | Must be non-empty and contain actionable guidance referencing the specific component_type. Minimum 20 characters. Must not contain placeholder text like 'fix this'. | |
evidence_summary | string | Must summarize the audit scope: what was checked, what was found, and the pass/fail conclusion. Minimum 50 characters. Must not contain unresolved placeholders or hallucinated service names. |
Common Failure Modes
What breaks first when using a Required Monitoring Configuration Interruption Prompt and how to guard against it in production.
False-Positive Halts on Implicit Defaults
What to watch: The prompt blocks deployment because it cannot find explicit monitoring configs, but the platform applies sensible defaults (e.g., default CPU alerts). This creates a noisy gate that engineers learn to bypass. Guardrail: Provide a list of platform defaults as [KNOWN_DEFAULTS] in the prompt context so the model can distinguish between 'missing' and 'inherited' configuration.
Schema Drift in Monitoring Definitions
What to watch: The required monitoring specification ([REQUIRED_MONITORING_SPEC]) becomes stale as teams adopt new alerting backends or SLO formats. The prompt enforces an old schema, missing critical gaps in the new system. Guardrail: Version the monitoring spec and include a spec_version field in the prompt input. Run a periodic eval comparing the spec against the live monitoring API schema to detect drift.
Overly Strict SLO Threshold Blocking
What to watch: The prompt halts a low-risk canary deployment because it lacks a 99.99% SLO, applying the same strictness to all services. This blocks iterative development and erodes trust in the gate. Guardrail: Include a [SERVICE_TIER] variable (e.g., critical, standard, experimental) in the prompt and map tiers to different required monitoring profiles.
Hallucinated Monitoring Resource Names
What to watch: The model generates a structured report citing specific alert policies or dashboard names that don't exist, confusing the operator who must resolve the gaps. Guardrail: Instruct the prompt to reference only generic resource types (e.g., 'a CPU utilization alert') rather than specific names, unless it can verify them against a provided [EXISTING_MONITORING_INVENTORY].
Context Window Truncation of Service Config
What to watch: A large service configuration or IaC file exceeds the context window, causing the prompt to miss entire sections and report false gaps for truncated resources. Guardrail: Pre-process the input to extract only monitoring-relevant sections before passing it to the prompt. Implement a pre-check that warns if the input exceeds a safe token limit.
Silent Failure on Unparseable Output
What to watch: The model returns a malformed JSON report that fails validation, but the orchestration layer treats this as a 'pass' and allows deployment to proceed without monitoring. Guardrail: The application harness must strictly validate the output against the [OUTPUT_SCHEMA]. If parsing fails, the system must default to a safe state—either blocking the deployment or escalating to a human with the raw output attached.
Evaluation Rubric
Use this rubric to test the Required Monitoring Configuration Interruption Prompt before shipping. Each criterion defines a pass standard, a failure signal, and a concrete test method. Run these checks against a golden dataset of deployment configs with known missing monitoring components.
| Criterion | Pass Standard | Failure Signal | Test Method |
|---|---|---|---|
Missing Alert Detection | Prompt correctly identifies all missing alert rules from [DEPLOYMENT_SPEC] and lists them in the [MISSING_ALERTS] field | Output omits a known missing alert or includes an alert that is already configured | Run 20 deployment specs with 3-5 known missing alerts each; assert precision >= 0.95 and recall >= 0.95 |
SLO Gap Identification | Prompt detects all services in [DEPLOYMENT_SPEC] that lack an SLO definition and populates [MISSING_SLOS] with service names and recommended SLO targets | Output misses a service without an SLO or recommends an SLO for a service that already has one defined | Run 15 deployment specs with mixed SLO coverage; assert recall of missing SLOs >= 0.90 and false-positive rate <= 0.05 |
Dashboard Coverage Check | Prompt identifies all services without a linked dashboard and populates [MISSING_DASHBOARDS] with service name and suggested dashboard type | Output claims a dashboard is missing when one is referenced in the config or misses a service with no dashboard reference | Run 10 deployment specs with known dashboard assignments; assert exact match on missing dashboard list |
Structured Output Schema Compliance | Output strictly conforms to the [OUTPUT_SCHEMA] with all required fields present and correctly typed | Output is missing a required field, contains an extra field not in the schema, or uses an incorrect type for a field | Validate output against JSON Schema using a programmatic validator; assert 100% schema compliance across 50 test runs |
No False Halts on Complete Configs | Prompt returns [HALT] = false and an empty [MISSING_COMPONENTS] array when all monitoring components are present | Prompt incorrectly sets [HALT] = true or populates [MISSING_COMPONENTS] for a fully configured deployment | Run 10 fully configured deployment specs; assert [HALT] = false and [MISSING_COMPONENTS] is empty array for all |
Logging Pipeline Gap Detection | Prompt detects missing log export, retention, or sampling configuration and populates [MISSING_LOGGING] with specific gap descriptions | Output fails to flag a deployment with no log export configured or flags a deployment that has complete logging config | Run 10 deployment specs with varied logging completeness; assert recall >= 0.90 and precision >= 0.90 on logging gaps |
Tracing Instrumentation Check | Prompt identifies services without tracing instrumentation or without a tracing backend configured and populates [MISSING_TRACING] | Output misses a service with no tracing SDK or exporter configured, or flags a service that has complete tracing setup | Run 10 deployment specs with mixed tracing coverage; assert recall >= 0.85 and false-positive rate <= 0.10 |
Human-Readable Report Generation | Prompt generates a [HUMAN_REPORT] that summarizes all gaps in plain language with severity levels and recommended actions | Report is missing a gap that appears in structured fields, uses vague language, or omits severity classification | Manual review of 10 reports by an SRE; assert all gaps from structured output appear in report and severity is assigned correctly |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Adapt This Prompt
How to adapt
Start with the base prompt and a static list of required monitoring components. Use a simple JSON output schema with missing_components and severity fields. Run against a small set of known service configs to calibrate detection accuracy.
codeYou are reviewing a service deployment configuration. Required monitoring components: [REQUIRED_MONITORING_LIST]. Service: [SERVICE_NAME] Configuration: [CONFIG_DUMP] Return JSON with missing_components array and overall pass/fail.
Watch for
- False positives when monitoring is configured under unexpected keys or naming conventions
- Overly strict matching that flags equivalent configurations as missing
- No handling of optional vs. mandatory monitoring tiers

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us