This is a simple Rust-based proxy server that receives webhook notifications from Grafana and forwards them to a specified Microsoft Power Automate webhook URL.
- Forwards Grafana alerts to Microsoft Power Automate(Teams).
- Configurable Power Automate webhook URL via command-line arguments.
- Accepts invalid SSL certificates for easier testing in development environments.
- Cross-platform compilation support.
- Rust programming language and Cargo package manager. You can install them from rust-lang.org.
- Rust Version:
rustc 1.88.0 (6b00bc388 2025-06-23) - Cargo Version:
cargo 1.88.0 (873a06493 2025-05-10) - Operating System:
Windows
-
Clone the repository:
git clone https://github.com/SecondDim/grafana-proxy.git cd grafana-proxy -
Build for development:
cargo build
-
Build for release:
cargo build --release
-
Build for a specific target (e.g., x86_64 Linux):
rustup target add x86_64-unknown-linux-gnu cargo build --release --target=x86_64-unknown-linux-gnu
To run the proxy, you need to provide the Power Automate webhook URL as a command-line argument. You can also optionally specify the binding IP address and port.
./target/release/grafana-proxy --webhook-url <your-power-automate-webhook-url> [--bind-ip <ip-address>] [--bind-port <port>]By default, the server will start on http://0.0.0.0:3080.
# Run with default IP and port
./target/release/grafana-proxy --webhook-url "https://prod-123.westeurope.logic.azure.com:443/workflows/..."
# Run with a specific IP and port
./target/release/grafana-proxy --webhook-url "https://prod-123.westeurope.logic.azure.com:443/workflows/..." --bind-ip 127.0.0.1 --bind-port 8888Then, configure your Grafana notification channel to send webhooks to http://<your-server-ip>:<port>/grafana-webhook.
This project is licensed under the MIT License.
這是一個基於 Rust 的簡易代理伺服器,可接收來自 Grafana 的 Webhook 通知,並將其轉發到指定的 Microsoft Power Automate Webhook URL
- 將 Grafana 警示轉發到 Microsoft Power Automate(Teams)。
- 可透過命令列參數設定 Power Automate Webhook URL。
- 接受無效的 SSL 憑證,以便在開發環境中輕鬆測試。
- 支援跨平台編譯。
- Rust 程式語言和 Cargo 套件管理器。您可以從 rust-lang.org 安裝它們。
- Rust 版本:
rustc 1.88.0 (6b00bc388 2025-06-23) - Cargo 版本:
cargo 1.88.0 (873a06493 2025-05-10) - 作業系統:
Windows
-
複製儲存庫:
git clone https://github.com/SecondDim/grafana-proxy.git cd grafana-proxy -
開發建置:
cargo build
-
發行建置:
cargo build --release
-
針對特定目標進行建置 (例如 x86_64 Linux):
rustup target add x86_64-unknown-linux-gnu cargo build --release --target=x86_64-unknown-linux-gnu
若要執行代理,您需要提供 Power Automate Webhook URL 作為命令列參數。您也可以選擇性地指定綁定的 IP 位址和埠號。
./target/release/grafana-proxy --webhook-url <your-power-automate-webhook-url> [--bind-ip <ip-address>] [--bind-port <port>]預設情況下,伺服器將在 http://0.0.0.0:3080 上啟動。
# 使用預設 IP 和埠號執行
./target/release/grafana-proxy --webhook-url "https://prod-123.westeurope.logic.azure.com:443/workflows/..."
# 使用指定的 IP 和埠號執行
./target/release/grafana-proxy --webhook-url "https://prod-123.westeurope.logic.azure.com:443/workflows/..." --bind-ip 127.0.0.1 --bind-port 8888然後,設定您的 Grafana 通知頻道,將 Webhook 發送到 http://<your-server-ip>:<port>/grafana-webhook。
本專案採用 MIT 授權。