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.
Go to file
Oscar Kilhed d0239ac958
[grafana/UI] Hoovering over a legend label highlights the corresponding pie slice (#32941)
* Hoovering over a legend label hightlighs that pie slice

* Change to event bus

* Adds EventBusWithSource to help identify the origin of the event

* Add tests and fix bug with incorrect source

* Clean up PieChart and EventBus a bit

* Fix bug when payload.source is undefined

* Add some documentation and adjust naming

* useState instead of useSetState

* Clean up some more documentation

* Move eventbus to state

* add event bus actions to the debug panel

* add event bus actions to the debug panel

* Try to make the naming a bit clearer

* Try passing eventbus as context

* Fix lint issues

* Move event bus context to panel chrome

* Fix event handler functions

* switch to using useCallback for legend item callbacks

* Remove unused parameters

* Add id to panel fixture of PanelChrome test

* Simplify event source

* Place eventBus inside more generic context

* Push handling of context up the tree to VizLegend

only export usePanelContext and PanelContextProvider

implement isOwnEvent on EventBus

some cleanup

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2021-04-26 16:13:15 +02:00
.circleci Circle: Remove release pipeline (#28474) 2020-10-22 16:22:48 +02:00
.github Docs: Sync master docs against next version (#32602) 2021-04-12 09:42:10 +02:00
conf CSP: Set nonce attribute on Webpack injected bundles (#33298) 2021-04-26 11:38:24 +02:00
contribute Buttons: replace usage of .btn classnames (#33226) 2021-04-23 10:06:42 +02:00
cue PieChart: Unify tooltip to look the way it looks in TimeSeries (#33032) 2021-04-20 09:45:41 +02:00
cue.mod Introduce "scuemata" system for CUE-based specification of Grafana objects (#32527) 2021-04-08 01:11:11 -07:00
devenv GraphNG: stacking (#30749) 2021-04-15 13:00:01 +02:00
docs Updated label for add panel. (#33285) 2021-04-22 14:21:55 -04:00
e2e Variables: Confirms selection before opening new picker (#32586) 2021-04-06 09:21:37 +02:00
emails Update email template for AlertingNG (#32691) 2021-04-07 14:52:48 +05:30
grafana-mixin reduce severity level to warning (#28939) 2020-11-20 10:30:51 +01:00
packages [grafana/UI] Hoovering over a legend label highlights the corresponding pie slice (#32941) 2021-04-26 16:13:15 +02:00
packaging Chore: Change from double to single quotes (#32430) 2021-03-29 17:40:26 +03:00
pkg Live: pure websocket push endpoint (#33339) 2021-04-26 13:17:49 +03:00
plugins-bundled Buttons: replace usage of .btn classnames (#33226) 2021-04-23 10:06:42 +02:00
public [grafana/UI] Hoovering over a legend label highlights the corresponding pie slice (#32941) 2021-04-26 16:13:15 +02:00
scripts Build: drop TS checking from yarn build (#33235) 2021-04-21 14:40:51 -05:00
tools Image Rendering: Remove PhantomJS support (#23460) 2020-04-15 22:17:41 +02:00
.bra.toml Chore: Upgrade to Go 1.14 (#23371) 2020-04-08 14:13:05 +02:00
.browserslistrc Babel: Target more modern browsers, updates browserlistrc (#32573) 2021-04-01 10:32:00 +02:00
.dockerignore remove duplicated /tmp entry in .dockerignore 2018-08-09 09:10:53 +02:00
.drone.star Drone: Add version branch pipeline (#28490) 2020-10-23 10:16:17 +02:00
.drone.yml Chore: Remove Revive standalone linter - use it via golangci-lint (#33150) 2021-04-20 16:51:08 +02:00
.editorconfig Chore: Enable PR testing in Drone (#26189) 2020-07-10 16:09:21 +02:00
.eslintignore Chore: Lint all files for no-only-tests (#30364) 2021-01-19 11:06:27 +01:00
.eslintrc Performance: Standardize lodash imports to use destructured members (#33040) 2021-04-21 09:38:00 +02:00
.gitattributes CRLF (#28822) 2020-11-05 17:20:40 +01:00
.gitignore Alerting: Rule edit form (#32877) 2021-04-14 15:57:36 +03:00
.prettierignore Theming: Updates to select styles and theme model progress (#32797) 2021-04-12 14:23:00 +02:00
.prettierrc.js Prettier: Add prettier config that imports prettier from toolkit (#23729) 2020-04-21 17:23:49 +02:00
api-extractor.json Docs: added code comments for everything in the @grafana/runtime package. (#23456) 2020-04-15 10:46:51 +02:00
build.go Grunt: Removes grunt dependency and replaces some of its usage (#29461) 2020-12-01 10:32:12 +01:00
CHANGELOG_ARCHIVE.md Automation: Adds new changelog actions (#29142) 2020-11-16 21:34:19 +01:00
CHANGELOG.md ReleaseNotes: Updated changelog and release notes for 7.5.4 (#32973) 2021-04-14 17:10:19 +02:00
CODE_OF_CONDUCT.md Docs: Refactor inconsistent unordered lists (#27826) 2020-10-02 11:02:11 -07:00
CONTRIBUTING.md IssueTriage: Needs more info automation and messages (#28137) 2020-10-16 16:49:55 +02:00
Dockerfile Downgrade to node:14.16.0-alpine3.13 (#32065) 2021-03-17 17:07:39 +02:00
Dockerfile.ubuntu Bug: Add git to Dockerfile.ubuntu (#33247) 2021-04-22 09:11:29 +02:00
embed.go Introduce "scuemata" system for CUE-based specification of Grafana objects (#32527) 2021-04-08 01:11:11 -07:00
go.mod Live: pure websocket push endpoint (#33339) 2021-04-26 13:17:49 +03:00
go.sum NGAlert: Remove all pending references to the old API package (#33269) 2021-04-22 18:36:32 +05:30
GOVERNANCE.md Add Alex Khomenko as member (#28032) 2020-10-05 15:08:16 +03:00
ISSUE_TRIAGE.md GrafanaBot: Update labels and commands and adds docs (#28950) 2020-11-09 21:45:18 +01:00
jest.config.js Icons: fix iconRoot url (#33243) 2021-04-23 09:06:19 +02:00
latest.json Chore: Bump version in latest.json to 7.5.4 (#33003) 2021-04-14 20:14:04 +02:00
lerna.json Revert ""Release: Updated versions in package to 7.4.3" (#31444)" (#31452) 2021-02-24 17:53:08 +01:00
LICENSE Re-license Grafana to AGPLv3 (#33184) 2021-04-20 19:03:30 +02:00
LICENSING.md Re-license Grafana to AGPLv3 (#33184) 2021-04-20 19:03:30 +02:00
MAINTAINERS.md Docs: Refactor inconsistent unordered lists (#27826) 2020-10-02 11:02:11 -07:00
Makefile Chore: Remove Revive standalone linter - use it via golangci-lint (#33150) 2021-04-20 16:51:08 +02:00
metadata.md Docs: Document plugin authentication in metadata schema (#32703) 2021-04-08 18:13:18 +02:00
NOTICE.md Update NOTICE.md 2021-01-06 08:16:50 +01:00
package.json Chore: update icons with a json index (#33354) 2021-04-25 15:24:29 -07:00
PLUGIN_DEV.md Update PLUGIN_DEV.md (#19387) 2019-09-26 12:40:47 +02:00
README.md Add storybook (#33373) 2021-04-26 16:00:45 +02:00
ROADMAP.md Update ROADMAP.md (#19384) 2019-09-25 07:18:35 +02:00
SECURITY.md Docs: Fix broken link (#25664) 2020-06-18 14:08:26 +02:00
SUPPORT.md Update SUPPORT.md (#19383) 2019-09-25 07:17:01 +02:00
tsconfig.json Tests: Adds expects for observables (#28929) 2020-11-18 15:18:55 +01:00
UPGRADING_DEPENDENCIES.md Docs: Fix note format for documentation (#27940) 2020-09-30 12:45:07 -07:00
WORKFLOW.md Docs: Minor docs update 2020-11-10 12:14:02 +01:00
yarn.lock Chore: update icons with a json index (#33354) 2021-04-25 15:24:29 -07:00

Grafana

The open-source platform for monitoring and observability.

License Circle CI Go Report Card

Grafana allows you to query, visualize, alert on and understand your metrics no matter where they are stored. Create, explore, and share dashboards with your team and foster a data driven culture:

  • Visualize: Fast and flexible client side graphs with a multitude of options. Panel plugins offer many different ways to visualize metrics and logs.
  • Dynamic Dashboards: Create dynamic & reusable dashboards with template variables that appear as dropdowns at the top of the dashboard.
  • Explore Metrics: Explore your data through ad-hoc queries and dynamic drilldown. Split view and compare different time ranges, queries and data sources side by side.
  • Explore Logs: Experience the magic of switching from metrics to logs with preserved label filters. Quickly search through all your logs or streaming them live.
  • Alerting: Visually define alert rules for your most important metrics. Grafana will continuously evaluate and send notifications to systems like Slack, PagerDuty, VictorOps, OpsGenie.
  • Mixed Data Sources: Mix different data sources in the same graph! You can specify a data source on a per-query basis. This works for even custom datasources.

Get started

Unsure if Grafana is for you? Watch Grafana in action on play.grafana.org!

Documentation

The Grafana documentation is available at grafana.com/docs.

Contributing

If you're interested in contributing to the Grafana project:

Get involved

License

Grafana is distributed under AGPL-3.0-only. For Apache-2.0 exceptions, see LICENSING.md.