grafana/grafana

Name: grafana

Owner: Grafana Labs

Description: The tool for beautiful monitoring and metric analytics & dashboards for Graphite, InfluxDB & Prometheus & More

Created: 2013-12-11 15:59:56.0

Updated: 2018-01-18 16:18:51.0

Pushed: 2018-01-18 18:18:42.0

Homepage: https://grafana.com

Size: 182299

Language: TypeScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Grafana Circle CI Go Report Card codecov

Website | Twitter | Community & Forum

Grafana is an open source, feature rich metrics dashboard and graph editor for Graphite, Elasticsearch, OpenTSDB, Prometheus and InfluxDB.

Grafana v5 Alpha Preview

Grafana master is now v5.0 alpha. This is going to be the biggest and most foundational release Grafana has ever had, coming with a ton of UX improvements, a new dashboard grid engine, dashboard folders, user teams and permissions. Checkout out this video preview of Grafana v5.

Installation

Head to docs.grafana.org and download the latest release.

If you have any problems please read the troubleshooting guide.

Documentation & Support

Be sure to read the getting started guide and the other feature guides.

Run from master

If you want to build a package yourself, or contribute - Here is a guide for how to do that. You can always find the latest master builds here

Dependencies
Building the backend
et github.com/grafana/grafana
/go/src/github.com/grafana/grafana
un build.go setup
un build.go build
Building frontend assets

For this you need nodejs (v.6+).

install -g yarn
 install --pure-lockfile
run watch

Run tests

run jest

Run karma tests

run karma
Recompile backend on source change

To rebuild on source change.

et github.com/Unknwon/bra
run

Open grafana in your browser (default: http://localhost:3000) and login with admin user (default: user/pass = admin/admin).

Dev config

Create a 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:

  1. grafana.ini
  2. custom.ini

In your custom.ini uncomment (remove the leading ;) sign. And set app_mode = development.

Running tests
Frontend

Execute all frontend tests

run test

Writing & watching frontend tests (we have two test runners)

Backend
n Golang tests using sqlite3 as database (default)
est ./pkg/... 

n Golang tests using mysql as database - convenient to use /docker/blocks/mysql_tests
ANA_TEST_DB=mysql go test ./pkg/... 

n Golang tests using postgres as database - convenient to use /docker/blocks/postgres_tests
ANA_TEST_DB=postgres go test ./pkg/... 
Contribute

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!

Plugin development

Checkout the Plugin Development Guide and checkout the PLUGIN_DEV.md file for changes in Grafana that relate to plugin development.

License

Grafana is distributed under Apache 2.0 License.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.