The microservice is for tracking and monitoring the spending amount at the GCP service. This microservice elevates an alert whenever the overall budget surpasses or meets predefined thresholds.
- pyenv
- python 3.8
- A Slack App for delivering messages on the channel. Setup Guideline
- Clone the repository
git clone https://github.com/ColoredCow/gcp-budget-alerts-service.git
- Switch to project folder and setup the vertual environment
cd gcp-budget-alerts-service python -m venv venv
- Activate the virtual environment
source ./venv/bin/activate
- Install the dependencies:
pip install -r requirements-dev.txt
- Set up your .env file by copying .env.example
cp .env.example .env
- Add/update variables in your
.env
file for your environment. - Run the following command to get started with pre-commit
pre-commit install
- Start the server by following command
functions_framework --target=handle --debug