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
Josh Hunt 13a47aede2
AzureMonitor: Migrate Metrics query editor to React (#30783)
* AzureMonitor: Remove anys from datasource to get the inferred type

* AzureMonitor: Cast some datasource types

TODO: we want proper types for these

* AzureMonitor: Initial react Metrics editor components

* start dimension fields

* replace replaceTemplateVariable with datasource.replace, and rename onQueryChange to onChange

* actually just do template variable replacement in the datasource

* don't use azureMonitorIsConfigured

* Refactors, mainly around the metric metadata

 - Convert all the metric metadata options for the Select before its set into state
 - Stop using SelectableValue because it's basically any when all the properties are optional
 - the onChange function passed to the fields now just accepts the direct value, rather than wrapped in a SelectableValue

* added proper fields, and adding and removing for DimensionFields

* Update query with Dimension changes

* Width

* subscription and query type fields

* Should be feature complete now, more or less

* fix missing import

* fix lint issues

* set default subscription ID

* Starting to write some tests

* tests for query editor

* Remove subscription ID from the label in Metrics

But we keep it there for the angular stuff

* MetricsQueryEditor tests

* Update index.test.tsx

* fix tests

* add template variables to dropdowns

* clean up

* update tests

* Reorganise react components

* Group query fields into rows

* Rename Option type, add Azure response type

* Refactor Metrics metric metadata

 - Types the Azure API
 - Moves default metadata values into datasource

* nit

* update test
2021-03-11 11:37:39 +00:00
.circleci Circle: Remove release pipeline (#28474) 2020-10-22 16:22:48 +02:00
.github Update CODEOWNERS (#31789) 2021-03-08 21:52:26 +01:00
conf Cloudwatch: ListMetrics API page limit (#31788) 2021-03-10 07:41:22 +01:00
contribute Docs: updated developer guide (#29978) 2021-02-05 09:35:21 +01:00
dashboard-schemas DashboardSchemas: OpenAPI Schema Generation (#30242) 2021-01-19 18:25:00 +01:00
devenv devenv: add influxQL-compatible influxDB2 data-source (#31818) 2021-03-09 16:56:42 +01:00
docs Docker: Support pre-installing plugins from other sources in custom Dockerfiles (#31234) 2021-03-11 12:17:34 +01:00
e2e Routing NG: Replace Angular routing with react-router (#31463) 2021-03-10 18:03:36 +01:00
emails Prettier: Upgrade to 2 (#30387) 2021-01-20 07:59:48 +01:00
grafana-mixin reduce severity level to warning (#28939) 2020-11-20 10:30:51 +01:00
packages Update scripts and Dockerfiles to use Go 1.16.1 (#31881) 2021-03-11 12:55:04 +02:00
packaging Docker: Support pre-installing plugins from other sources in custom Dockerfiles (#31234) 2021-03-11 12:17:34 +01:00
pkg Tempo: Add test for backend data source (#31835) 2021-03-11 08:18:24 +01:00
plugins-bundled Revert ""Release: Updated versions in package to 7.4.3" (#31444)" (#31452) 2021-02-24 17:53:08 +01:00
public AzureMonitor: Migrate Metrics query editor to React (#30783) 2021-03-11 11:37:39 +00:00
scripts Update scripts and Dockerfiles to use Go 1.16.1 (#31881) 2021-03-11 12:55:04 +02:00
tools Image Rendering: Remove PhantomJS support (#23460) 2020-04-15 22:17:41 +02:00
.babelrc Performance/Webpack: Introduces more aggressive code-splitting and other perf improvements (#18544) 2019-09-03 09:29:02 +01:00
.bra.toml Chore: Upgrade to Go 1.14 (#23371) 2020-04-08 14:13:05 +02:00
.browserslistrc Fix: Autoprefixer is now working (#16351) 2019-04-02 18:15:30 +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 Update scripts and Dockerfiles to use Go 1.16.1 (#31881) 2021-03-11 12:55:04 +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 Chore: Fix eslint react hook warnings in grafana-ui (#31092) 2021-02-24 17:21:47 +01:00
.gitattributes CRLF (#28822) 2020-11-05 17:20:40 +01:00
.gitignore Add menu.yaml to .gitignore (#30743) 2021-01-29 10:42:53 -05:00
.prettierignore Prettier: ignore build and devenv dirs (#30501) 2021-01-21 11:11:43 -08: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.4.2 (#31776) 2021-03-08 16:17:52 +01: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 Update scripts and Dockerfiles to use Go 1.16.1 (#31881) 2021-03-11 12:55:04 +02:00
Dockerfile.ubuntu Make build docker full fix (#29570) 2020-12-03 14:17:40 +01:00
go.mod Chore(deps): Bump go.opentelemetry.io/collector from 0.21.0 to 0.22.0 (#31852) 2021-03-10 12:38:07 +01:00
go.sum Backend: Tidy go.sum (#31858) 2021-03-10 13:13:50 +01:00
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 Chore: Bump storybook to v6 (#28926) 2020-11-24 10:38:41 +01:00
latest.json Chore: Update testing field in latest.json to 7.5.0-beta1 (#31689) 2021-03-04 16:45:51 +01:00
lerna.json Revert ""Release: Updated versions in package to 7.4.3" (#31444)" (#31452) 2021-02-24 17:53:08 +01:00
LICENSE Small license correction 2019-03-21 16:36:24 +01:00
MAINTAINERS.md Docs: Refactor inconsistent unordered lists (#27826) 2020-10-02 11:02:11 -07:00
Makefile Remove tidy-check script (#31423) 2021-02-23 17:53:30 +02:00
NOTICE.md Update NOTICE.md 2021-01-06 08:16:50 +01:00
package.json Routing NG: Replace Angular routing with react-router (#31463) 2021-03-10 18:03:36 +01:00
PLUGIN_DEV.md Update PLUGIN_DEV.md (#19387) 2019-09-26 12:40:47 +02:00
README.md Fix titles case and add missing punctuation marks (#28713) 2020-11-05 09:17:08 -05: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: type backendSrv.datasourceRequest (#31870) 2021-03-10 20:52:25 +01: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 the Apache 2.0 License.