> ## Documentation Index
> Fetch the complete documentation index at: https://docs.costory.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Events

> Overlay deploy events, Savings Plan purchases, provider changes, and saved business context on Costory cost charts to explain cloud cost changes.

Events add context to cost data. They capture deployments, releases, incidents, provider changes, and business milestones so you can explain why spend changed without switching between billing tools and engineering systems.

<Frame caption="Contextualize dashboards with events so cost changes travel with their cause">
  <img src="https://mintcdn.com/costory/PqwtITTY1Lr4ZFaM/images/Contextualize%20dashboard%20with%20events.gif?s=e0cb622e1bc33d7c69acb83c2f297788" alt="Adding event context to dashboard widgets so cost changes can be explained from the chart" width="1180" height="720" data-path="images/Contextualize dashboard with events.gif" />
</Frame>

## Overview

<Tooltip tip="Aligning technical or business events with cost timelines to explain why costs changed." cta="See Glossary" href="/docs/glossary#event-correlation">Event correlation</Tooltip> overlays events directly on your cost charts. You can compare deploys, purchases, incidents, and custom business events with the spend line in [Explorer](/features/cost-explorer), then save that context to dashboards and reports.

Use events when you need to:

* Save the context behind a cost change
* Correlate deploys, incidents, commitment purchases, and provider changes with spend
* Attach event context to Explorer views, dashboards, and reports
* Give finance and engineering the same timeline for cost discussions

## When to use event correlation

* EC2 spend increases after a deploy marker. Open the event to see which PR was merged and what changed.
* A <Tooltip tip="AWS's flexible commitment-based pricing. You commit to a consistent amount of compute usage for 1 or 3 years and get discounted rates." cta="See Glossary" href="/docs/glossary#savings-plans">Savings Plan</Tooltip> purchase appears on the chart. Verify whether the cost line drops as expected in the following days.
* A dashboard widget needs context before you share it with another team. Attach the relevant event overlay so the viewer sees the cost movement and the reason together.
* A cost anomaly starts near an outage, migration, campaign, or infrastructure change. Use event markers to rule in or rule out likely causes.

<Frame caption="Explorer with event markers showing deploys, purchases, and custom events alongside cost changes">
  <img src="https://mintcdn.com/costory/a6dnqkkzsliK0Ran/images/events.png?fit=max&auto=format&n=a6dnqkkzsliK0Ran&q=85&s=826413da21ad60f3aa03893f4c1b1784" alt="Cost chart where deploy and purchase event markers align with cost changes" width="1610" height="874" data-path="images/events.png" />
</Frame>

## Use events in Explorer

<Steps>
  <Step title="Open Explorer">
    Navigate to [Explorer](/features/cost-explorer) and build the cost query you want to explain.
  </Step>

  <Step title="Enable event overlays">
    Click **Show Events** in the toolbar. The Events panel opens with available events grouped by category. Toggle categories on or off, or add individual events to the chart.
  </Step>

  <Step title="Investigate a cost change">
    Event markers appear as numbered badges on the chart timeline. Hover over a marker to see the event type, timestamp, and description.

    <Frame caption="A deploy marker aligns with a cost increase on the same timeline">
      <img src="https://mintcdn.com/costory/s8MPZDobM_OEKKBH/images/events-in-saved-views.png?fit=max&auto=format&n=s8MPZDobM_OEKKBH&q=85&s=e95e60fec907805dd210a2bda6066574" alt="Cost chart where a numbered deploy marker aligns with a cost increase" width="1626" height="888" data-path="images/events-in-saved-views.png" />
    </Frame>
  </Step>

  <Step title="Save the context">
    Save the Explorer view, add it to a [dashboard](/features/dashboards), or schedule it as a [Cost Report](/features/slack-reports) so the event context stays attached.
  </Step>
</Steps>

<Tip>
  Pair events with [waterfall charts](/features/dashboards/widgets#waterfall-charts). The waterfall shows which services or teams moved. Events help explain what changed around the same date.
</Tip>

## Example: investigate a cost spike after a deploy

Your weekly EC2 bill increases by 30% starting March 5. Event correlation helps you move from cost movement to likely cause:

1. Open Explorer and filter to EC2 costs for the past two weeks.
2. Enable GitHub events. A deploy marker appears on March 5, the same day the spike starts.
3. Open the event details. PR #1234 was merged with the description "Add nightly batch processing job for ML model retraining."
4. Use the event context to decide whether to optimize instance types, adjust scheduling, or accept the added cost.

Without events, the same investigation usually requires checking deployment logs, Slack threads, CI/CD history, and billing data separately.

## Attach events to dashboards and reports

You can attach event overlays to dashboard widgets so the context travels with the data. When a colleague opens the dashboard or receives it as a Cost Report, they see both the cost data and the events that explain it.

<Frame caption="Events attached to a dashboard widget explain why costs changed">
  <img src="https://mintcdn.com/costory/9QR9mkIN8IiZz2eI/images/events.gif?s=5f9fbcec065a99732b85f30c99da7f31" alt="Costory dashboard contextualized with events on cost charts" width="1148" height="720" data-path="images/events.gif" />
</Frame>

<Tip>
  For automated cost change detection, the [Digest](/features/digest) surfaces high-impact changes and generates AI summaries you can share.
</Tip>

## Find and manage saved events

The Events page is where you search, filter, create, and reopen events across your organization. Each saved event can include the date, source, category, labels, description, and linked cost analysis.

<Frame caption="The Events page lets you browse, search, tag, and manage events across your organization">
  <img src="https://mintcdn.com/costory/BaKtdJQejEXamw73/images/events-page.png?fit=max&auto=format&n=BaKtdJQejEXamw73&q=85&s=e0c32ab5b66991ffa6270f20bc619f78" alt="Central Events page showing deploy events, Savings Plan purchases, and custom events filterable by source and tag" width="2378" height="1094" data-path="images/events-page.png" />
</Frame>

From the Events page, you can:

* Search by title, source, category, label, or date range
* Open an event to review its description and linked context
* Add an event to an Explorer chart
* Edit manually created events when the context changes

## Create a saved event with context

<Tip>
  You can log an event from chat. Tell the [Costory MCP](/features/mcp) *"add a deploy event for the payments service today"* and it creates the annotation so it shows up on your cost charts.
</Tip>

<Steps>
  <Step title="Open Events">
    Navigate to **Events** from the left sidebar.
  </Step>

  <Step title="Create an event">
    Click **New event** and enter the date, title, category, source, and description.
  </Step>

  <Step title="Add context">
    Add labels or scope details that help people understand where the event applies, such as `environment = production`, a cloud provider, a team, or a service.
  </Step>

  <Step title="Save">
    Save the event so it appears on the Events page and can be added to Explorer charts.
  </Step>
</Steps>

## Set up event sources

To overlay events in Explorer, connect at least one event source:

<CardGroup cols={3}>
  <Card title="GitHub" icon="github" href="/setup/events/github">
    Import deploys and PR merges.
  </Card>

  <Card title="CI/CD" icon="circle-nodes" href="/setup/events/ci-cd">
    Send pipeline and deployment events.
  </Card>

  <Card title="Custom API" icon="code" href="/setup/events/custom-api">
    Push business or technical events.
  </Card>
</CardGroup>

Cloud provider events, including Savings Plan purchases and CUD activations, are detected from billing data. No additional setup is required after billing data is connected.

<Tip>
  Pushing a custom event is a single `POST /v1/events` call with a JSON body. Add it to your CI/CD pipeline and see the [Custom API guide](/setup/events/custom-api) for the full spec.
</Tip>

## Frequently Asked Questions

<AccordionGroup>
  <Accordion title="Do events change billing data?">
    No. Events are metadata. They explain cost changes but do not modify billing rows, allocation rules, or cost metrics.
  </Accordion>

  <Accordion title="Can I backfill old events?">
    Yes. Create an event with a historical timestamp, or post one through the Events API. Costory places it on the correct date in Explorer.
  </Accordion>

  <Accordion title="Can saved events be used in reports?">
    Yes. When events are attached to a saved Explorer view or dashboard, the context can appear in scheduled reports that use that view.
  </Accordion>

  <Accordion title="Can I combine events with unit economics?">
    Yes. Add events to a chart that uses a [unit economics](/features/unit-economics) formula, such as cost per DAU or cost per transaction. This helps you see whether a deploy increased total spend while efficiency stayed on target.
  </Accordion>
</AccordionGroup>

## Related links

<CardGroup cols={2}>
  <Card title="Events setup" icon="plug" href="/setup/events">
    Connect GitHub, CI/CD, provider, and API event sources.
  </Card>

  <Card title="Explorer" icon="magnifying-glass" href="/features/cost-explorer">
    Investigate cost changes with event context.
  </Card>

  <Card title="Unit Economics" icon="calculator" href="/features/unit-economics">
    Add formulas such as cost per user or cost per transaction.
  </Card>

  <Card title="Event Correlation use case" icon="timeline" href="/automate-reporting/event-correlation">
    Walk through cost change investigations with events.
  </Card>
</CardGroup>
