-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.yaml
46 lines (46 loc) · 934 Bytes
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
cog_bundle_version: 4
name: grafana
description: Grafana Graphs in Chat
version: 0.1.0
docker:
image: cogcmd/grafana
tag: 0.1.0
config:
env:
- var: GRAFANA_URL
description: "URL to your Grafana instance"
- var: GRAFANA_API_KEY
description: "API key for your Grafana instnace"
commands:
dashboards:
executable: "/home/bundle/cog-command"
description: List dashboards
rules:
- allow
panels:
executable: "/home/bundle/cog-command"
description: List panels in a dashboard
rules:
- allow
graph:
executable: "/home/bundle/cog-command"
description: View a graph
rules:
- allow
templates:
dashboards:
body: |
~each var=$results as=dashboard~
~$dashboard.slug~
~end~
panels:
body: |
~each var=$results as=panel~
~$panel.slug~
~end~
graph:
body: |
~each var=$results as=graph~
~$graph.url~
~end~