View a markdown version of this page

Ask the Omni agent about profiles - Amazon CloudWatch

Ask the Omni agent about profiles

The Omni agent reads profile data as well as your other telemetry. Ask it a profiling question and it finds the service and profile type, runs the query, and answers with the functions and figures it found. You do not have to know the profile type IDs, the label names, or the query operations. For the agent in general, see Ask the Omni agent.

The agent can rank the functions that account for a service's resource usage, chart a profile value over time, and compare two time ranges to say what changed.

Example questions

  • Which functions burn the most CPU in checkout-service over the last hour?

  • Compare the CPU profile of payments-api before and after today's deploy, and tell me what got slower.

  • With a trace span open: Why is this span slow? Use the profile for this service.

When a profile is already on screen, the agent answers about that profile rather than starting a new search, so you can follow up on what you are looking at.

What to expect

  • The agent answers from the profile data in your space. If a service sent no profiles, or sent only a profile type that cannot answer the question, it says so instead of estimating. A CPU profile cannot answer a question about memory, for example.

  • It quotes the function names and values it read, and names the time range it used.

  • It flags a comparison drawn from few samples, because a small difference between two thin profiles is usually noise rather than a regression.

  • A hotspot is where the time went, not why. Confirm a cause against the code the frame points to. See Read a flame graph in Omni.