Lesson 6 of 6 · Monitoring & Observability

Observability in DBA Workflows

How observability fits every stage of DevOps, SRE, and DBRE work, observability as code, a worked incident, and how roles share it.

Beginner 8 sections 4 min read

Observability in every stage

In a modern DBA team, observability isn't a screen someone looks at when things go wrong. It's built into every stage of the DevOps, SRE, and DBRE workflow you've learned in this path: it sets priorities when planning, lives in Git as code, checks changes in the pipeline, guards every release, and turns every incident into the next improvement.

PLANCODETESTRELEASEOPERATELEARN SLOs, KPIs,and OKRs setpriorities dashboardsand alertsas code performancecompared toa baseline deploy markers,canary checks,budget gates alerts,on-call,incidents postmortemsand trendsbecome stories Observability: metrics, logs, traces, and events from every database, server, and application the loop: what operations reveal becomes the next plan

Plan: SLOs guide the work

In SRE and DBRE, the error budget decides priorities. While a database's SLO is healthy and budget remains, the team spends its time on features and improvements. When the budget is spent, reliability work, such as fixing the cause of recent incidents, goes to the top of the backlog. KPIs and OKRs, from Measuring What Matters, are reviewed in sprint planning, so monitoring data drives the Agile process.

Code: observability as code

Dashboards, alert rules, and exporters are defined in files, kept in Git, reviewed in pull requests, and deployed by the pipeline, exactly like the rest of the database automation:

  • Alert rules live as YAML, as in Database Monitoring Tools.
  • Dashboards are saved as JSON in Git, or created with Terraform's providers for Grafana, Datadog, or cloud monitoring.
  • Exporters and agents are installed and configured by Ansible on every new database server, so no database is ever left unmonitored.
  • Terraform creates cloud alarms alongside each database, such as a CloudWatch or OCI alarm for storage and CPU.
# Ansible: every Oracle server gets the exporter and the team's custom metrics
- name: Deploy the Oracle metrics exporter
  hosts: oracle
  become: true
  roles:
    - oracle_exporter            # installs the exporter as a service
  vars:
    exporter_custom_metrics: files/custom-metrics.toml

Test and release: guarding every change

Performance baselines in CI
The pipeline runs key queries on a production-sized copy and compares timings and execution plans with the previous release, failing the build if they get much worse.
Deployment markers
The pipeline adds an annotation to dashboards at every release, so a change in a chart can be matched instantly to the release that caused it.
Canary checks
After releasing to the first server or a small share of traffic, the pipeline checks error rates and response times before continuing.
Error budget gates
Some teams block risky production releases automatically while a service's error budget is exhausted.

A worked example

A month after the customer V-Buck points feature from Putting It All Together went live, the application team releases a new "points history" page.

  1. Detect: 40 minutes after the release, the orders service's SLO burn-rate alert pages Kofi: order inserts are getting slower, and the error budget is draining fast.
  2. Triage: the Grafana dashboard shows the slowdown started exactly at the release marker. Database load, from ASH, is dominated by one new query against customer_vbuck_points.
  3. Investigate: an application trace links the new page to that query. Its execution plan shows a full table scan, which competes with order inserts for I/O.
  4. Mitigate: the application team turns off the new page with its feature flag. Within minutes, insert times return to normal and the burn rate drops.
  5. Resolve: Kofi adds an index for the query through a Liquibase changeset, tested in the pipeline against the performance baseline, and the feature is switched back on.
  6. Learn: a blameless postmortem leads to two stories: add the new page's queries to the CI performance tests, and add a dashboard panel for the slowest queries per release.

Total time from page to recovery: 25 minutes. No customer reported a problem, and the month's SLO was still met, because the problem was seen, explained, and fixed using data, not guesswork.

How the roles share it

RoleWhat they do with observability
DBA or DBREOwns database SLOs, dashboards, alerts, and runbooks; investigates database performance; automates fixes
DevelopersInstrument applications with traces; use database dashboards to see how their code performs; own their service's SLOs
SRE and platform teamsRun the shared monitoring platform; define common standards for alerts, SLOs, and on-call
Managers and product ownersReview KPIs, SLO reports, and OKRs to decide priorities

You've finished the Database DevOps Engineer path

Congratulations. You've gone from how modern teams plan work with Agile, through Git, automation, Terraform, Ansible, and database CI/CD, to the monitoring and observability that keep it all reliable. Together with DBA Foundations and Cloud DBA, that's the full roadmap: the skills behind the modern DBA, cloud DBA, and database DevOps engineer roles.

From here, go deeper on the tools your team uses, revisit any module on the roadmap, or, if you're training a team, see how a team cohort can take them further.

Key takeaways

  • Observability supports every stage: planning with SLOs, coding dashboards and alerts, testing against baselines, guarding releases, operating, and learning.
  • Error budgets decide when reliability work comes first.
  • Dashboards, alert rules, and exporters are code: in Git, reviewed, and deployed by Terraform, Ansible, and the pipeline.
  • Deployment markers, canary checks, and budget gates connect releases to their effects.
  • DBAs, developers, SREs, and managers share observability, each using it for their own decisions.