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

Add cloudwatch insights url that fetches aggregated logs for an API in cortex get output #2085

Closed
vishalbollu opened this issue Apr 13, 2021 · 0 comments
Milestone

Comments

@vishalbollu
Copy link
Contributor

Make it easier for users to get aggregated by logs by providing a url to cloudwatch insights populated with the correct query.

$ cortex get <api_name>

...
aggregated logs: https://us-west-2.console.aws.amazon.com/cloudwatch/home?region=us-west-2#logsV2:logs-insights$3FqueryDetail$3D~(end~0~start~-3600~timeType~'RELATIVE~unit~'seconds~editorString~'fields*20*40timestamp*2c*20*40message*0a*7c*20sort*20*40timestamp*20desc*0a~isLiveTail~false~source~(~'cortex))

metrics dashboard: ...

Considerations:

  • the query must change based on the API type and Kind
  • set the start and end times correctly for batch jobs and tasks
@vishalbollu vishalbollu changed the title Add a cloudwatch insights url that fetches aggregated logs for an API Add cloudwatch insights url that fetches aggregated logs for an API in cortex get output Apr 13, 2021
@miguelvr miguelvr assigned miguelvr and unassigned miguelvr May 5, 2021
@deliahu deliahu added this to the v0.36 milestone Jun 7, 2021
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

3 participants