Visualisation de métriques
Find a file
Rafael Bortolon Paulovic e34341472c
fix(unified): populate key_path during bulkimport (#117320)
* fix(unified): populate key_path during bulkimport

Rows in resource_history were being created with empty key_path values
during bulkimport (migration of dashboards/folders). This broke
functionality that depends on key_path for indexing/searching.

The fix adds a buildKeyPath helper function that constructs the key_path
in the same format as normal write operations, and updates processBulkWithTx
to set the KeyPath field when inserting into resource_history.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* test(unified): add verification for key_path population after bulkimport

Adds verifyKeyPathPopulated function to migration integration tests
that verifies no rows in resource_history have empty key_path values
after bulkimport completes.

Also changes actionStr fallback from "unknown" to the numeric action
value for better debugging.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 15:51:15 +00:00
.changelog-archive Update dependency prettier to v3.6.2 (#108689) 2025-07-25 17:47:44 +01:00
.citools Go: Update to 1.25.6 (#116394) 2026-01-16 10:50:12 +01:00
.github Chore: RBAC: Migrate role picker to rtkq (#116571) 2026-02-03 13:46:41 +00:00
.husky Chore: Remove colours from old husky cleanup pre-commit hook (#73395) 2023-08-18 13:10:18 +00:00
.vim Chore: Upgrade yarn and editor sdks (#42847) 2021-12-08 14:40:24 +01:00
.vscode Chore: Move betterer eslint rules to use eslint suppressions (#106267) 2025-09-04 10:47:13 +01:00
.yarn Chore: Bump storybook to fix CVE (#115927) 2026-01-09 11:56:29 +00:00
apps Alerting: add receivers schema app platform API (#117041) 2026-02-03 16:23:30 +01:00
conf Docs: Replace sample.ini secret_key example with placeholder (#115676) 2026-01-27 12:01:19 +00:00
contribute Docs: Add feature request guide for contributors (#114538) 2025-11-27 16:09:04 +00:00
cue.mod Introduce "scuemata" system for CUE-based specification of Grafana objects (#32527) 2021-04-08 01:11:11 -07:00
devenv Gauge: Delete radialbar plugin to avoid migrations (#116722) 2026-01-28 16:05:57 -05:00
docs Remove dashboardSceneSolo and dashboardSceneForViewers feature flags (#117083) 2026-02-03 15:05:23 +01:00
e2e Remove dashboardSceneSolo and dashboardSceneForViewers feature flags (#117083) 2026-02-03 15:05:23 +01:00
e2e-playwright Remove dashboardSceneSolo and dashboardSceneForViewers feature flags (#117083) 2026-02-03 15:05:23 +01:00
emails Emails: Fix template brackets in passwordless_verify_ templates (#107108) 2025-08-27 12:47:02 +02:00
grafana-mixin Log Details: Show embedded trace if available (#109926) 2025-08-25 14:06:01 +00:00
hack Go: Update to 1.25.6 (#116394) 2026-01-16 10:50:12 +01:00
kinds QueryVariable: Support preview, static options and autocomplete for multi-props (#116259) 2026-02-02 11:44:15 +01:00
kindsv2 Chore: Remove Bingo as Drone is removed (#110020) 2025-08-22 13:49:44 +02:00
local Packaging: Dockerfile copy local folder (#64766) 2023-03-14 14:44:11 -05:00
packages UI: Fix hover styling for UserIcon based on showTooltip + onClick (#117087) 2026-02-03 15:44:48 +00:00
packaging Build: Update alpine version to 3.23.2 (#116527) 2026-01-20 12:54:42 +01:00
pkg fix(unified): populate key_path during bulkimport (#117320) 2026-02-03 15:51:15 +00:00
public Dashboards: Add listDashboardHistory to frontend api, remove HistorySrv (#114686) 2026-02-03 18:35:19 +03:00
scripts chore: remove unused 'revive' binary (#116796) 2026-01-25 12:12:10 +03:00
tools Alerting: Add alertmanager integration tests (#100106) 2025-02-13 11:36:45 +01:00
.air.toml Air: Enable stop_on_error (#111783) 2025-09-30 09:49:23 -04:00
.bra.toml Makefile: Change build-go to only build the binaries, and deprecate build-go-fast (#111986) 2025-10-08 15:04:36 +02:00
.browserslistrc Babel: Target more modern browsers, updates browserlistrc (#32573) 2021-04-01 10:32:00 +02:00
.dockerignore fix: modify the grafana dev build (#116872) 2026-01-27 17:14:33 -06:00
.editorconfig Chore: Enable PR testing in Drone (#26189) 2020-07-10 16:09:21 +02:00
.gitattributes Chore: Mark more files as generated in gitattributes (#113776) 2025-11-13 09:09:15 +00:00
.gitignore Add .specs (spec-kit files) to .gitignore (#117054) 2026-01-29 08:32:27 -08:00
.golangci.yml Elasticsearch: Decoupling from core (#115900) 2026-01-14 12:54:21 +00:00
.ignore Remove support for Google Spanner database. (#105846) 2025-05-23 11:35:59 +02:00
.levignore.js Adds levitate levignore configuration file to prevent breaking change notifications from expected typescript symbols (#74371) 2023-09-05 15:00:13 +02:00
.nvmrc Chore: Update node to v24 (#112649) 2025-10-29 17:17:07 +01:00
.nxignore Alerting/Chore: Mock API (MSW) in browser (#89223) 2024-09-04 10:22:03 +01:00
.prettierignore Theme: Regenerate schema and ignore from prettier (#117011) 2026-01-28 15:27:23 +00:00
.prettierrc.js Toolkit: Remove deprecated plugin:build (#67485) 2023-04-28 14:33:16 +02:00
.trivyignore CI: Add Trivy GitHub Action (#88987) 2024-06-10 16:53:48 -04:00
.vale.ini Lint only Markdown files (#101533) 2025-03-04 11:00:35 +00:00
.yarnrc.yml chore(deps): update yarn to v4.11.0 (#113884) 2025-11-14 10:50:14 +01:00
AGENTS.md Add instructions to improve AI effectiveness when writing documentation (#111246) 2025-10-01 11:37:25 +01:00
build.go K8s: Update from v0.31.3 to v0.32.0 (#98507) 2025-01-06 18:20:35 +03:00
CHANGELOG.md Release: update changelog for main (#116903) 2026-01-27 21:17:34 +00:00
CODE_OF_CONDUCT.md Fixing typos (#70487) 2023-06-22 09:43:38 +01:00
CONTRIBUTING.md Update CONTRIBUTING.md (#117033) 2026-01-30 11:17:02 +01:00
crowdin.yml Internationalisation: Mark up @grafana/prometheus package (#105861) 2025-06-12 11:29:33 +01:00
cypress.config.js e2e: improves flakiness and speed (#103533) 2025-04-16 05:21:06 +01:00
Dockerfile build(docker): Adding version marker to docker image to help with troubleshooting (#117269) 2026-02-02 18:01:07 -08:00
embed.go Core: Remove thema and kindsys dependencies (#84499) 2024-03-21 11:11:29 +01:00
eslint-suppressions.json Remove dashboardSceneSolo and dashboardSceneForViewers feature flags (#117083) 2026-02-03 15:05:23 +01:00
eslint.config.js GrafanaBootData: Deprecate config.apps (#115610) 2026-01-14 06:30:05 +01:00
go.mod Build: Upgrade authlib and make update-workspace (#117311) 2026-02-03 13:50:08 +00:00
go.sum Build: Upgrade authlib and make update-workspace (#117311) 2026-02-03 13:50:08 +00:00
go.work unified-storage: Add kv nested module (#117098) 2026-01-29 19:07:03 -03:00
go.work.sum Build: Upgrade authlib and make update-workspace (#117311) 2026-02-03 13:50:08 +00:00
GOVERNANCE.md Update dependency prettier to v3.6.2 (#108689) 2025-07-25 17:47:44 +01:00
HALL_OF_FAME.md Update HALL_OF_FAME.md (#102267) 2025-03-17 08:25:02 +01:00
i18next.config.ts I18n: Ignore dist folder in packages when extracting translations (#116532) 2026-01-26 12:09:36 +01:00
jest.config.codeowner.js Tests: Check frontend test coverage CI workflow (#116633) 2026-01-22 09:46:04 -04:00
jest.config.js feat(query row): add query with Assistant action for Loki and Prometheus (#116275) 2026-01-19 16:33:24 +01:00
latest.json Release: Deprecate latest.json and replace with api call to grafana.com (#80537) 2024-01-16 11:19:32 +00:00
lefthook.rc Chore: Fix lefthook not running (#106196) 2025-05-29 11:06:33 +02:00
lefthook.yml Chore: remove betterer command from lefthook (#110600) 2025-09-04 15:16:21 +01:00
lerna.json Release: Bump version to 12.4.0-pre (#113480) 2025-11-05 23:54:05 +01:00
LICENSE Re-license Grafana to AGPLv3 (#33184) 2021-04-20 19:03:30 +02:00
LICENSING.md Actions: Introduce actionlint (#105224) 2025-05-13 08:23:59 +02:00
MAINTAINERS.md Adds johnny as codeowner for alerting docs (#99877) 2025-02-04 13:10:57 +01:00
Makefile Index selectable fields in all known types (#117023) 2026-01-29 15:18:05 +01: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
nx.json Chore: Disable tui for Nx (#109896) 2025-08-20 10:08:03 +00:00
package.json Cloudwatch: Add http proxy config setting (#117049) 2026-02-02 18:42:07 -05:00
playwright.config.ts Alerting: Add E2E test configuration and fix saved searches tests (#116203) 2026-01-14 16:41:53 +01:00
playwright.storybook.config.ts E2E: migrate to playwright (#107241) 2025-07-11 10:31:33 +01:00
project.json Frontend: use custom conditions for development and build (#111685) 2025-12-18 11:47:38 +01:00
README.md add feedback survey to contributing related docs (#113168) 2025-10-30 09:36:44 +01:00
relyance.yaml Add Relyance github action (#107012) 2025-07-11 08:44:47 +02: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
stylelint.config.js Update dependency stylelint to v16 (#83252) 2024-02-23 11:56:38 +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 Frontend: use custom conditions for development and build (#111685) 2025-12-18 11:47:38 +01:00
WORKFLOW.md Minor correction done in WORKFLOW.md (#80505) 2024-04-12 17:56:10 +02:00
yarn.lock Chore: Backwards-compatible changes for react 19 (#117157) 2026-02-03 12:54:49 +00:00

Grafana Logo (Light) Grafana Logo (Dark)

The open-source platform for monitoring and observability

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

Share your contributor experience in our feedback survey to help us improve.

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.