Skip to main content

Post-Deployment Monitoring Policy

1. Objective​

This policy defines the requirements for active monitoring after each deploy to production, covering the mandatory observation window, the minimum metrics and alerts, human validation and the criteria for automatic rollback activation.

During the post-deploy window, this policy uses the continuous health/readiness/availability signals defined in OPS-015; it does not replace the obligation of continuous monitoring in production outside the deploy window.

A deploy does not end with the successful promotion of the artefact - it ends when the version is stable in production and its behaviour has been verified. Without active post-deploy monitoring, anomalies can develop silently for hours before being detected by users or by external systems. The post-deploy window is the period of highest risk of a release: it is when unexpected behaviours under real production load manifest themselves.

The objective of this policy is to ensure that:

  • Each deploy to production is followed by an active observation window with metrics and alerts configured
  • Anomalies are detected and classified automatically, with routing for response
  • Human validation of the health status is carried out before the release is closed
  • The rollback activation criteria are predefined and applied consistently

2. Scope and applicability​

LevelApplicability
L1Recommended; basic health check monitoring
L2Mandatory; defined observation window; automatic alerts; human validation
L3Mandatory; complete monitoring; automatic response to critical anomalies; formal human validation

3. Post-deploy observation window​

After each deploy to production, there must be an active observation window during which the operations team actively monitors the behaviour of the new version:

LevelMinimum observation windowActivity during the window
L115 minutesManual verification of health checks
L230 minutesDashboard monitoring; alerts configured; on-call available
L360 minutes (or until the first complete rollout cycle in progressive deploys)Active monitoring; automatic rollback criteria active; on-call available

During deploys with progressive rollout (canary, blue-green), the observation window applies to each promotion stage.


4. Minimum health metrics​

The following metrics must be configured and being monitored during the post-deploy observation window:

MetricDescriptionAlert threshold (reference)
HTTP 5xx error ratePercentage of responses with a server error> 1% for 5 minutes
P99 latency99th percentile of response time> 2x the baseline of the last 7 days
Crash/restart rateNumber of container/process restarts per minute> threshold defined per service
Health check endpointStatus of the /health endpoint or equivalentFailure in ≥ 2 consecutive instances
ThroughputNumber of requests per second vs baselineDrop > 30% against the baseline without explanation
Authentication/authorisation errorsAnomalous increase in 401/403> 5x baseline for 5 minutes

The specific thresholds must be calibrated per service on the basis of historical behaviour.


5. Alerts and routing​

Post-deploy alerts must be configured before any deploy to production - not configured after a problem is detected:

  • Alerts associated with the deployment for the period of the observation window
  • Alerts routed to an active on-call channel (not only email)
  • Alerts clearly identify the deployment that originated them (version, deploy timestamp)
  • Alerts classified by severity with a defined response SLA:
    • Critical: response in ≤ 5 minutes
    • High: response in ≤ 15 minutes
    • Medium: response in ≤ 60 minutes

6. Post-deploy rollback activation criteria​

The automatic rollback criteria must be predefined and configured for the observation window:

CriterionAction
5xx error rate > threshold during a defined windowAutomatic rollback (L2/L3) or alert for human decision (L1)
P99 latency > 2x baseline during a defined windowImmediate alert; rollback if it persists after 10 minutes
Health check with persistent failureAutomatic rollback
Crash loop in instances/podsAutomatic rollback
Active security alert (runtime anomaly)Immediate alert; human rollback decision

Automatic rollback must be accompanied by immediate notification to the on-call and a record of the automated decision.


7. Post-deploy human validation​

At L2/L3, the deploy is only considered complete after explicit human validation of the health status:

  • The on-call owner checks dashboards and confirms normal status
  • Documented verification (timestamp, identity, observed status)
  • If anomalies are detected but do not reach automatic rollback thresholds, the decision to keep or revert is human and recorded
  • Release marked as "complete" only after positive validation

8. Post-deploy monitoring dashboards​

Monitoring dashboards must be configured and updated before each deploy:

  • Dashboard specific to post-deploy with real-time metrics and comparison with the previous version
  • Filter by active version/deployment
  • Visualisation of the progressive rollout window (if applicable)
  • History of previous deploys for comparison

9. Extension of the observation window​

If, during the observation window, anomalies are detected that do not reach the rollback threshold but cause uncertainty, the window must be extended:

  • Extension decision recorded with justification
  • New duration of the window defined
  • On-call kept available during the extension

10. Traceability​

Each relevant event during the observation window must be recorded:

EventRecord
Start of the observation windowTimestamp + deployed version + responsible on-call
Alert generatedType, severity, timestamp, affected metric
Rollback decision (automatic or manual)Criterion activated, timestamp, target version
Human validation completedIdentity, timestamp, observed status
Closure of the windowTimestamp + final status (complete, rollback, under extended observation)

11. Responsibilities​

RoleResponsibility
DevOps / SREConfigure dashboards and alerts before the deploy; monitor during the window; execute rollback if necessary
On-CallRespond to alerts within the SLAs; take the rollback decision when necessary; validate the post-deploy status
Tech LeadCoordinate the response to anomalies; decide on rollback when the on-call escalates
AppSec EngineerDefine the security metrics to be monitored post-deploy; review security anomaly alerts
GRC / ComplianceAudit post-deploy observation records; verify compliance with windows and SLAs

12. Review and audit of this policy​

This policy must be reviewed annually or after any of the following events:

  • Incident in which a post-deploy anomaly was not detected within the observation window
  • Change of the monitoring platform that affects the dashboards or alerts
  • Change to the incident response SLAs

13. Normative and technical references​

ReferenceRelevance
SbD-ToE Ch. 11 - Secure DeploymentUS-06 (post-deploy monitoring), US-13 (human validation)
SbD-ToE Ch. 12 - OPS-015Continuous health/readiness/availability signal consumed during the post-deploy window
Secure Deployment Policy (25_policy-deploy-seguro.md)Rollout strategies and promotion criteria
Rollback Policy (27_policy-rollback.md)Rollback process activated by monitoring
Security Monitoring Policy (30_policy-monitorizacao-seguranca.md)Security monitoring in production
Alert Management Policy (31_policy-gestao-alertas.md)Alert response SLAs
Site Reliability Engineering (Google SRE Book)Monitoring practices and SLO/SLA
NIST SP 800-61Computer Security Incident Handling Guide