grafana-image-to-slack

command module
v0.0.0-...-1b7f271 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2021 License: MIT Imports: 8 Imported by: 0

README

grafana-image-to-slack

A server that capture an image of Grafana panel and post it to Slack.

Prerequisite

  • Grafana
    • Install Grafana Image Renderer plugin
    • Issue API Key (Viewer)
  • Slack
    • Issue Bot token with files:write scope

Usage

cat payload.json
{
  "channel": "test",
  "title": "SLO",
  "comment": "Check it out!",
  "grafana_image_url": "https://xxx.grafana.net/render/..."
}

SLACK_TOKEN=... GRAFANA_API_KEY=... go run ./main.go &
curl -XPOST -H 'content-type: application/json' -d@payload.json localhost:8080

You will see like

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL