⚙️ A simple Google Cloud Function in Go to transform / proxy Google Cloud Platform (GCP) Monitoring static webhook notifications to Microsoft Teams.
Forked from https://github.com/Courtsite/stackdriver-to-discord
- Ensure you have
gcloud
installed:- MacOS:
brew cask install google-cloud-sdk
- Others: https://cloud.google.com/sdk/gcloud
- MacOS:
- Ensure you have authenticated with Google Cloud:
gcloud init
- (Optional) Set your current working project:
gcloud config set project <project>
- Clone / download a copy of this repository
- Copy
.env.sample.yaml
to.env.yaml
, and modify the environment variables declared in the file - Run
./deploy.sh
- Configure GCP Monitoring static webhook notification channel in https://console.cloud.google.com/monitoring/alerting/notifications
Be sure to append ?auth_token=<AUTH_TOKEN>
to the end of the URL under httpsTrigger
(returned in the output from (3)). e.g. https://my-region-my-organisation.cloudfunctions.net/gcp-monitoring-to-teams?auth_token=123456.