1
0
Fork 0
mirror of synced 2024-11-05 01:08:57 -05:00
formula-grafana/README.rst

178 lines
3.3 KiB
ReStructuredText
Raw Normal View History

2014-02-24 15:48:29 -05:00
2015-12-04 10:43:48 -05:00
=======
Grafana
=======
2014-02-24 15:48:29 -05:00
A beautiful, easy to use and feature rich Graphite dashboard replacement and graph editor.
2015-12-08 05:20:02 -05:00
Sample pillars
==============
2014-02-24 15:48:29 -05:00
2016-10-21 18:36:50 -04:00
Server deployments
------------------
Server installed from system package
.. code-block:: yaml
grafana:
server:
enabled: true
admin:
user: admin
password: passwd
database:
engine: sqlite
Server installed with PostgreSQL database
.. code-block:: yaml
2014-03-03 14:46:34 -05:00
grafana:
server:
enabled: true
2016-10-21 18:36:50 -04:00
admin:
user: admin
password: passwd
2015-12-08 04:43:59 -05:00
database:
engine: postgresql
2014-03-03 14:46:34 -05:00
host: localhost
2015-12-08 04:43:59 -05:00
port: 5432
2016-10-21 18:36:50 -04:00
name: grafana
user: grafana
password: passwd
2016-10-22 06:30:30 -04:00
Collector setup
---------------
Used to aggregate dashboards
.. code-block:: yaml
grafana:
collector:
enabled: true
2016-10-21 18:36:50 -04:00
Client setups
-------------
Client enforced data sources
.. code-block:: yaml
grafana:
client:
enabled: true
server:
protocol: https
host: grafana.host
port: 3000
token: token
datasource:
graphite:
type: graphite
host: mtr01.domain.com
protocol: https
2015-12-08 04:43:59 -05:00
port: 443
2016-10-21 18:36:50 -04:00
elasticsearch:
type: elasticsearch
host: log01.domain.com
2015-12-08 05:20:02 -05:00
port: 80
2016-10-21 18:36:50 -04:00
user: admin
password: password
2015-12-08 05:20:02 -05:00
index: grafana-dash
2016-10-21 18:36:50 -04:00
Client enforced dashboards
.. code-block:: yaml
grafana:
client:
enabled: true
server:
host: grafana.host
port: 3000
token: token
dashboard:
system_metrics:
title: "Generic system metrics"
style: dark
editable: false
row:
top:
title: "First row"
Client enforced dashboards defined in salt-mine
.. code-block:: yaml
grafana:
client:
enabled: true
2016-10-22 06:30:30 -04:00
remote_data:
engine: salt_mine
2016-10-21 18:36:50 -04:00
server:
host: grafana.host
port: 3000
token: token
2016-10-22 06:30:30 -04:00
Usage
=====
There's a difference between JSON dashboard representation and models we us. Lists are replaced by dictionaries to support mergings and interpolations.
Client enforced dashboards defined in salt-mine
.. code-block:: yaml
system_metrics:
title: graph
editable: true
hideControls: false
rows:
- title: Usage
height: 250px
panels:
- title: Panel Title
span: 6
editable: false
type: graph
targets:
- refId: A
target: "support_prd.cfg01_iot_tcpcloud_eu.cpu.0.idle"
datasource: graphite01
renderer: flot
showTitle: true
.. code-block:: yaml
system_metrics:
title: graph
editable: true
hideControls: false
rows:
- title: Usage
height: 250px
panels:
- title: Panel Title
span: 6
editable: false
type: graph
targets:
- refId: A
target: "support_prd.cfg01_iot_tcpcloud_eu.cpu.0.idle"
datasource: graphite01
renderer: flot
showTitle: true
2016-10-21 18:36:50 -04:00
2015-12-04 10:43:48 -05:00
Read more
=========
2014-02-24 15:48:29 -05:00
* http://grafana.org/
2015-12-08 05:20:02 -05:00
* http://docs.grafana.org/reference/export_import/