Skip to main content

Detect cloud cost spikes with Google Sheets, Slack, Gmail, and Jira

Workflow preview

Workflow preview
100%
Detect cloud cost spikes with Google Sheets, Slack, Gmail, and Jira preview
Open on n8n.io

1. Workflow Overview

Quick Overview This workflow runs daily to pull cloud spend from a billing API, compare it to a Google Sheets rolling baseline, and alert on cost spikes by creating a Jira incident, posting to Slac...

Best for

  • DevOps automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.scheduletrigger, n8n-nodes-base.httprequest, n8n-nodes-base.googlesheets, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.set, n8n-nodes-base.jira

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Avkash Kakdiya.

Original n8n.io source

1.1 Workflow description

Title
Detect cloud cost spikes with Google Sheets, Slack, Gmail, and Jira
Workflow name
Detect cloud cost spikes with Google Sheets, Slack, Gmail, and Jira

Quick Overview

This workflow runs daily to pull cloud spend from a billing API, compare it to a Google Sheets rolling baseline, and alert on cost spikes by creating a Jira incident, posting to Slack, emailing Finance via Gmail, and logging the run back to Google Sheets.

How it works

  1. Runs every day at 08:00 on a schedule.
  2. Fetches the latest daily cloud cost from a cloud billing API and loads historical daily costs from a Google Sheets “Baseline” sheet.
  3. Calculates a trailing-average baseline, computes the percentage change for today, and marks the result as valid only when enough non-zero history exists.
  4. Stops processing when the data is invalid or the increase is below the configured spike threshold.
  5. Classifies the spike severity (Watch/High/Critical) based on the percentage increase.
  6. Creates a Jira issue with the spike details, then posts an alert to a Slack channel and emails a text summary to Finance via Gmail.
  7. Appends the run details (date, service, severity, costs, and percent change) to the Google Sheets baseline sheet for future comparisons.

Setup

  1. Add an HTTP Header Auth credential for your cloud billing API and replace the example Authorization header value in the HTTP request.
  2. Connect Google Sheets OAuth credentials and set the Google Sheet document ID and ensure a “Baseline” sheet exists with a historical daily cost column (and is used for logging).
  3. Review and adjust the spike threshold (currently 25%) and the minimum baseline requirements (at least 3 non-zero rows) in the code step.
  4. Connect Jira credentials and set your Jira project ID and issue type ID for incident creation.
  5. Connect Slack credentials and set the target channel ID, then connect Gmail credentials and update the Finance recipient email address.
  6. Adjust the schedule time (currently 08:00) to match when your daily billing data is available.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Daily Schedule

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 6 - Fetch Daily Cost

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 7 - Read Cost Baseline

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 8 - Calculate Spike

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 9 - Valid Data

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 10 - Is Spike

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 11 - Classify Severity

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 12 - Create Jira Incident

Type / Role
n8n-nodes-base.jira - jira
Config choices
Version 1

Block 13 - Slack FinOps Alert

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.2

Block 14 - Email Finance Summary

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 15 - Log Run to Sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

3. Summary Table

Workflow Detect cloud cost spikes with Google Sheets, Slack, Gmail, and Jira
Complexity advanced
Nodes 15
Categories DevOps
Author Avkash Kakdiya
Published 09 Jun 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16198/16198.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Detect cloud cost spikes with Google Sheets, Slack, Gmail, and Jira do?

Quick Overview This workflow runs daily to pull cloud spend from a billing API, compare it to a Google Sheets rolling baseline, and alert on cost spikes by creating a Jira incident, posting to Slac...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your DevOps use case.