Connect Couchbase alerts to your on-call team
Choose the delivery method, register your resources and verify how incidents close.
Comtinel receives alerts, selects a team and escalation policy, and tracks acknowledgement and resolution. Your Couchbase or monitoring environment evaluates the condition. No database password is stored in Comtinel.
Choose a supported delivery method
Server or Capella through Alertmanager. Prometheus collects metrics and evaluates rules. Alertmanager sends webhook v4 with per-alert firing/resolved status. This supports automatic recovery when send_resolved is enabled.
Capella native webhook. Operational clusters and App Services on Enterprise or Developer Pro support plans can send metric notifications. Native payloads have no documented recovery status or lifecycle token. ACK in Comtinel, check the condition, then resolve manually.
Server's documented native alerts use SMTP email and UI popups. They do not establish a native generic webhook or paired recovery contract. Server 7.0+ provides Prometheus metrics; the newer discovery endpoint is documented from 7.2.1. Confirm metrics, roles and TLS on the exact edition and patch level. Older exporters and email parsing are outside this integration.
Capella native integrations exclude operational disruption alerts, Analytics and Basic-plan clusters. Capella's SaaS feature availability is governed by the service and support plan, not a Server version number. Native webhooks and Alertmanager are separate protocols; choose one per workspace. All resources in the workspace share its credential and mapping.
Official references: Server alerts, Server metrics, Capella prerequisites and native payload fields.
Prepare your workspace
- 1
Prepare responders and routing
Create your team, schedule and escalation policy. Add a routing rule with source Couchbase. Use alert name
ComtinelCouchbaseTestAlertfor panel tests. Real routes can match mapped severity andcouchbase.resource_id,couchbase.project_idor your service label. Configure watchers explicitly for Couchbase. - 2
Register source identities
Open System → Couchbase integration. For Alertmanager, register permanent cluster IDs as
[{"id":"production-eu","kind":"cluster"}]. For Capella, register the actual resource ID, resource kind, organization ID (payloadtenant.id) and project ID. UseappServicefor App Services. Save and enable the integration. - 3
Generate the credential
Copy the endpoint and generate the Couchbase secret. Paste it only into your sender's Bearer credential. Protect it as a workspace credential; registered resources are identity namespaces, not independent authentication boundaries. Rotation replaces the credential for every registered sender. Allow up to 60 seconds for settings propagation.
Connect metrics through Alertmanager
For Server, prepare an External Stats Reader account where available, a trusted certificate and reachable metrics/discovery endpoints. For Capella, the documented metrics setup uses cluster read credentials, its CA and allowed IPs. Private-endpoint metrics require Capella Support enablement. Follow the Capella metrics procedure. Confirm edition-specific privileges before choosing a credential.
Couchbase Community Server 8.0.1 provides authenticated Prometheus metrics with a read-only administrator account. Its Community license has no fixed trial expiry and limits clusters to five nodes and four cores per node. Enterprise and Capella have separate terms. Keep database metrics credentials in your monitoring environment; the Comtinel secret authenticates only the webhook. See the Community license and edition comparison.
Add a permanent couchbase_cluster_id label to scraped metrics and retain it in rule expressions. Add comtinel_source="couchbase" to the alert so Alertmanager selects the dedicated receiver. Choose thresholds from your workload and verified metric names. Comtinel does not assume that a metric rule is equivalent to a native Couchbase event.
Controlled Prometheus rehearsal rule
groups:
- name: comtinel-couchbase-rehearsal
rules:
- alert: ComtinelCouchbaseTestAlert
expr: vector(1) > 0
for: 1m
labels:
comtinel_source: couchbase
couchbase_cluster_id: production-eu
severity: warning
annotations:
summary: Controlled Couchbase routing rehearsalThis rule verifies delivery only; it does not read the database. Change its expression to vector(0) > 0 and reload to test recovery. Then run an approved, reversible test of a real metric rule.
Merge with the existing Alertmanager configuration
# Merge into your existing Alertmanager config. Mount the secret file securely.
route:
receiver: existing-default
routes:
- matchers: ['comtinel_source="couchbase"']
receiver: comtinel-couchbase
receivers:
- name: existing-default
- name: comtinel-couchbase
webhook_configs:
- url: "https://YOUR_COMTINEL_API/webhooks/couchbase/YOUR_WORKSPACE"
send_resolved: true
max_alerts: 0
http_config:
authorization:
type: Bearer
credentials_file: /etc/alertmanager/secrets/comtinel-couchbasePreserve your existing default receiver and sibling routes. Run promtool check rules, promtool check config and amtool check-config before reloading. Keep send_resolved: true. Disable webhook truncation with max_alerts: 0 and choose grouping that keeps requests within 200 alerts and 1 MiB. A truncated payload cannot tell Comtinel which omitted alerts recovered.
Try the shared demonstration lab
The Comtinel demonstration lab includes a Couchbase scenario alongside Grafana, Prometheus and Alertmanager. Access requires an active demo account that we supply; the scenario becomes available when its connection is ready. This is a synthetic demonstration bucket, with no customer data.
- 1
Create one test document
In the Couchbase section, choose “Test belgesi oluştur”. The lab writes a short-lived document to its dedicated bucket. Prometheus reads the real
kv_curr_itemsmetric and Alertmanager sends the Couchbase alert to the configured workspace. - 2
Inspect and acknowledge
Open Prometheus to inspect the metric and alert. In Comtinel, filter incidents by Couchbase and verify the team, real notification and ACK. ACK records the response; it does not remove the database document.
- 3
Recover and repeat
Choose “Normale döndür” or wait up to three minutes for document cleanup. Confirm the zero-count metric and incident recovery, then repeat after the displayed cooldown. An unavailable scrape keeps an existing firing alert open until a healthy zero-count scrape confirms recovery.
A customer uses the same metrics → Prometheus → Alertmanager → authenticated Comtinel webhook flow in their own environment. The lab buttons and installation commands operate only our demonstration environment. They are optional test tools, and do not establish acceptance of native Capella webhooks.
Connect a native Capella webhook
In the selected Capella project, open Alerts → Webhooks → Add Integration. Enter the public HTTPS endpoint, select Bearer Token and use the Comtinel Couchbase secret. Check resource exclusions, network allowlists and the integration limit of five per project. Comtinel accepts Bearer authentication; Basic is not supported here.
Run Capella’s Test Connection before saving the integration. If its test payload is rejected, share the redacted payload and response with Comtinel so compatibility can be checked; do not treat the native connection as ready until the test succeeds. The Alertmanager method can be used independently. A test that contains a real alert payload may create an incident, so use a test team and resolve it manually after checking delivery.
The fixed native payload uses details (kind, name, severity, summary, description), tenant, project, resource and createdAt. Comtinel identifies a notification using the full resource namespace, alert kind and createdAt. A retry with the same identity stays deduplicated, including after manual resolution. A different createdAt is a new notification; it is not proof of recovery or a refiring episode.
Map fields and inspect the result
Each method has documented default paths in the settings screen. Optional overrides use RFC6901 JSON pointers: {"resourceId":"/labels/cluster","severity":"/annotations/priority"}. For Alertmanager these read each alert with merged common labels and annotations; for Capella they read the whole body. Escape slash as ~1 and tilde as ~0. Arrays, expressions and prototype traversal are unsupported.
Available mapped fields are organizationId, projectId, resourceId, resourceKind, alertId, alertName, severity, summary, description, labels and url. Lifecycle status and timestamps cannot be remapped. Capella keeps createdAt; Alertmanager keeps per-alert status and startsAt. Mapping does not make Capella's fixed body editable and cannot change the authenticated workspace.
Severity maps run before the allowed-severity list. Empty allowlists accept all severities; missing severity is never promoted to critical. Recovery bypasses this filter. Reserved couchbase.* labels are generated by Comtinel. HTTP(S) links can be displayed but are never fetched by intake. Alertmanager retains safe generator links; no native Capella URL is guessed.
Use Validate payload with redacted received JSON before activation. It queues nothing. Custom mappings must expose stable identities for every resource; changing identity mappings with active alerts breaks correlation.
Verify acknowledgement and resolution
- 1
Rehearse Comtinel
Send a panel test, check the Couchbase source filter, owning team, policy and notification. ACK the incident and retry the same test. It must retain its identity and avoid restarting escalation. An uncertain response must be retried with the retained identity.
- 2
Check the chosen closing behavior
For Alertmanager, Resolve test closes the same episode. Early recovery suppresses late firing; old recovery cannot close a newer episode. For native Capella, inspect the condition and resolve manually. ACK and resolve affect only Comtinel.
- 3
Verify delivery from Couchbase
Record exact Server version/edition or Capella plan, resource identities, sanitized provider payloads and incident IDs. Verify real provider delivery, responder receipt, ACK, retry, recovery or manual resolve, a second cluster, wrong tenant/source tokens and secret rotation. Panel tests bypass provider networking and public authentication.
A 202 response confirms queue acceptance or a prior delivery, not that paging succeeded. 400 indicates an invalid protocol, mapping or identity; 401 an invalid credential; 403 a disabled integration; 413 an oversized body; 503 asks the sender to retry. Check the incident timeline and unrouted incidents. If valid requests continue to fail, share the response code and a redacted payload with Comtinel.
Before production use, test the method you selected against the actual cluster or Capella resource. Verify the intended responder receives the notification and that the incident closes in the expected way. A panel test or demonstration lab does not verify your provider's network path.