Understand changes

Tie cost changes to deploys and events

Mark your cost reports with GitHub deployments and merges, the releases and incidents your pipelines post and the launches you note by hand, so the day cost moved shows what shipped, and resolve each note once the cost is explained.

By the end of this guide, the charts of your saved cost reports carry a marker for each production deployment, merged pull request, release, incident and launch, so the day cost moved also shows what shipped that day, and every note is resolved once its cost is explained. It is for the engineer who ships the changes and is asked what they did to the bill. The markers come from three places: a GitHub connection, your pipelines and incident tools through the Public API, and notes written by hand; you then read and search them, and resolve the ones that are explained. Each step links to the page that owns the detail.

Before you start

  • A saved cost report: markers and the Annotations panel show on saved reports only. See Save and manage reports.
  • Deployment and merge markers need a GitHub connection in a workspace you work in. Connecting one is an organization-level task with prerequisites on GitHub's side; see Connect GitHub.
  • Posting from a pipeline needs an API token that holds Update cost reports; see API authentication.
  • Adding, editing and resolving notes needs edit access to the workspace, the same access that changes a report; see Access model.
  • Steps 3 to 5 work on the sample data a new organization starts with. Steps 1 and 2 need your own GitHub organization and pipelines, and the first real connection removes the sample data.

1. Mark deployments and merges from GitHub

Deployments and merges come only from a GitHub connection: Costfluent reads them with the connection's own token, and there is no setting to turn on. Once the organization is connected, saved reports in every workspace that reads the connection are marked with its production deployments and the pull requests merged into a default branch, listed in the Annotations panel under Changes from your connections with Open on GitHub. A private repository's deployments and merges appear only once the token may read them. Which deployments count, how far back the first read goes and what is kept is on Deployment and merge markers. See Deployments and merges from GitHub.

2. Post events from a pipeline or an incident tool

For a deploy outside GitHub, a release, an incident or a cluster rollout, post a note for the whole workspace from the tool that knows about it, as its last step:

TerminalCode
curl -X POST \ -H "Authorization: Bearer $COSTFLUENT_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{"workspaceId": "wsp_example", "text": "Deployed checkout v2", "costReportIds": [], "wholeWorkspace": true, "occurredAt": "2026-11-20T14:30:00Z", "tags": ["release"], "url": "https://ci.example.com/acme/runs/42", "context": [{"key": "commit", "value": "3f2a9c1"}]}' \ https://api.costfluent.com/v1/annotations

Give each kind of event its own tag, such as release or incident, so you can search for it later, and put the run or the ticket in url. occurredAt dates the note on its day in the workspace's time zone. The Costfluent CLI posts the same note with costfluent create-annotation. See From a pipeline or an incident tool.

3. Note launches and migrations by hand

For a change no tool posts, such as a launch, a migration or a pricing change from a provider, open a saved report, point at the day and select "Add note on" followed by its date, or choose New note under More actions. Enter the Note, and turn on Whole workspace when the change touched more than this report, naming under Applies to the providers, services or accounts it concerns. Add Tags and a Link to the plan or ticket, then select Add annotation. See Add a note.

4. Read the markers and search them

Each marker is a dashed line on a bar, line or area chart, with a badge counting what falls there. Select it to list only its annotations; each one says what the report's cost did in the week from its day against the week before. A cost alert leaves a marker of its own when it fires, on each saved report whose filter is the same as the alert's. To look across reports, open Annotations under Reporting, type into Search notes and names, set the date range to the days cost moved and narrow by Sources, Categories and Tags; Changes from your connections below the list holds the GitHub events of the same days. See Read the markers, Search the annotations page and Markers from cost alerts.

5. Resolve a note once the cost is explained

When the change behind a note is understood, Edit the note to say what it did to the cost, then select Resolve in its actions menu: it leaves the panel and the chart. Show resolved lists it again, and Reopen brings it back. GitHub events cannot be edited or resolved. See Edit, resolve or delete.

Check the result

  • A saved report's chart shows a marker on the day of a production deployment, and its Annotations panel lists the deployment under Changes from your connections.
  • Annotations, narrowed by Tags to release, lists the notes your pipeline posted, each on the day it ran.
  • A note you resolved is gone from the chart and comes back marked "Resolved" with Show resolved.

Keep it true

Costfluent recommends posting a note from every production pipeline and incident tool that GitHub does not cover, and resolving notes in the same review that reads the cost, so what is left open is what nobody has explained yet. Investigate a cost increase uses these markers to find the change behind a rise.

From your assistant

With the Costfluent MCP server connected, your assistant answers these with list_annotations and list_change_events.

Code
Which notes tagged release or incident from the last 30 days are still unresolved, and what does each say?
Code
Which production deployments and merged pull requests happened in the first week of this month, in which repositories, and which notes stand on the same days?