Courtsite / stackdriver-to-discord

[Unmaintained] ⚙️ A simple Google Cloud Function in Go to transform / proxy Stackdriver Static Webhook notifications to Discord.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stackdriver-to-discord

This project is no longer maintained, and has been replaced with https://github.com/Courtsite/gcp-monitoring-to-teams

⚙️ A simple Google Cloud Function in Go to transform / proxy Stackdriver Static Webhook notifications to Discord.

This project has been tested with the Go 1.11, and Go 1.13 runtimes.

Notification in Discord

Getting Started

Prerequisites

  • Ensure you have gcloud installed:
  • Ensure you have authenticated with Google Cloud: gcloud init
  • (Optional) Set your current working project: gcloud config set project <project>

Deployment

  1. Clone / download a copy of this repository
  2. Copy .env.sample.yaml to .env.yaml, and modify the environment variables declared in the file
  3. Run ./deploy.sh
  4. Configure Stackdriver static webhook notification in https://app.google.stackdriver.com/settings/accounts/notifications/static-webhook/add

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/stackdriver-to-discord?auth_token=123456.

About

[Unmaintained] ⚙️ A simple Google Cloud Function in Go to transform / proxy Stackdriver Static Webhook notifications to Discord.

License:MIT License


Languages

Language:Go 94.1%Language:Shell 5.9%