<< All versions

Skill v1.0.0

currentAutomated scan100/100
oxygen914/kubeoncall/database-latency-triage
──Details
PublishedNovember 5, 2026 at 06:06 PM
Content Hashsha256:afd8557eb30c1356...
Git SHAeee703b3d98a
──Files
Files (1 file, 2.2 KB)
SKILL.md2.2 KBactive
SKILL.md · 56 lines · 2.2 KB

id: database-latency-triage name: Database Latency Triage version: v2 description: Diagnose database latency, pool saturation, lock contention, and dependency pressure without modifying data. triggers: [database latency, slow query, connection pool, lock wait, deadlock] services: [mysql, postgres, database] resourceTypes: [service, pod] categories: [database, dependency] applicableTasks: [QUERY_LOGS, QUERY_METRICS] tags: [database, latency, connection, lock, dependency] maxRisk: LOW toolWhitelist:

  • knowledge.searchSop
  • kubernetes.describeResource
  • kubernetes.getPods
  • kubernetes.queryLogs
  • kubernetes.queryEvents
  • kubernetes.queryPodLogs
  • kubernetes.queryMetricsContext
  • prometheus.queryRange
  • prometheus.instantQuery
  • prometheus.rangeQuery
  • alerts.getActiveAlerts
  • changes.getRecentChanges
  • alertmanager.listAlerts

Database Latency Triage

Diagnostic objective

Distinguish database saturation from application pool, retry, network, and transaction behavior using current evidence.

Required live evidence

Collect request latency and errors, pool wait/utilization, active connections, query latency, lock waits, long transactions, replication lag, and the change timeline. Compare an affected service with a healthy peer.

Decision branches

  • Pool wait rises while database latency is normal: inspect client limits, leaks, and retry concurrency.
  • Query and lock latency rise together: identify the transaction pattern and owner without killing sessions.
  • Replication lag rises: separate replica read pressure, network delay, and primary write saturation.
  • Application retries lead the database spike: treat retry amplification as a contributing cause.

Safe next step

Preserve query identifiers and timestamps, limit conclusions to verified signals, and use the dependency owner runbook for approved mitigation.

Prohibited actions

Do not clean data, kill sessions, alter schema, fail over, or change database configuration from this Skill.

Recovery and escalation

Require latency, errors, pool wait, locks, and lag to remain normal across two windows. Escalate for data integrity risk, primary unavailability, or sustained connection exhaustion.

All versions