2014-10-02 03:13:23 -05:00
[Grafana ](http://grafana.org ) [![Build Status ](https://api.travis-ci.org/grafana/grafana.svg )](https://travis-ci.org/grafana/grafana) [![Coverage Status ](https://coveralls.io/repos/grafana/grafana/badge.png )](https://coveralls.io/r/grafana/grafana) [![Gitter ](https://badges.gitter.im/Join Chat.svg )](https://gitter.im/grafana/grafana?utm_source=badge& utm_medium=badge& utm_campaign=pr-badge& utm_content=badge)
2014-07-14 13:53:20 -05:00
================
[Website ](http://grafana.org ) |
[Twitter ](http://twitter.com/grafana ) |
[IRC ](http://webchat.freenode.net/?channels=grafana ) |
[Email ](mailto:contact@grafana.org )
2013-01-25 22:10:28 -06:00
2014-07-14 13:53:20 -05:00
Grafana is An open source, feature rich metrics dashboard and graph editor for
Graphite, InfluxDB & OpenTSDB.
![](http://grafana.org/assets/img/start_page_bg.png)
2014-01-23 12:19:56 -06:00
2015-02-06 07:22:56 -06:00
# Grafana 2.0 Alpha branch [![wercker status](https://app.wercker.com/status/1de5ea38f93fd2dfa2eb8b8ba58b6df1/s "wercker status")](https://app.wercker.com/project/bykey/1de5ea38f93fd2dfa2eb8b8ba58b6df1)
2014-11-26 05:57:16 -06:00
2015-02-06 01:52:16 -06:00
Grafana 2.0 comes with a backend written in Go. It is not ready for production use yet as there is still a lot of small
issues to fix and polish missing. But feedback on what is done and bug reports would be greatly appreciated.
2015-01-05 09:17:36 -06:00
2015-02-09 09:18:30 -06:00
## Try it out with docker
```
docker run -i -p 3000:3000 grafana/grafana:develop
```
2015-02-10 10:10:07 -06:00
The default admin user is admin/admin.
2015-02-09 09:18:30 -06:00
2015-01-05 09:17:36 -06:00
## building and running
2015-01-09 03:16:01 -06:00
```
2015-02-06 01:40:12 -06:00
go get github.com/grafana/grafana
2015-01-09 03:16:01 -06:00
```
2015-02-06 02:10:52 -06:00
The above will give an error saying there is no go code. That is because the new backend parts are in the develop branch.
2015-01-09 03:16:01 -06:00
Building
2015-01-05 09:17:36 -06:00
```
2015-02-06 01:40:12 -06:00
cd $GOPATH/src/github.com/grafana/grafana
2015-02-06 02:10:52 -06:00
git checkout -t origin/develop
2015-01-05 09:17:36 -06:00
go run build.go setup (only needed once to install godep)
godep restore (will pull down all golang lib dependecies in your current GOPATH)
2015-02-12 06:44:22 -06:00
go build .
2015-01-05 09:17:36 -06:00
```
2015-02-11 13:12:17 -06:00
To build less to css for the frontend you will need a recent version of of node (v0.12.0),
npm (v2.5.0) and grunt (v0.4.5). Run the following:
2015-01-05 09:17:36 -06:00
```
npm install
npm install -g grunt-cli
grunt
```
2015-01-06 11:39:26 -06:00
2015-02-06 02:10:52 -06:00
To rebuild on source change (requires that you executed godep restore)
2015-01-06 11:39:26 -06:00
```
go get github.com/Unknwon/bra
bra run
```
2015-02-06 01:40:12 -06:00
Running
```
./bin/grafana web
```
Open grafana in your browser (default http://localhost:3000) and login with admin user (default user/pass = admin/admin).
2015-02-06 01:52:16 -06:00
### Config
Create a grafana.custom.ini in the conf directory to override default configuration options.
You only need to add the options you want to override. Config files are applied in the order of:
2015-02-06 01:54:43 -06:00
2015-02-06 01:52:16 -06:00
1. grafana.ini
2. grafana.dev.ini (if found)
3. grafana.custom.ini
### Docs
There is no docs for the configuration and new UI views, or the account / user model yet. But a quick note
is that Grafana 2.0 has a multi tenant account & user model where Dashboards, data sources, api keys, etc are
tied to an account and not to a specific user. Users are coupled to accounts via an account user role (Admin, Editor, Viewer).
The default configuration is set to a single account mode to make this user & account model easier to handle in a single account setup.
User sign ups are automatically added to a main account with the Editor role (this can be overriden in the config file). The default
grafana admin user that is created on first startup also creates the main account.
2015-02-06 01:40:12 -06:00
2015-01-06 11:39:26 -06:00
2014-03-09 12:02:04 -05:00
## Features
### Graphite Target Editor
2014-01-19 10:16:57 -06:00
- Graphite target expression parser
2014-08-05 05:27:03 -05:00
- Feature rich query composer
2014-08-05 06:22:54 -05:00
- Quickly add and edit functions & parameters
2014-08-05 05:27:03 -05:00
- Templated queries
2014-08-05 05:29:58 -05:00
- [See it in action ](http://grafana.org/docs/features/graphite )
2014-01-19 10:16:57 -06:00
2014-03-09 12:02:04 -05:00
### Graphing
2014-01-19 10:16:57 -06:00
- Fast rendering, even over large timespans.
- Click and drag to zoom.
- Multiple Y-axis.
- Bars, Lines, Points.
- Smart Y-axis formating
- Series toggles & color selector
2014-07-14 13:53:20 -05:00
- Legend values, and formating options
2014-02-21 07:27:38 -06:00
- Grid thresholds, axis labels
2014-08-05 05:27:03 -05:00
- [Annotations ](http://grafana.org/docs/features/annotations )
2014-01-19 10:16:57 -06:00
2014-03-09 12:02:04 -05:00
### Dashboards
2014-08-05 05:27:03 -05:00
- Create, edit, save & search dashboards
- Change column spans and row heights
- Drag and drop panels to rearrange
- Use InfluxDB or Elasticsearch as dashboard storage
2014-01-19 10:16:57 -06:00
- Import & export dashboard (json file)
- Import dashboard from Graphite
- Templating
2014-08-05 05:27:03 -05:00
- [Scripted dashboards ](http://grafana.org/docs/features/scripted_dashboards )
2014-08-16 12:02:50 -05:00
- [Dashboard playlists ](http://grafana.org/docs/features/playlist )
2014-08-05 05:27:03 -05:00
- [Time range controls ](http://grafana.org/docs/features/time_range )
2014-03-09 12:02:04 -05:00
### InfluxDB
2014-08-05 05:27:03 -05:00
- Use InfluxDB as a metric data source, annotation source and for dashboard storage
2014-07-14 13:53:20 -05:00
- Query editor with series and column typeahead, easy group by and function selection
### OpenTSDB
2014-08-05 05:27:03 -05:00
- Use as metric data source
2014-07-14 13:53:20 -05:00
- Query editor with metric name typeahead and tag filtering
2014-01-19 10:16:57 -06:00
2014-08-12 02:24:58 -05:00
## Requirements
2014-08-05 05:27:03 -05:00
There are no dependencies, Grafana is a client side application that runs in your browser. It only needs a time series store where it can fetch metrics. If you use InfluxDB Grafana can use it to store dashboards. If you use Graphite or OpenTSDB you can use Elasticsearch to store dashboards or just use json files stored on disk.
2014-01-19 10:16:57 -06:00
2014-08-12 02:24:58 -05:00
## Installation
2014-08-05 05:27:03 -05:00
Head to [grafana.org ](http://grafana.org ) and [download ](http://grafana.org/download/ )
the latest release.
2014-01-19 10:16:57 -06:00
2014-08-05 05:27:03 -05:00
Then follow the quick [setup & config guide ](http://grafana.org/docs/ ). If you have any problems please
read the [troubleshooting guide ](http://grafana.org/docs/troubleshooting ).
2014-04-09 05:36:35 -05:00
2014-08-12 02:24:58 -05:00
## Documentation & Support
2014-08-05 05:27:03 -05:00
Be sure to read the [getting started guide ](http://grafana.org/docs/features/intro ) and the other
feature guides.
2014-01-20 03:57:59 -06:00
2014-08-12 02:24:58 -05:00
## Run from master
2014-08-12 02:23:25 -05:00
Grafana uses nodejs and grunt for asset management (css & javascript), unit test runner and javascript syntax verification.
- clone repository
- install nodejs
- npm install (in project root)
- npm install -g grunt-cli
- grunt (runt default task that will generate css files)
- grunt build (creates optimized & minified release)
- grunt release (same as grunt build but will also create tar & zip package)
- grunt test (executes jshint and unit tests)
2014-01-19 10:16:57 -06:00
2014-08-12 02:24:58 -05:00
## Contribute
2014-08-12 02:23:25 -05:00
If you have any idea for an improvement or found a bug do not hesitate to open an issue.
And if you have time clone this repo and submit a pull request and help me make Grafana
the kickass metrics & devops dashboard we all dream about!
2014-01-20 03:57:59 -06:00
2014-08-12 02:23:25 -05:00
Before creating a pull request be sure that "grunt test" runs without any style or unit test errors, also
please [sign the CLA ](http://grafana.org/docs/contributing/cla.html )
2014-01-19 10:16:57 -06:00
2014-08-12 02:24:58 -05:00
## License
2015-02-05 03:10:39 -06:00
2014-03-31 09:22:55 -05:00
Grafana is distributed under Apache 2.0 License.
2015-02-05 03:10:39 -06:00
Work in progress Grafana 2.0 (with included Grafana backend)
2015-01-06 11:39:26 -06:00