The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
grafana/devenv
Sofia Papagiannaki 55248f9269
Add devenv block for apache proxy working for Mac (#20119)
6 years ago
..
benchmarks/ab moves benchmark script to devenv 7 years ago
bulk-dashboards Fix bulk-dashboards path (#12978) 7 years ago
bulk_alerting_dashboards target gfdev-prometheus datasource 7 years ago
dev-dashboards Chore: correct typo in word Fahrenheit (#20040) 6 years ago
dev-dashboards-without-uid Chore: correct typo in word Fahrenheit (#20040) 6 years ago
docker Add devenv block for apache proxy working for Mac (#20119) 6 years ago
e2e-api-tests moves files from /tests to more appropriate folders 7 years ago
README.md Docs: Update README.md (#19456) 6 years ago
create_docker_compose.sh Build: allow dynamically change docker image (#18112) 6 years ago
dashboards.yaml Allow saving of provisioned dashboards (#19820) 6 years ago
datasources.yaml Elasticsearch: Visualize logs in Explore (#17605) 6 years ago
setup.sh Remove option r from ln command since its not working everywhere 7 years ago

README.md

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