Dynatrace / backstage-plugin

Dynatrace Backstage Plugin
Apache License 2.0
20 stars 3 forks source link

New Backend system No custom query to the given id #115

Open lalit774 opened 3 months ago

lalit774 commented 3 months ago

Summary

can you please explain this annotations. do we need too add ) in end? backstage.io/kubernetes-id: . )

can you please update plugin install commands like that. It will little easy because of one command

yarn --cwd packages/app add @dynatrace/backstage-plugin-dql yarn --cwd packages/app backend @dynatrace/backstage-plugin-dql-backend yarn --cwd packages/app backend @dynatrace/backstage-plugin-dql-common

I have installed this new plugin and i am getting following error.

Error: 500: Error No custom query to the given id "logs" found

Error: No custom query to the given id "logs" found at QueryExecutor.executeCustomQuery dql-backend/src/service/router.ts:64:40) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

{ "error": { "name": "Error", "message": "No custom query to the given id \"logs\" found", "stack": "Error: No custom query to the given id \"logs\" found\n at QueryExecutor.executeCustomQuery (plugins/dql-backend/src/service/queryExecutor.ts:50:13)\n at (plugins/dql-backend/src/service/router.ts:64:40)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)" }, "request": { "method": "GET", "url": "/custom/logs?entityRef=component%3Adefault%2Farmada" }, "response": { "statusCode": 500 } }

Kirdock commented 3 months ago

Hi, regarding

can you please explain this annotations. do we need too add *) in end?

No, this is just a reference to below "*) While any value can be defined, it is recommended to set the backstage namespace followed by the component name." The description to the annotations is also in the readme, so the annotation backstage.io/kubernetes-id: my-value will look for a kubernetes deployment with the label backstage.io/kubernetes-id: my-value

can you please update plugin install commands like that. It will little easy because of one command

Sure, we can do that.

I have installed this new plugin and i am getting following error.

Did you add a query with the id "logs" to your app-config.local.yaml? image