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
Alexander Zobnin 5e713673e1
Annotations: Optimize search by tags (#93547)
* Annotations: Optimize search on large number of dashboards

* refactor

* fix batch size

* Return early if no annotations found

* revert go.mod

* return nil in case of error

* Move default limit to the API package

* fix empty access control filter

* Set default limit to 100

* optimize query when number of annotations is less than limit

* Update pkg/services/annotations/annotationsimpl/annotations.go

Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>

* remove limit from store since it's set in API

* set default limit in Find method (do not break tests)

* Only add limit to the query if it's set

* use limit trick for all searches without dashboard filter

* set default page if not provided

---------

Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
2024-09-23 17:29:29 +02:00
.bingo Chore: Bump Go to 1.23.0 (#92105) 2024-08-21 11:40:42 -04:00
.changelog-archive
.github Update workflows to use actions that don't need organization secrets (#92603) 2024-09-19 13:53:45 +01:00
.husky
.vim
.vscode Ensure running server from VSCode enables dev mode (#88986) 2024-06-10 10:30:03 -05:00
.yarn update committed yarn version 2024-08-27 13:18:56 +03:00
apps Chore: Convert tabs to spaces in playlists.cue (#93403) 2024-09-17 20:09:54 +03:00
conf Remove backgroundPluginInstaller feature flag (#93540) 2024-09-23 15:49:18 +02:00
contribute Docs: Fix broken links in contribute/**/*.md (#92182) 2024-09-12 15:51:30 +03:00
cue.mod
devenv Auth: Update extra_hosts property (#93545) 2024-09-23 17:21:09 +02:00
docs Docs: Update SAML docs (#93379) 2024-09-23 17:16:53 +02:00
e2e ShareDrawer: Export as JSON code editor fix (#93593) 2024-09-23 16:31:23 +02:00
emails
grafana-mixin
hack Chore: Bump Go to 1.23.1 (#93007) 2024-09-06 20:58:50 +03:00
kinds Dashboard Scene: Fix snapshots not displaying variables values (#88967) 2024-08-20 17:05:12 +02:00
local
packages Update dependency @types/systemjs to v6.15.1 2024-09-23 14:11:17 +00:00
packaging Docker: Fix renderer plugin in custom Dockerfile (#88223) 2024-05-30 10:27:26 +02:00
pkg Annotations: Optimize search by tags (#93547) 2024-09-23 17:29:29 +02:00
plugins-bundled
public ShareDrawer: Export as JSON code editor fix (#93593) 2024-09-23 16:31:23 +02:00
scripts Chore: Fix running frontend unit tests in JetBrains (#93441) 2024-09-18 17:51:58 +02:00
tools
.betterer.results Chore: Refactor explore metrics breakdown scene (#93368) 2024-09-20 10:22:34 +02:00
.betterer.results.json Table Panel: Move inspector into drawer component (#88196) 2024-05-30 03:33:05 +07:00
.betterer.ts Chore: Type improvements (#93267) 2024-09-13 09:50:55 +01:00
.bra.toml Chore: Switch dev profiling address to 127.0.0.1:6000 (#91916) 2024-08-18 13:45:55 -04:00
.browserslistrc
.dockerignore
.drone.star CI: Add new RRC pipeline (#90731) 2024-07-30 14:01:10 +01:00
.drone.yml CI: Update grafanabot github token (#93291) 2024-09-12 14:37:30 -05:00
.editorconfig
.eslintignore E2E: Add support for building test plugins (#91873) 2024-08-23 09:00:03 +02:00
.eslintrc Alerting: Add eslint testing-library plugin dependency and create separate ESLint config (#91052) 2024-07-30 15:16:54 +03:00
.gitattributes CRLF (#28822) 2020-11-05 17:20:40 +01:00
.gitignore Chore: Remove MSW worker from source control and rely on installation instead (#93268) 2024-09-12 16:03:50 +03:00
.golangci.toml Playlists: Migrate to App SDK codegen (#93246) 2024-09-13 16:27:40 -04:00
.levignore.js
.nvmrc
.nxignore Alerting/Chore: Mock API (MSW) in browser (#89223) 2024-09-04 10:22:03 +01:00
.pa11yci-pr.conf.js Pa11y: Decrease error thresholds for PRs (#85178) 2024-03-27 12:29:54 +01:00
.pa11yci.conf.js
.prettierignore Alerting/Chore: Mock API (MSW) in browser (#89223) 2024-09-04 10:22:03 +01:00
.prettierrc.js
.trivyignore CI: Add Trivy GitHub Action (#88987) 2024-06-10 16:53:48 -04:00
.yarnrc.yml Update Yarn to v4.4.1 2024-08-27 13:18:56 +03:00
build.go
CHANGELOG.md Release: update changelog for 11.2.0 (#92494) 2024-08-27 18:15:37 +01:00
CODE_OF_CONDUCT.md
CONTRIBUTING.md
crowdin.yml
cypress.config.js E2E: Add SMTP tester (#88392) 2024-06-18 14:32:19 +02:00
Dockerfile Playlists: Migrate to App SDK codegen (#93246) 2024-09-13 16:27:40 -04:00
embed.go
go.mod Chore: Update grafana-plugin-sdk (#93426) 2024-09-20 10:20:59 +02:00
go.sum Chore: Update grafana-plugin-sdk (#93426) 2024-09-20 10:20:59 +02:00
go.work Playlists: Migrate to App SDK codegen (#93246) 2024-09-13 16:27:40 -04:00
go.work.sum Chore: Update grafana-plugin-sdk (#93426) 2024-09-20 10:20:59 +02:00
GOVERNANCE.md
HALL_OF_FAME.md
jest.config.js NodeGraph: Add msagl and the layered layout code (#88375) 2024-05-28 17:04:03 +02:00
latest.json
lefthook.rc
lefthook.yml Chore: Remove i18n psuedo precommit hook (#86840) 2024-04-24 13:08:19 +02:00
lerna.json Release: Bump version to 11.3.0-pre (#91863) 2024-08-14 18:34:14 -03:00
LICENSE
LICENSING.md Grafana packages: Remove E2E workspace (#86416) 2024-04-25 07:12:43 +02:00
MAINTAINERS.md
Makefile Chore: Add update-workspace to build-go deps (#93386) 2024-09-17 12:47:00 +03:00
NOTICE.md
nx.json Chore: Bump Nx to 18.1.x (#85185) 2024-03-28 09:36:35 +01:00
package.json Update dependency postcss to v8.4.47 2024-09-23 15:18:40 +00:00
playwright.config.ts Plugin Extensions: E2E test addLink and legacy APIs (#92394) 2024-08-26 16:01:32 +02:00
project.json Build: Set Nx inputs for theme-generate (#84761) 2024-05-22 17:07:50 +02:00
README.md
ROADMAP.md
SECURITY.md
stylelint.config.js
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 Swagger: Add a custom swagger/api page (#91785) 2024-08-14 09:03:00 +03:00
WORKFLOW.md Minor correction done in WORKFLOW.md (#80505) 2024-04-12 17:56:10 +02:00
yarn.lock Update dependency postcss to v8.4.47 2024-09-23 15:18:40 +00:00

Grafana Logo (Light) Grafana Logo (Dark)

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

This project is tested with BrowserStack

License

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