Skip to content

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

@vishalbollu

Description

@vishalbollu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions