Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lalit774 opened this issue Jun 20, 2024 · 1 comment
Open

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

lalit774 opened this issue Jun 20, 2024 · 1 comment

Comments

@lalit774
Copy link
Contributor

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
Copy link
Collaborator

Kirdock commented Jun 21, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants