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

Show backend logs in Backstage UI #106

Open
pgpbpadilla opened this issue Aug 29, 2024 · 4 comments
Open

Show backend logs in Backstage UI #106

pgpbpadilla opened this issue Aug 29, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request question Further information is requested

Comments

@pgpbpadilla
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

What is the outcome that you are trying to reach?

I am working on my custom template for a new component. The registration fails and I cannot quickly figure out what the error is, I want to look at the logs generated while trying to process my catalog file, but to look at the server logs I need to go into cloud watch and look at the ECS task logs, which is quite a bit of work.

Describe the solution you would like

I want to be able to see the logs for all Harmonix components in the backstage UI. I know there are some plug-ins that can be used to do this so it would be just a matter of enabling them by default.

New to backstage and to harmonics, so I leave it up to you to choose the better plug-ins to achieve the desire to result, namely, to allow debugging issues for any actions without having to leave the backstage UI.

Describe alternatives you have considered

Additional context

@z-sourcecode
Copy link
Contributor

Hi @pgpbpadilla Thanks for reaching out. You are correct, we rarely use the ECS cluster/service/task logs for debugging development work, Instead we configure our machines for local development - you can run backstage locally with a local postgres db(docker) and still use your deployed git.yourdomain.com.

please check this documentation for running harmonix and backstage locally - https://harmonixonaws.io/docs/techdocs/customizations#running-locally

Regarding the creation of your template - if you duplicate the directory of a template - make sure the names are different and don't forget to register the new template in your git opa-admin repository:
opa-admin/backstage-reference/templates/all-templates.yaml

you can use the below make command to update your local changes with the remote git.
make push-backstage-reference-repo

@z-sourcecode z-sourcecode self-assigned this Aug 29, 2024
@z-sourcecode z-sourcecode added the question Further information is requested label Aug 29, 2024
@pgpbpadilla
Copy link
Author

Hello, do you think it's possible to embed the logs from all of the deployed components and present them through the backstage UI in a standard way?

Ideally this should work no matter where the components are deployed. I can imagine that there could be adapters for different deployment environments, for example EC2, ECS, EKS, etc.

Unfortunately I don't have any examples of this type of standard interfacae but it seems to be like it would be a really good feature to have for troubleshooting live deployments.

@pgpbpadilla
Copy link
Author

By the way, I would still classify this as a feature request and not as a question. Feel free to close it if this is not something that you have in your roadmap.

@z-sourcecode z-sourcecode added the enhancement New feature or request label Oct 9, 2024
@z-sourcecode
Copy link
Contributor

Hi @pgpbpadilla apologies for the delay.
Regarding your question - aggregating logs from various layers of the application is possible and can be integrated in the UI. However, we do not have it planned at the moment.

Consider that the applications logs will likely to be the most interesting for the application developer(Affected by the app code changes /src), The deployment logs or mostly relevant when building new patterns or templates or for maintenance and diagnostic.

We have a customer who integrated Kubernetes cluster plugin on the provider page - thus giving platform engineering an overview of the entire cluster operations. We also received a similar requirement for ECS cluster overview (not yet available).

I'll keep this open for visibility and for updates if anything changes. thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants