Explore Metrics: Explore Logs integration (#94656)

* initial logs integration

* rename back to Integrations

* remove comments

* connect related logs in metrics with logsIntegration service

* rename

* remove comments

* feat: related logs with loki expr

* fix: layout & var updates

* refactor: prefer scene state to context

* fix: limit DS select to relevant loki DSes

* refactor: use existing utils

* refactor: types

* fix: tests and types

* refactor: simplify

* refactor: prefer precise data updates

* refactor: prefer variable for key

* refactor: simplify panel search

* refactor: remove unnecessary short-circuit

* fix: ensure single network request for logs

* fix: add missing limit to fetched log lines

* refactor: add clarity

* refactor: organize imports

* feat: messaging for No Related Logs case

* fix: add missing space

* chore: add `exploreMetricsRelatedLogs` feature toggle

* feat: link to Explore Logs app

* fix: i18n

* fix: use sentence case consistent with design system

* style: avoid competing with metricscene buttons

* fix: capitalization for names

* fix: a11y

* refactor: clean up and document utils

* fix: formatting

* chore: run `make i18n-extract`

* test: improve coverage

* test: fix module resolution side-effects

* extract only the first rule

refactor: organize imports

* remove unnecessary test files

---------

Co-authored-by: Nick Richmond <nick.richmond@grafana.com>
This commit is contained in:
ismail simsek
2024-11-05 17:28:43 +01:00
committed by GitHub
co-authored by Nick Richmond
parent c7a7f7dce5
commit 82ac9e2bb6
18 changed files with 754 additions and 104 deletions
+14
View File
@@ -1302,6 +1302,20 @@
"expression": "true"
}
},
{
"metadata": {
"name": "exploreMetricsRelatedLogs",
"resourceVersion": "1730125602673",
"creationTimestamp": "2024-10-28T14:26:42Z"
},
"spec": {
"description": "Display Related Logs in Explore Metrics",
"stage": "experimental",
"codeowner": "@grafana/observability-metrics",
"frontend": true,
"hideFromDocs": true
}
},
{
"metadata": {
"name": "expressionParser",