Skip to main content

Annotations

Annotations mark deployments, alerts, feature-flag changes, campaigns, and configuration changes on your charts, so you can line a latency spike, error surge, or throughput drop up with the change that caused it. Every dated event sits on the same time axis as your data, so you can answer "what changed?" on the chart itself, without switching tools.

An annotation on the Explore logs chart: a deployment marker with a hover tooltip showing the count by severity at that time and the deployment event, its service, and environment.

The same events show up wherever you analyze your data:

  • APM: deployment and custom-event annotations overlay on the catalog charts and on the charts in a service or database drilldown. See Annotations in APM.
  • Explore: the same annotations overlay on the time-series chart above your logs and spans results, alongside version benchmark markers. See Annotations in Explore.

What you need​

Annotation types​

Coralogix draws each type in its own color, with a matching entry in the chart legend. Only types that have events in the current time range appear.

  • Deployments: deployments and releases from your CD pipeline, sent as a cdEvent through the ops-events ingest API. These annotations carry pipeline and version-control metadata: the pipeline run, repository, branch or tag, and commit.
  • Custom events: alerts, feature flags, campaigns, and configuration changes, sent as a customEvent through the ops-events ingest API or created from the Annotations control (see Create a custom event).
  • Version benchmark: in Explore, each released version measured against the one before it, sourced from the version-tags API. See Version benchmark annotations.

Turn on annotations​

Open the Annotations control, turn annotations on, and select which event types to show. Select at least one type, or no annotations draw. Your selections persist across sessions. One control covers every chart on the screen. Learn more in the control opens this guide.

The open Annotations control in Explore: the on/off toggle, the description with Learn more, the Event types picker with the Deployments and Custom events chips, the Display filters with the All events, Exact match, and Partial match options and the Includes events with defined fields that are empty toggle, the note that annotations follow the current time range, and the Create custom event button.

Annotations draw as vertical markers across the chart, aligned to event timestamps, and follow the current time range. Hover a marker to read the event's description, service, and environment. When several events share a time bucket, the tooltip shows the first with a count of how many landed there; Cmd or Ctrl-click to pin it and read the full list. Select an event for its actions: view the event's details, copy its description, service, or environment, open it in its CD system, and, when the event carries them, open the pipeline run or repository.

An annotation tooltip reading 4 events at this time, with a deployment event and its environment, a +3 more line, and the hint to select for actions or Cmd-click to pin.

Create a custom event​

Mark a moment that no pipeline reports, such as a database migration, a campaign, or a configuration change, without calling the API.

  1. In Explore or APM, open the Annotations control and select Create custom event.
  2. Under What happened, enter a Description of up to 80 characters. The marker shows it on hover.
  3. Under When it happened, set the Date & time to mark, in the time zone set in your preferences. A future time works too: the event appears on your charts from that time.
  4. Optionally, under Where it applies, select an Environment and a Service. The service list follows the environment you select. Leave both empty to show the event on every chart.
  5. Check the Preview, which draws your event's marker on example data. Hover over the marker to see how it appears on your charts.
  6. Select Create.

The Create custom event drawer: the What happened description field with its 80-character counter, the When it happened date and time, the optional Where it applies environment and service, and the Preview of the event's marker on example data.

Coralogix saves the event as a custom event. It can take a few minutes to appear on your charts. Opened from an APM service, the form starts with that service and its environment filled in. If you close the form after you start editing, Coralogix asks before it discards your entries.

Create custom event appears only if your role can send ops events. To send events from a pipeline or script instead, see Send events to Coralogix.

Event details​

Select View event details on an event, from the chart tooltip or its actions menu, to open its details drawer. In an APM drilldown, you can also select an event on the Activity timeline. Explore and APM open the same drawer.

The drawer header shows the event's name and its type: Deployment or Custom event. A deployment is named after its pipeline, with its description underneath. Under the name, the header lists the event's Service, with the service's health and a link that opens it in APM, its Environment and Env type, and its Timestamp, with how long ago it happened. The header has controls to:

  • Turn on Compare to read the event side by side with an earlier one. See Compare two events.
  • Select the impact window: 1, 3, 6, or 12 hours around the event. The default is 12 hours.
  • Collapse or expand all sections.
  • Open the event's actions menu.

The event details drawer for a deployment: the pipeline name and Deployment badge, the description, environment, and timestamp, the 12h around the event window, the section rail, the Before vs. after cards, and the Logs section with the Error logs and Log volume charts and the Error comparison table.

Above the header, you can copy a link that opens the drawer on this event, open the drawer full screen, and step to the next or previous event in the current range. The link narrows the time range to at most 6 hours on either side of the event, so the event is always in range.

Move between sections​

The drawer splits the event's impact into sections, listed in a rail on its left side. The rail highlights the section you're reading. Select a section in the rail to open it and scroll to it, or select Collapse to fold the rail to icons. On a narrow screen, the rail shows icons only.

  • Select a section header to fold or open the section. A folded section shows its main numbers beside its title.
  • To reorder the sections, drag them in the rail or by a section's handle, or use a section's up and down arrows. Coralogix keeps the order in your browser, separately for Explore and APM.

Event details sections​

  • Before vs. after: compares the half of the impact window after the event with the half before it, in four cards: High severity log ratio, Newly introduced errors, Error volume, and Triggered alerts. Each card shows the value after the event, its change, and the value before, and links to the logs or alerts behind it. See new errors and See error templates open the event's errors in Explore.
  • APM metrics: Requests, Errors, and Latency for the event's service, before and after the event. The section appears for an event that names a service. If your account doesn't send traces to APM, it explains how to enable APM instead. In an APM drilldown, these charts follow the drilldown's environment and filters, and each one offers the same chart actions as the drilldown, such as opening its query in Metric Explorer.
  • Logs: Error logs (the share of logs at Error or Critical severity) and Log volume (logs per minute) for the event's service or subsystem, or for the whole account when the event names no service. The Error comparison table lists the errors around the event, with each error's status (New, Stopped, or Ongoing) and how many times it appeared.
  • Alerts & Cases:
    • Alerts: an Alerts over time chart and a table of the alerts that fired on the event's service after the event, with their definitions as they stand now. Open in Alerts opens Alerts in a new tab. The section reads the system/alerts.history dataset. If your account doesn't keep alert history, the section says so, with Open Dataspace Management to turn it on.
    • Cases: if your account uses Cases, a table of the cases opened on the event's service after the event, with search and an All or Active filter. Selecting a case opens it in a case drawer in APM, and in a new tab in Explore. Open in Cases opens Cases in a new tab.
  • Attributes: the fields the event was reported with, in Table, JSON, and Raw views, each with search and copy. The Table view gives known fields readable names, such as CD system, Pipeline, and Commit.

The Alerts & Cases section: the Alerts part with Open in Alerts and the note to turn on alert history in Dataspace Management, and the Cases part with Open in Cases, search, the All and Active filter, and a table of the cases opened after the event.

The Attributes section in the Table view, with the Table, JSON, and Raw tabs, attribute search, and readable keys such as CD system, Pipeline, Repository, Branch, and Commit.

Each chart has a menu to switch between line, area, and bar charts, switch the scale between linear and logarithmic, and, for most charts, open a full view.

Compare two events​

In Explore and APM, you can compare the event with an earlier one, such as two deployments of the same service. Compare appears when there's an earlier event up to 30 days before this one.

  1. In the drawer header, turn on Compare.
  2. In the compare bar, select the event to compare with. The picker lists earlier events up to 30 days back and suggests the closest match first: same service, environment, and type.

Every section then reads both events:

  • Charts draw both events on a shared axis of time from the event, with each event's change in the legend. A table under each chart row shows each event's change and the gap between them in percentage points.
  • A metric that differs by less than 5 percentage points between the events is grayed out and listed after the ones that moved. A Before vs. after card that didn't change is grayed out the same way.
  • Compared periods charts the error logs around both events.
  • The alerts and cases tables tag each row with the event it belongs to.
  • Attributes get a column per event, a count of the attributes that differ, and Show only differences in the Table view.

Events on different services are each read from their own service. Select Stop comparing to return to a single event. The link you copy includes both events.

Annotations in Explore​

In Explore, annotations overlay on the time-series chart above your results, on both the logs and spans datasets. Open the Annotations control in the Explore header to turn them on and select which types to show; the setting is shared across every query tab on the page.

Annotations follow the current time range and the service and environment your query filters to:

  • Logs: filter on $l.serviceName for the service and $l.env for the environment. Coralogix adds these default labels to your logs at ingestion. When a log has no OpenTelemetry service name or environment, $l.serviceName takes its subsystem name and $l.env takes its application name. If you can view the label mapping, a filter on any field the mapping derives the service or environment from, such as the subsystem or application name, narrows the annotations too.
  • Spans: filter on the service name and environment of your spans.

A filter combined with others through OR doesn't narrow the annotations.

In the same Annotations control, under Display filters, choose which events to show:

  • All events (the default): every event in the time range, regardless of your query.
  • Exact match: events that match every service and environment filter in your query.
  • Partial match: events that match at least one of those filters.

An event that leaves a filtered field empty, such as a deployment with a service but no environment, doesn't match that filter. To show these events too, turn on Includes events with defined fields that are empty. The toggle applies to Exact match and Partial match, and is off under All events. When your query filters neither the service nor the environment, every mode shows every event in the time range.

When your filters hide some of the annotations in the time range, the control shows a Hidden badge. Select Show all events to switch to All events.

To see the DataPrime query behind the annotations, select View query in the control. The Annotation queries panel shows the query for Exact match and Partial match, each with a copy button, and marks the one in use as Current. Turn on Includes events with defined fields that are empty in the panel to update both queries. The button appears when annotations are on and Deployments or Custom events is selected.

Annotations in APM​

In APM, annotations overlay on the catalog overview charts and on the charts in a service or database drilldown. There you can scope them to the service you're analyzing (Service events), to that service and its related services (Service and related events), or to every event in your account (All events). Under Service and related events, a services count opens the related services in the service map. In APM, annotations follow the current time range and filters. For the full APM workflow, see Annotations.

The Annotations control in APM: the Reported badge, Learn more, the Deployments and Custom events type chips, the Service events, Service and related events (with the related services count), and All events options, the note that annotations follow the current time range and filters, and the Create custom event button.

Send events to Coralogix​

Deployment and custom annotations come from the Coralogix ops-events ingest API. Send an event once and it appears as an annotation in APM and Explore, scoped by the attributes you include. Coralogix also stores each event in the default/ops.events dataset, so you can query your events in Explore with DataPrime.

The API is available as REST and gRPC:

  • REST: send a POST request to https://ingress./v1/ops-events.
  • gRPC: call com.coralogixapis.opsevents.v1.OpsEventsIngestService/CreateOpsEvent.

Authenticate with a Send Your Data Key in the Authorization header: Authorization: Bearer <api-key>. The key must be allowed to send ops events: when you create the key, select the OpsEvents role preset. A key created with a different preset (for example, SendData) is rejected with 403 Forbidden.

Each event is one of two kinds:

  • cdEvent: a CI/CD deploy, with pipeline and version-control metadata. Draws as a Deployments annotation.
  • customEvent: a generic event such as an alert, feature flag, campaign, or configuration change. Draws as a Custom events annotation.

Minimum required fields​

  • timestamp: an RFC 3339 timestamp for when the event happened. It must be within 24 hours of the current server time.
  • description: a short, human-readable summary, shown on hover. Must not be empty.
  • One event object: either cdEvent or customEvent.

Fields that unlock filtering and correlation​

  • attributes.service.name: links the event to a service. An event without it appears only in the account-wide scope. In Explore, it's compared with the $l.serviceName label of your logs.
  • attributes.environment: scopes the event to an environment (for example, production, staging). In Explore, it's compared with the $l.env label of your logs.
  • cdEvent.system: the CI/CD system. One of CD_SYSTEM_GITHUB, CD_SYSTEM_ARGOCD, CD_SYSTEM_JENKINS, CD_SYSTEM_GITLAB, CD_SYSTEM_BITBUCKET, CD_SYSTEM_AZURE_DEVOPS, CD_SYSTEM_SPINNAKER.
  • cdEvent.pipeline.name, cdEvent.pipeline.run.id, cdEvent.pipeline.run.url, cdEvent.pipeline.run.durationSeconds: pipeline run details and a deep link.
  • cdEvent.pipeline.result.status: one of PIPELINE_RESULT_STATUS_SUCCESS, _FAILURE, _TIMEOUT, _CANCELLATION, _ERROR, _SKIP.
  • cdEvent.pipeline.task.name, cdEvent.pipeline.task.type: task identifier and kind (PIPELINE_TASK_TYPE_BUILD, _TEST, _DEPLOY).
  • cdEvent.vcs.system, cdEvent.vcs.type: version-control provider (VCS_SYSTEM_GITHUB, _GITLAB, _BITBUCKET) and reference kind (VCS_REF_TYPE_BRANCH, _TAG).
  • cdEvent.vcs.repository.name, cdEvent.vcs.repository.url, cdEvent.vcs.ref.head.name, cdEvent.vcs.ref.head.revision: repository and branch, tag, or commit.

Stored events strip the enum prefix (CD_SYSTEM_ARGOCD becomes argocd, and so on), so DataPrime queries against default/ops.events filter on the lowercase form.

Example: send a deployment event​

Set $CX_API_KEY to a Send Your Data Key that has the OpsEvents role preset, and send with a current timestamp:

curl -X POST https://ingress.eu2.coralogix.com/v1/ops-events \
-H "Authorization: Bearer $CX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"opsEvent": {
"timestamp": "2026-07-13T10:15:00Z",
"description": "payments-api v2.14.0 deployed to production",
"attributes": {
"service": { "name": "payments-api" },
"environment": "production"
},
"cdEvent": {
"system": "CD_SYSTEM_GITHUB",
"pipeline": {
"name": "deploy-production",
"run": { "id": "9753949763", "url": "https://github.com/org/payments/actions/runs/9753949763" },
"result": { "status": "PIPELINE_RESULT_STATUS_SUCCESS" }
}
}
}
}'

Example: send a custom event​

A custom event needs only a current timestamp, a description, and an empty customEvent object. Attach any structured data under attributes.additional:

curl -X POST https://ingress.eu2.coralogix.com/v1/ops-events \
-H "Authorization: Bearer $CX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"opsEvent": {
"timestamp": "2026-07-13T13:45:00Z",
"description": "quarterly feature flag rollout started",
"attributes": {
"environment": "production",
"additional": { "flag": "new-billing-ui", "rolloutPercent": 25 }
},
"customEvent": {}
}
}'

Send events from your CI/CD pipeline​

Each of these guides has a ready-to-use step or configuration that sends a deployment event on every run:

Version benchmark annotations​

Version benchmark markers come from the Version Benchmarks version-tags API rather than the ops-events API. In Explore, they mark each released version so you can line a shift in your data up with the version that preceded it. See Version Benchmarks for what the feature offers.

Permissions​

  • View annotations: requires access to the surface you're viewing (APM or Explore).
  • View version benchmark markers: requires permission to view Version Benchmark tags (VERSION-BENCHMARK-TAGS:READ).
  • Create a custom event: requires a role that can send ops events. Without it, Create custom event doesn't appear.
  • Send events: use a Send Your Data Key with the OpsEvents role preset (see Send events to Coralogix).
  • Create custom events: requires the custom event annotation permissions (ANNOTATIONS-CUSTOM-EVENT:APPENDDATA and ANNOTATIONS-CUSTOM-EVENT:MANAGE). See the Annotations permissions for which roles have them.
Last updated on