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
Giordano Ricci 09f48173fe
Explore: allow users to save Explore state to a new panel in a new dashboard (#45148)
* Add Button & Form

* Save to new dashboard

* minor adjustements

* move modal to a separate component

* handle dashboard name related errors

* pick visualization based on query results

* lift state

* fix types

* Add Open & Close tests

* Add submit test

* add navigation tests

* add tests for API errors

* remove console log

* create wrapper component for AddToDashboardButton

* remove unused mapped prop

* add wrapper test

* rename isActive to isVisible

* invert control over save & redirect logic

* remove leftover commented code

* cleanup setup parameters

* reorganize code & improve tests

* Remove option to add to existing dashboard

* UI tweaks

* disable button if no queries

* Fix tests

* better accessible tests

* handle submission errors

* improve addToDashboard types

* use dashboardSrv' saveDashboard

* remove leftover test helper

* fix typo

Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>

* Apply suggestions from code review

Co-authored-by: Kristina <kristina.durivage@grafana.com>

Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
Co-authored-by: Kristina <kristina.durivage@grafana.com>
2022-03-03 08:54:06 +00:00
.bingo Makefile: Force use drone-cli 1.4.0 version (#40385) 2021-10-14 16:02:45 +02:00
.github FileStore: add basic file storage API (#46051) 2022-03-03 10:53:26 +04:00
.husky Chore: bump Husky to v7 (#40797) 2021-11-02 11:53:27 +01:00
.vim Chore: Upgrade yarn and editor sdks (#42847) 2021-12-08 14:40:24 +01:00
.vscode Chore: Fix Debug Jest test command for vscode (#45420) 2022-02-17 14:18:09 +01:00
.yarn Yarn: Updates to SDK packages (#45043) 2022-02-08 09:45:42 +01:00
conf Chore: add setting to skip org assignment for external users (#34834) 2022-02-21 17:34:47 +01:00
contribute Devenv: Add documentation for integration tests (#46056) 2022-03-02 10:12:50 +01:00
cue/scuemata Apply cuetsy attrs to PanelSchema (#39112) 2021-09-15 12:27:47 -04:00
cue.mod Introduce "scuemata" system for CUE-based specification of Grafana objects (#32527) 2021-04-08 01:11:11 -07:00
devenv loki:devenv: better config name (#45906) 2022-02-25 13:32:24 +01:00
docs Docs: Update ldap authentication topic (#46128) 2022-03-02 16:08:46 -05:00
e2e Chore: fix flaky e2e (#45822) 2022-02-24 10:34:49 +00:00
emails Email: change the year in templates (#45116) 2022-02-09 15:53:36 +01:00
grafana-mixin grafana-mixin: Fix GrafanaRequestsFailing alert (#43116) 2021-12-20 15:12:37 +01:00
packages Update dependency ol to v6.13.0 (#45949) 2022-03-03 09:45:33 +01:00
packaging remove ncurses upgrade in docker image (#44883) 2022-02-09 19:15:17 +01:00
pkg Explore: allow users to save Explore state to a new panel in a new dashboard (#45148) 2022-03-03 08:54:06 +00:00
plugins-bundled Chore: Update pre version (#44855) 2022-02-03 16:52:53 +01:00
public Explore: allow users to save Explore state to a new panel in a new dashboard (#45148) 2022-03-03 08:54:06 +00:00
scripts upgrade grabpl (#46127) 2022-03-03 10:17:05 +02:00
tools Image Rendering: Remove PhantomJS support (#23460) 2020-04-15 22:17:41 +02:00
.betterer.results Explore: allow users to save Explore state to a new panel in a new dashboard (#45148) 2022-03-03 08:54:06 +00:00
.betterer.ts Chore: Add betterer test to track conversion of enzyme tests (#45055) 2022-02-09 12:41:39 +00:00
.bra.toml Bra: Run wire re-gen on code change (attempt #2) (#42582) 2021-12-01 09:26:45 -05:00
.browserslistrc Babel: Target more modern browsers, updates browserlistrc (#32573) 2021-04-01 10:32:00 +02:00
.dockerignore Add support for local Makefile to docker (#41296) 2021-11-04 11:13:10 -03:00
.drone.star CI: Add docs pipeline for main pipelines (#45740) 2022-02-22 18:06:14 +00:00
.drone.yml upgrade grabpl (#46127) 2022-03-03 10:17:05 +02:00
.editorconfig Chore: Enable PR testing in Drone (#26189) 2020-07-10 16:09:21 +02:00
.eslintignore grafana-cli: Diff generated ts directly instead of relying on git (#45815) 2022-02-24 12:03:07 +01:00
.eslintrc Chore: Prevent focused tests by adding jest eslint rule (#45088) 2022-02-11 15:59:30 +01:00
.gitattributes CRLF (#28822) 2020-11-05 17:20:40 +01:00
.gitignore devenv: Adding gitignore for the saml-enterprise block (#45042) 2022-02-08 09:56:03 +01:00
.linguirc Chore: Mark up User Profile page for translation (#43874) 2022-01-17 16:58:49 +00:00
.nvmrc add .nvmrc (#44665) 2022-01-31 10:48:21 -06:00
.pa11yci-pr.conf.js Select: Fix input cursor position so that it is at the start for single value selects (#41693) 2021-11-26 15:38:48 +00:00
.pa11yci.conf.js Select: Fix input cursor position so that it is at the start for single value selects (#41693) 2021-11-26 15:38:48 +00:00
.prettierignore E2E: Rename end-to-end-tests-server to grafana-server (#44249) 2022-01-20 17:01:00 +00:00
.prettierrc.js Prettier: Add prettier config that imports prettier from toolkit (#23729) 2020-04-21 17:23:49 +02:00
.yarnrc.yml Toolkit: Bump react-dev-utils to 12.0.0 (#44696) 2022-02-08 12:36:59 +01:00
api-extractor.json Docs: added code comments for everything in the @grafana/runtime package. (#23456) 2020-04-15 10:46:51 +02:00
babel.config.json Chore: Reorder babel plugins into correct order (#45691) 2022-02-21 17:07:42 +00:00
build.go Chore: move build command to importable package (#38726) 2021-09-03 11:24:21 -05:00
CHANGELOG_ARCHIVE.md Prettier: Fix all markdown files and add markdown files to CI verify step (#39776) 2021-09-29 14:34:40 +02:00
CHANGELOG.md ReleaseNotes: Updated changelog and release notes for 8.4.3 (#46119) 2022-03-02 19:18:48 +00:00
CODE_OF_CONDUCT.md Docs: Refactor inconsistent unordered lists (#27826) 2020-10-02 11:02:11 -07:00
CONTRIBUTING.md Fixed broken links in documentation (#44044) 2022-01-14 10:24:24 -05:00
Dockerfile bump go version to 1.17.7 (#45772) 2022-02-23 15:30:48 +02:00
Dockerfile.ubuntu bump go version to 1.17.7 (#45772) 2022-02-23 15:30:48 +02:00
embed.go Make "dist" version of dashboard scuemata directly importable in CUE (#39251) 2021-09-17 16:17:55 -04:00
go.mod FileStore: add basic file storage API (#46051) 2022-03-03 10:53:26 +04:00
go.sum FileStore: add basic file storage API (#46051) 2022-03-03 10:53:26 +04:00
GOVERNANCE.md Governance: Update employer info (#45369) 2022-02-14 15:43:50 -08:00
ISSUE_TRIAGE.md Updated broken links (#43849) 2022-02-15 13:42:21 +00:00
jest.config.js Remove root/scripts directory from Jest root (#45410) 2022-02-16 07:15:31 -06:00
latest.json chore: update latest.json (#46122) 2022-03-02 19:45:07 +00:00
lerna.json Chore: Update pre version (#44855) 2022-02-03 16:52:53 +01:00
LICENSE Re-license Grafana to AGPLv3 (#33184) 2021-04-20 19:03:30 +02:00
LICENSING.md Fix licensing text (#44518) 2022-01-27 11:09:39 +01:00
MAINTAINERS.md Docs: Refactor inconsistent unordered lists (#27826) 2020-10-02 11:02:11 -07:00
Makefile API: Fix missing enterprise routes in swagger spec (#45152) 2022-02-09 15:31:43 +01:00
metadata.md Docs: Document plugin authentication in metadata schema (#32703) 2021-04-08 18:13:18 +02:00
NOTICE.md Prettier: Fix all markdown files and add markdown files to CI verify step (#39776) 2021-09-29 14:34:40 +02:00
package.json Update dependency eslint-config-prettier to v8.5.0 (#46129) 2022-03-03 08:46:26 +00:00
PLUGIN_DEV.md Chore: Updated the link to the plugin developer guide docs - it used to point to an old version (#40710) 2021-10-25 12:11:44 +04:00
README.md Update README.md (#45946) 2022-03-02 15:52:45 +01:00
ROADMAP.md Prettier: Fix all markdown files and add markdown files to CI verify step (#39776) 2021-09-29 14:34:40 +02:00
SECURITY.md Update SECURITY.md (#42149) 2021-11-24 14:06:18 +01:00
stylelint.config.js Chore: Replace Sass-lint with Stylelint (#40617) 2021-10-20 11:34:24 +02:00
SUPPORT.md Prettier: Fix all markdown files and add markdown files to CI verify step (#39776) 2021-09-29 14:34:40 +02:00
tsconfig.json Build: Enable persistent cache for faster Webpack builds (#41430) 2021-11-11 14:32:34 +01:00
UPGRADING_DEPENDENCIES.md remove GO111MODULE (#36235) 2021-06-29 10:01:21 +02:00
WORKFLOW.md Prettier: Fix all markdown files and add markdown files to CI verify step (#39776) 2021-09-29 14:34:40 +02:00
yarn.lock Update dependency eslint-config-prettier to v8.5.0 (#46129) 2022-03-03 08:46:26 +00:00

Grafana

The open-source platform for monitoring and observability

License Drone 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:

  • Visualizations: 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.