Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rastogiji/gcp-daily-cost-alerts

Send Slack Alerts when there's a sudden spike in the cost
https://github.com/rastogiji/gcp-daily-cost-alerts

alerting automation cloudfunctions gcp slack

Last synced: about 1 month ago
JSON representation

Send Slack Alerts when there's a sudden spike in the cost

Awesome Lists containing this project

README

        

# GCP Daily Spike Alerts

Send Slack Notifications when there is a sudden spike in daily costs.

![Alert Image](slack_alert.png?raw=true)

```bash
npm install
```

## Prerequisites

- GCP Account with Billing Enabled
- BigQuery Billing Export Enabled
- Slack WebHook

## Deployment

The Deployment is a 2 step process:

- CI/CD tool to build your container using Secrets and creating a .env file and Deploying it to Cloud Run
- Cloud Scheduler to trigger the service

## Secrets Required

- PORT
- BQ_TABLE_NAME
- TOTAL_SPIKE
- DAILY_COST

## License

[MIT](https://github.com/rastogiji/gcp-daily-cost-alerts/blob/master/LICENSE)