command
module
Version:
v0.0.0-...-1b7f271
Opens a new window with list of versions in this module.
Published: Nov 9, 2021
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
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
![](https://github.com/itkq/grafana-image-to-slack/raw/1b7f2717f71a/images/demo.png)
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.