grafana/devenv
Dominik Prokop dd37d003ef
Links: Assure base url when single stat, panel and data links are built (#21956)
* Assure base url when single stat, panel and data links are built

* Update public/app/features/dashboard/dashgrid/PanelHeader/PanelHeaderCorner.tsx

* Update public/app/features/panel/panellinks/link_srv.ts

* Update public/app/features/panel/panellinks/link_srv.ts

* Update public/app/features/panel/panellinks/link_srv.ts

* Update public/app/features/panel/panellinks/link_srv.ts

* Review updates

* Remove unnecessary code
2020-02-10 12:45:15 +01:00
..
benchmarks/ab moves benchmark script to devenv 2018-09-17 11:17:23 +02:00
bulk_alerting_dashboards target gfdev-prometheus datasource 2018-09-24 10:59:39 +02:00
bulk-dashboards Fix bulk-dashboards path (#12978) 2018-08-20 19:21:31 +02:00
dev-dashboards Links: Assure base url when single stat, panel and data links are built (#21956) 2020-02-10 12:45:15 +01:00
dev-dashboards-without-uid Explore: Add custom DataLinks on datasource level for Loki (#20060) 2019-11-06 16:15:08 +01:00
docker Annotations: Change indices and rewrites annotation find query to improve database query performance (#21915) 2020-02-05 16:52:41 +01:00
e2e-api-tests TSLint → ESLint (#21006) 2020-02-08 02:40:04 +01:00
create_docker_compose.sh Build: allow dynamically change docker image (#18112) 2019-07-16 08:16:10 +02:00
dashboards.yaml Allow saving of provisioned dashboards (#19820) 2019-10-31 14:27:31 +01:00
datasources.yaml Panels: Add support for panels with no padding (#20012) 2019-11-25 13:26:18 -08:00
README.md Docs: Update README.md (#19456) 2019-10-07 13:26:31 +02:00
setup.sh Remove option r from ln command since its not working everywhere 2018-09-25 14:02:55 +02:00

Set up your development environment

This folder contains useful scripts and configuration so you can:

  • Configure data sources in Grafana for development.
  • Configure dashboards for development and test scenarios.
  • Create docker-compose file with databases and fake data.

Install Docker

Grafana uses Docker to make the task of setting up databases a little easier. If you do not have it already, make sure you install Docker before proceeding to the next step.

Developer dashboards and data sources

./setup.sh

After restarting the Grafana server, there should be a number of data sources named gdev-<type> provisioned as well as a dashboard folder named gdev dashboards. This folder contains dashboard and panel features tests dashboards.

Please update these dashboards or make new ones as new panels and dashboards features are developed or new bugs are found. The dashboards are located in the devenv/dev-dashboards folder.

docker-compose with databases

This command creates a docker-compose file with specified databases configured and ready to run. Each database has a prepared image with some fake data ready to use. For available databases, see docker/blocks directory. Notice that for some databases there are multiple images, for example there is prometheus_mac specifically for Macs or different version.

make devenv sources=influxdb,prometheus2,elastic5

Some of the blocks support dynamic change of the image version used in the Docker file. The signature looks like this:

make devenv sources=postgres,openldap postgres_version=9.2