grafana/devenv
Ryan McKinley ff6b8c5adc DataLinks: enable data links in Gauge, BarGauge and SingleStat2 panel (#18605)
* datalink on field

* add dataFrame to view

* Use scoped variables to pass series name and value time to data links interpolation

* Use scoped variables to pass series name and value time to data links interpolation

* Enable value specific variable suggestions when Gauge is displaying values

* Fix prettier

* Add basic context menu with data links to GaugePanel

* Fix incorrect import in grafana/ui

* Add custom cursor indicating datalinks available via context menu (in Gauge only now)

* Add data links to SingleStat2

* Minor refactor

* Retrieve data links in a lazy way

* Update test to respect links retrieval being lazy

* delay link creation

* cleanup

* Add origin to LinkModel and introduce field & panel links suppliers

* Add value time and series name field link supplier

* Remove links prop from visualization and implement common UI for data links context menu

* Update snapshot

* Rename className prop to clickTargetClassName

* Simplify condition

* Updated drilldown dashboard and minor changes

* Use class name an onClick handler on the top level dom element in visualization

* Enable series name interpolation when presented value is a calculation
2019-08-28 08:50:43 +02: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 DataLinks: enable data links in Gauge, BarGauge and SingleStat2 panel (#18605) 2019-08-28 08:50:43 +02:00
dev-dashboards-without-uid avoid infinite loop in the dashboard provisioner 2019-01-14 16:38:39 +01:00
docker LDAP: improve POSIX support (#18235) 2019-07-24 12:49:18 +03:00
e2e-api-tests moves files from /tests to more appropriate folders 2018-09-17 10:10:20 +02:00
create_docker_compose.sh Build: allow dynamically change docker image (#18112) 2019-07-16 08:16:10 +02:00
dashboards.yaml Provisioning: Support FolderUid in Dashboard Provisioning Config (#16559) 2019-04-24 08:57:42 +02:00
datasources.yaml Elasticsearch: Visualize logs in Explore (#17605) 2019-06-24 21:15:03 +01:00
README.md Build: allow dynamically change docker image (#18112) 2019-07-16 08:16:10 +02:00
setup.sh Remove option r from ln command since its not working everywhere 2018-09-25 14:02:55 +02:00

This folder contains useful scripts and configuration for...

  • Configuring dev datasources in Grafana
  • Configuring dev & test scenarios dashboards.
  • Creating docker-compose file with DBs and fake data.

Dev dashboards and data sources

./setup.sh

After restarting grafana server there should now be a number of datasources named gdev-<type> provisioned as well as a dashboard folder named gdev dashboards. This folder contains dashboard & panel features tests dashboards.

Dev dashboards

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

docker-compose with databases

make devenv sources=influxdb,prometheus2,elastic5

This command will create 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. Mind that for some databases there are multiple images, for example there is prometheus_mac specifically for Macs or different version.

Some of the blocks support dynamic change of the image version used in docker file. The signature looks like this - make devenv sources=postgres,openldap name-of-block_version=9.2 -

make devenv sources=postgres,openldap postgres_version=9.2