[9.0] Add default metrics dashboard for Node.js OTel (#215735) (#216897)

# Backport

This will backport the following commits from `main` to `9.0`:
- [Add default metrics dashboard for Node.js OTel
(#215735)](https://github.com/elastic/kibana/pull/215735)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"David
Luna","email":"david.luna@elastic.co"},"sourceCommit":{"committedDate":"2025-04-02T17:00:46Z","message":"Add
default metrics dashboard for Node.js OTel
(#215735)","sha":"fba2d2b8090089b06daefaa5932954da832811bb","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement","backport:prev-minor","backport:prev-major","ci:cloud-redeploy","ci:build-serverless-image","ci:project-deploy-observability","Team:obs-ux-infra_services","v9.1.0"],"title":"Add
default metrics dashboard for Node.js
OTel","number":215735,"url":"https://github.com/elastic/kibana/pull/215735","mergeCommit":{"message":"Add
default metrics dashboard for Node.js OTel
(#215735)","sha":"fba2d2b8090089b06daefaa5932954da832811bb"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/215735","number":215735,"mergeCommit":{"message":"Add
default metrics dashboard for Node.js OTel
(#215735)","sha":"fba2d2b8090089b06daefaa5932954da832811bb"}}]}]
BACKPORT-->

Co-authored-by: David Luna <david.luna@elastic.co>
This commit is contained in:
Kibana Machine 2025-04-02 20:55:11 +02:00 committed by GitHub
parent c46210f690
commit d131250dc1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 1 deletions

View file

@ -16,6 +16,7 @@ export const existingDashboardFileNames = new Set([
'classic_apm-edot-java',
'classic_apm-edot-dotnet',
'otel_native-edot-python',
'otel_native-edot-nodejs',
]);
// The new dashboard files should be mapped here
@ -78,6 +79,12 @@ export async function loadDashboardFile(filename: string) {
'./otel_native-edot-python.json'
);
}
case 'otel_native-edot-nodejs': {
return import(
/* webpackChunkName: "lazyNodeJsOtelNativeEdotDashboard" */
'./otel_native-edot-nodejs.json'
);
}
default: {
break;
}