Skip to content

Google Cloud Platform Billing/Budget Notification on Slack

Notifications You must be signed in to change notification settings

dwdraju/gcp-billing-slack-alert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Google Cloud Platform Billing/Budget Notification on Slack

Stack used

  • Google Cloud Billing
  • Google Cloud Pub/Sub
  • Google Cloud Functions
  • Slack IncomingWebhook

Steps

Cloud Functions

  • Go to Google Cloud Functions
  • Give a name and minimal spec
  • Select Trigger as Pub/Sub
  • Create a new topic
  • Select Inline editor for now
  • Select Runtime Nodejs
  • Paste the index.js and package.json content on respective text area
  • Enter the corresponding function to execute
  • Expand More and give SLACK_WEBHOOK_URL environment variable which is slack incoming webhook url
  • Create the function

Budget

  • Create a budget from Budgets and alerts of Google Cloud Console
  • At the bottom on Manage notifications, connect to the Pub/Sub topic create above and we are done

It will send the budget amount along with the expenses to slack channel

About

Google Cloud Platform Billing/Budget Notification on Slack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published