blob: 7f97dc1909dea0f37f4a9c89d3534a4a1af7c67e [file] [log] [blame]
Ales Komarek4b6c8662014-02-24 21:48:29 +01001
Ales Komarek86490892015-12-04 16:43:48 +01002=======
3Grafana
4=======
Ales Komarek4b6c8662014-02-24 21:48:29 +01005
6A beautiful, easy to use and feature rich Graphite dashboard replacement and graph editor.
7
Ales Komarek7a593fa2016-10-22 17:32:35 +02008
Ales Komarek5a23b512015-12-08 11:20:02 +01009Sample pillars
10==============
Ales Komarek4b6c8662014-02-24 21:48:29 +010011
Ales Komarek7a593fa2016-10-22 17:32:35 +020012
Ales Komarek9e054912016-10-22 00:36:50 +020013Server deployments
14------------------
15
16Server installed from system package
17
18.. code-block:: yaml
Michael Kutýa79bbdb2014-03-03 20:46:34 +010019
20 grafana:
21 server:
22 enabled: true
Ales Komarek9e054912016-10-22 00:36:50 +020023 admin:
24 user: admin
25 password: passwd
26 database:
27 engine: sqlite
28
29Server installed with PostgreSQL database
30
31.. code-block:: yaml
32
33 grafana:
34 server:
35 enabled: true
36 admin:
37 user: admin
38 password: passwd
Ales Komarek98588222015-12-08 10:43:59 +010039 database:
40 engine: postgresql
Michael Kutýa79bbdb2014-03-03 20:46:34 +010041 host: localhost
Ales Komarek98588222015-12-08 10:43:59 +010042 port: 5432
Ales Komarek9e054912016-10-22 00:36:50 +020043 name: grafana
44 user: grafana
45 password: passwd
46
Ales Komarek7a593fa2016-10-22 17:32:35 +020047
Ales Komarekae47c9f2016-10-22 12:30:30 +020048Collector setup
49---------------
50
Ales Komarek7a593fa2016-10-22 17:32:35 +020051Used to aggregate dashboards from monitoring node.
Ales Komarekae47c9f2016-10-22 12:30:30 +020052
53.. code-block:: yaml
54
55 grafana:
56 collector:
57 enabled: true
58
59
Ales Komarek9e054912016-10-22 00:36:50 +020060Client setups
61-------------
62
63Client enforced data sources
64
65.. code-block:: yaml
66
67 grafana:
68 client:
69 enabled: true
70 server:
71 protocol: https
72 host: grafana.host
73 port: 3000
74 token: token
75 datasource:
76 graphite:
77 type: graphite
78 host: mtr01.domain.com
79 protocol: https
Ales Komarek98588222015-12-08 10:43:59 +010080 port: 443
Ales Komarek9e054912016-10-22 00:36:50 +020081 elasticsearch:
82 type: elasticsearch
83 host: log01.domain.com
Ales Komarek5a23b512015-12-08 11:20:02 +010084 port: 80
Ales Komarek9e054912016-10-22 00:36:50 +020085 user: admin
86 password: password
Ales Komarek5a23b512015-12-08 11:20:02 +010087 index: grafana-dash
Ales Komarek9e054912016-10-22 00:36:50 +020088
Ales Komarek7a593fa2016-10-22 17:32:35 +020089Client defined and enforced dashboard
Ales Komarek9e054912016-10-22 00:36:50 +020090
91.. code-block:: yaml
92
93 grafana:
94 client:
95 enabled: true
96 server:
97 host: grafana.host
98 port: 3000
99 token: token
100 dashboard:
101 system_metrics:
102 title: "Generic system metrics"
103 style: dark
104 editable: false
105 row:
106 top:
107 title: "First row"
108
109Client enforced dashboards defined in salt-mine
110
111.. code-block:: yaml
112
113 grafana:
114 client:
115 enabled: true
Ales Komarekae47c9f2016-10-22 12:30:30 +0200116 remote_data:
117 engine: salt_mine
Ales Komarek9e054912016-10-22 00:36:50 +0200118 server:
119 host: grafana.host
120 port: 3000
121 token: token
122
Ales Komarek7a593fa2016-10-22 17:32:35 +0200123
Ales Komarekae47c9f2016-10-22 12:30:30 +0200124Usage
125=====
126
127There's a difference between JSON dashboard representation and models we us. Lists are replaced by dictionaries to support mergings and interpolations.
128
Ales Komarek7a593fa2016-10-22 17:32:35 +0200129The default format of Grafana dashboards with lists for rows, panels and targets.
Ales Komarekae47c9f2016-10-22 12:30:30 +0200130
131.. code-block:: yaml
132
133 system_metrics:
134 title: graph
135 editable: true
136 hideControls: false
137 rows:
138 - title: Usage
139 height: 250px
140 panels:
141 - title: Panel Title
142 span: 6
143 editable: false
144 type: graph
145 targets:
146 - refId: A
147 target: "support_prd.cfg01_iot_tcpcloud_eu.cpu.0.idle"
148 datasource: graphite01
149 renderer: flot
150 showTitle: true
151
152
Ales Komarek7a593fa2016-10-22 17:32:35 +0200153The modified version of Grafana dashboard format that supports character interpolation.
154
Ales Komarekae47c9f2016-10-22 12:30:30 +0200155.. code-block:: yaml
156
157 system_metrics:
Ales Komarek7a593fa2016-10-22 17:32:35 +0200158 system_metrics2:
159 title: graph
160 editable: true
161 hideControls: false
162 row:
163 usage:
164 title: Usage
165 height: 250px
166 panel:
167 usage-panel:
168 title: Panel Title
169 span: 6
170 editable: false
171 type: graph
172 target:
173 A:
174 refId: A
175 target: "support_prd.cfg01_iot_tcpcloud_eu.cpu.0.idle"
176 datasource: graphite01
177 renderer: flot
178 showTitle: true
Ales Komarekae47c9f2016-10-22 12:30:30 +0200179
Ales Komarek9e054912016-10-22 00:36:50 +0200180
Ales Komarek86490892015-12-04 16:43:48 +0100181Read more
182=========
Ales Komarek4b6c8662014-02-24 21:48:29 +0100183
184* http://grafana.org/
Ales Komarek5a23b512015-12-08 11:20:02 +0100185* http://docs.grafana.org/reference/export_import/